# Examples

Working snippets you can copy straight into your code. Examples in cURL, Node.js, Python, PHP — for top endpoints, common integration tasks, and MCP agents.

Need a whole app, not a snippet? Ten runnable integrations built on the official SDKs — [github.com/astroway/examples](https://github.com/astroway/examples): Discord and Slack bots, OpenAI function-calling, a Cloudflare edge cache, forecast CSV export, and a FastAPI compatibility service.

<CardGrid>
  <LinkCard
    title="MCP — Claude / Cursor"
    href="/en/examples/mcp/"
    description="Connect AstroWay to Claude Desktop or Cursor via @astroway/mcp. One npm package, all endpoints as tools."
  />
  <LinkCard
    title="Natal Chart"
    href="/en/examples/natal/"
    description="First /chart call — planetary positions, houses, aspects. Base example in cURL, Node.js, Python, PHP."
  />
  <LinkCard
    title="Synastry"
    href="/en/examples/synastry/"
    description="Two-person compatibility: /synastry request, score interpretation, cross-aspect display."
  />
  <LinkCard
    title="Transits"
    href="/en/examples/transits/"
    description="Current transits on a natal chart: filtering, aggregation, building a timeline."
  />
  <LinkCard
    title="Human Design"
    href="/en/examples/human-design/"
    description="Full HD chart: type, strategy, authority, profile, gates and channels."
  />
  <LinkCard
    title="Integrations"
    href="/en/examples/integrations/"
    description="Working templates: Express middleware, Next.js API route, background queues, caching."
  />
</CardGrid>

## Don't see what you need?

The [Sandbox](/en/sandbox/) gives you 100 % free access to all {siteMeta.endpoints} endpoints with deterministic responses — use it to quickly prototype integrations without spending credits.
