← Developer tools

Response JSON explorer

Paste any response - a full envelope, just the data object, or an error - and get a field-by-field reading from the endpoint schemas: what each value is, its type and range, and anything the schema does not describe. It runs in your browser; nothing is uploaded.

Free · runs in your browser · no API key needed · updated

Load a recorded sample

No envelope - treating the whole object as the endpoint's result. Schema: Birth Chart (Kundli) POST /v1/charts/birth · endpoint page

32 documented · 1 envelope · 0 not in schema · 0 type differs. Arrays show their first 3 items.

Annotated fields of the pasted response
FieldValueSchemaMeaning
(root){3}envelopeobjectThe endpoint's result.(root)
ascendant{2}documentedobjectDocumented field.ascendant
sign"Leo"documentedstringDocumented field.ascendant.sign
degree9.935824007692588documentednumberDocumented field.ascendant.degree
planets[3]documentedobject[]Documented field.planets
planets[0]{7}documentedobjectOne item of `planets`.planets[0]
name"Sun"documentedstringDocumented field.planets[0].name
sign"Gemini"documentedstringDocumented field.planets[0].sign
house11documentedintegerDocumented field.1..12planets[0].house
degree_in_sign18.426008095609006documentednumberDocumented field.planets[0].degree_in_sign
nakshatra"Ardra"documentedstringDocumented field.planets[0].nakshatra
nakshatra_pada4documentedintegerDocumented field.1..4planets[0].nakshatra_pada
retrogradefalsedocumentedbooleanDocumented field.planets[0].retrograde
planets[1]{7}documentedobjectOne item of `planets`.planets[1]
name"Moon"documentedstringDocumented field.planets[1].name
sign"Sagittarius"documentedstringDocumented field.planets[1].sign
house5documentedintegerDocumented field.1..12planets[1].house
degree_in_sign20.539904220094854documentednumberDocumented field.planets[1].degree_in_sign
nakshatra"Purva Ashadha"documentedstringDocumented field.planets[1].nakshatra
nakshatra_pada3documentedintegerDocumented field.1..4planets[1].nakshatra_pada
retrogradefalsedocumentedbooleanDocumented field.planets[1].retrograde
planets[2]{7}documentedobjectOne item of `planets`.planets[2]
name"Mars"documentedstringDocumented field.planets[2].name
sign"Leo"documentedstringDocumented field.planets[2].sign
house1documentedintegerDocumented field.1..12planets[2].house
degree_in_sign12.54429671104731documentednumberDocumented field.planets[2].degree_in_sign
nakshatra"Magha"documentedstringDocumented field.planets[2].nakshatra
nakshatra_pada4documentedintegerDocumented field.1..4planets[2].nakshatra_pada
retrogradefalsedocumentedbooleanDocumented field.planets[2].retrograde
meta{3}documentedobjectDocumented field.meta
ayanamsa"lahiri"documentedstringDocumented field.meta.ayanamsa
house_system"whole_sign"documentedstringDocumented field.meta.house_system
engine_version"1.2.1"documentedstringDocumented field.meta.engine_version

How the explorer reads a response

  • It detects the shape. A success envelope has request_id, data, interpretation and meta; an error has error.code, error.message and optional error.details; the chat API returns its fields at the top level with no envelope.
  • It flattens the JSON into dotted paths, with arrays written as planets[].sign, the same spelling the field tables on every endpoint page use. Arrays show their first three items.
  • It matches the endpoint by scoring how many of your paths each endpoint's schema declares, minus a penalty for declared fields you lack. Override the guess from the menu if you know the endpoint.
  • It annotates each field as documented, envelope, not in schema, or type differs - a number where the schema says string, for example.

Where the field descriptions come from

The schemas are generated from AstroNode's OpenAPI specs and checked for drift in CI. For endpoints whose response the spec leaves open, the field list was inferred from a real recorded response; the explorer says so, because an optional field can be absent from yours without anything being wrong. The one-click samples are those recorded responses, abridged.

Conventions worth knowing

  • Angles are decimal degrees. degree_in_sign is 0-30 within the sign; full longitudes are 0-360.
  • `meta.ayanamsa` and `meta.house_system` inside data say which conventions produced a chart - record them with the result.
  • Top-level `meta.engine_version` identifies the engine build. Store it next to cached results so you can invalidate them after an engine change.
  • `interpretation` is a separate prose layer and may be null; never parse prose for values that exist as fields.
  • Times are ISO-8601. A few responses also carry a UT Julian Day; convert it with the Julian Day converter.

Common mistakes

  • Reading `data` from the chat API. Chat responses have no envelope - read the fields directly.
  • Branching on `error.message`. Messages can be reworded. Branch on error.code.
  • Strict-typing every optional field as required. Schemas inferred from a recording show fields that were present in that response; treat absent optional fields as normal.
  • Comparing `computed_at`. It is the only field that changes between identical requests; exclude it when diffing responses or keying a cache.

FAQ

Is my pasted response uploaded anywhere?
No. Parsing, matching and annotation all run in your browser; the schemas are part of the page.
Why is a field marked "not in schema"?
Either the explorer matched the wrong endpoint (pick the right one from the menu), or the field is deeper than the generated tables go - they flatten three levels - or it is new. The endpoint page has the full reference.
Can I generate TypeScript types from this?
Use the OpenAPI spec for that; the explorer is for reading a response you already have.