Utilities
AvailablePlace Search API
Searches about 780,000 places by name, in any script, and returns coordinates, IANA zone and the UTC offset in force on a given date/time. Fast enough to call as someone types.
- POST /v1/utilities/geo-search
- 1 credit
curl https://api.96astroapi.com/v1/utilities/geo-search \ -H "Authorization: Bearer $ASTRO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Delhi", "date": "1990-10-18", "time": "14:30" }'
Overview
Searches about 780,000 places by name, in any script, and returns coordinates, IANA zone and the UTC offset in force on a given date/time. Fast enough to call as someone types.
Call it with POST /v1/utilities/geo-search. Input: name. Output: JSON, as a direct response. Each successful call costs 1 credit.
- POST /v1/utilities/geo-search
- 1 credit
- Name
Try it
Response
Ready when you are
Press Run it to see the live response here.
Example response
Fields in dataMeasured from 6 real answers to different inputs: a required field was in every one.
querystringplacesarray of objectcatalogueobject
200Example response
Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.
Loading the example…
Request schema and every field: the Utilities reference.
Related endpoints
01What does the Place Search API return?
Searches about 780,000 places by name, in any script, and returns coordinates, IANA zone and the UTC offset in force on a given date/time. Fast enough to call as someone types. The response's data object includes query, places and catalogue. See the reference for an example response.
02What input does Place Search need?
Name.
03How much does a Place Search call cost?
1 credit per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.
04Can I try it before paying?
Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.


