sthan.io

sthan.io API

Address and location data APIs for developers. Includes address autocomplete, parsing, verification, geocoding, reverse geocoding (USA), address autocomplete…

Developer tools#data-validation

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Address and location data APIs for developers. Includes address autocomplete, parsing, verification, geocoding, reverse geocoding (USA), address autocomplete (India), and IP geolocation (global). All endpoints require JWT Bearer authentication — call GET /Auth/Token first to obtain a token.

Endpoints 12

Auth

  • GETObtain a JWT Bearer token for API authentication./auth/token

AutoCompleteUsa

  • GETRetrieves autocomplete suggestions for a given address text./autocomplete/usa/address/:text
  • GETRetrieves autocomplete suggestions for a given city text./autocomplete/usa/city/displaytype/:displayType/:text
  • GETRetrieves autocomplete suggestions for a given ZIP code text./autocomplete/usa/zipcode/displaytype/:displayType/:text

AutoCompleteIndia

  • GETGets a list of cities based on the display type and search text./autocomplete/ind/city/displaytype/:displayType/:text
  • GETGets a list of localities based on the display type and search text./autocomplete/ind/locality/displaytype/:displayType/:text
  • GETGets a list of pin codes based on the display type and search text./autocomplete/ind/pincode/displaytype/:displayType/:text

AddressParserUsa

  • GETParse a freeform US address into structured components, V2./v2/address-parser/usa/:mode/:address

AddressVerificationUsa

  • GETVerify a US address, V2./v2/address-verification/usa/:mode/:address

GeocodingUsa

  • GETGeocode a USA address to coordinates (latitude/longitude)/geocoding/usa/forward/:address
  • GETReverse geocode coordinates to USA address/geocoding/usa/reverse/:lat/:lon

IpGeolocation

  • GETRetrieves geolocation and network information for a given IP address (IPv4 or IPv6)./ipgeolocation/:ip

API details

Authentication
A bearer token in the Authorization header
Operations
12 operations on 12 pathsGET 12
Main resources
AutoCompleteIndia 3AutoCompleteUsa 3GeocodingUsa 2AddressParserUsa 1AddressVerificationUsa 1Auth 1IpGeolocation 1
Response formats
application/json text/json text/plain
Description format
OpenAPI 3.0.1, API version v1

How to test the sthan.io API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the sthan.io API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Obtain a JWT Bearer token for API authentication.” (GET /auth/token), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the sthan.io API?

Address and location data APIs for developers. Includes address autocomplete, parsing, verification, geocoding, reverse geocoding (USA), address autocomplete… It is listed under Developer tools and has 12 endpoints.

Who publishes the sthan.io API?

It is listed from sthan.io's public API description (an OpenAPI document), not published by sthan.io on Swastik Codes. Anyone who controls sthan.io can claim the profile by adding a DNS TXT record.

How do I authenticate with the sthan.io API?

With A bearer token in the Authorization header.

How many endpoints does the sthan.io API have?

12 operations on 12 paths (12 GET). The largest groups are AutoCompleteIndia, AutoCompleteUsa, GeocodingUsa, AddressParserUsa.

Is forking the sthan.io API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.