Connect to Astronomy Core

Choose REST or MCP — same operations and credits. Works with Claude, ChatGPT, Perplexity, Cursor, VS Code, and AI apps you build yourself. OAuth for chat assistants; API keys for REST and IDEs. Full catalog in Docs.

43 MCP tools
MCP v0.20.0
API v4.14.0

1. Get an API key

Create a key in your dashboard — it looks like ac_live_.... Copy it once at creation, then paste it into the curl example below.

Sign up or log in if you do not have an account yet.

2. Run your first request

Solar system snapshot (Rome, defaults) — replace ac_live_... with your key. Same example as Docs.

cURL (example)
curl -H "Authorization: Bearer ac_live_..." \
  "https://api.astronomycore.com/v1/snapshots?latitude=41.9028&longitude=12.4964"

3. Example response

Sample payload for Rome defaults — your live response includes full meta and observer fields.

{
  "data": {
    "observerData": {
      "sun": {
        "body": "sun",
        "altitude": 59.4851,
        "azimuth": 160.2144,
        "distanceAu": 1.0162
      },
      "moon": {
        "body": "moon",
        "altitude": 42.118,
        "azimuth": 248.331,
        "phase": "waxing gibbous",
        "illumination": 0.812
      }
    }
  },
  "meta": {
    "tier": "free",
    "engine": "ephemeris",
    "referenceFrame": "topocentric",
    "units": {
      "angles": "deg",
      "distance": "au",
      "time": "UTC"
    }
  }
}

Rate limits, error codes, and schemas → API reference.