Network API v3:

- GET States

⚠️ Experimental Version

This version of the API is currently in beta and may undergo changes. For production use, please consider using the current stable version (v2).

Returns a list of all available states in the localtunity network.

Example

- Resource URL: https://api.takeoutnearby.com//v3/network/states

curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.takeoutnearby.com/v3/network/states?country_id={country_id}

Headers

Content-Type: (string, required) Must be "application/json"
Authorization: (string, required) Bearer {access_token}

Parameters

country_id: (integer, required) The id of the country to retrieve states for.

Response 200 Status Code

                    {"status": "success", "results": [{"id":"1","name":"Alabama","initials":"AL"}, {"...":"repeat for each state"}]}