How to Test the ExactPredictions API
An API endpoint is one specific job the server can do, such as “create a horoscope” or “calculate Shadbala”.
GET reads information using values in the URL. POST sends a JSON body, which is the usual method for these calculation endpoints.
Authorize
- Create your own API key at API Access. There is no shared test key.
- Click Authorize at the top of the endpoint list.
- Paste the key into the Bearer field. Do not include the word Bearer — Swagger adds that for you.
- Click Authorize, then Close.
- When you finish, open Authorize again and click Logout if you are on a shared computer.
Run an endpoint
- Click a group name, then the endpoint row, to expand it.
- Click Try it out.
- Fill query fields, or paste JSON into the request body. JSON must use double quotes.
- Click Execute.
- Read the request URL, the response code, and the response body.
- Use Copy JSON or Download JSON under the response, or copy from the code block.
Reuse horoscope JSON
- Run POST /v2/horoscope first.
- Copy the full response JSON, not one nested section.
- Open another compatible endpoint, click Try it out, paste the JSON, then Execute.
- You can also download the standard sample horoscope JSON and paste that instead.
- The editor may pretty-print a large JSON body. Execute still sends a compact copy, so testing matches the live app.
A successful calculation returns HTTP 200 and a JSON object with "status": "success".
Testing Tips
- Start with the main horoscope endpoint.
- Always use valid JSON with double quotation marks.
- Do not remove required JSON fields.
- Dates and times must match the documented format.
- Latitude, longitude, timezone, ayanamsa, language, and node type must use supported values.
- Copy the complete horoscope JSON, not only one section.
- 200 — success.
- 400 or 422 — invalid or missing input.
- 401 — missing or invalid API key.
- 403 API_ACCESS_NOT_ELIGIBLE — this account cannot use an external API key.
- 404 — incorrect or unavailable endpoint.
- 413 — the JSON body is larger than 2 MB.
- 429 API_CREDIT_QUOTA_EXCEEDED — the shared API-credit allowance is used up. Do not keep retrying.
- 429 RATE_LIMITED — short-window or concurrency limit. Retry after the stated delay.
- 500 — server error; please report it.
- Do not expose API keys when sharing screenshots.
- Format large JSON responses for easier reading.
How to report a problem
Contact support with the endpoint path, the HTTP status, and meta.request_id. Do not send your API key.