Parameters

Parameter

Type

Required

Description

address

String

Yes

The address of the location.

country

String

Yes

The 2-letter country code for this location (i.e. "US" or "CA").

city

String

No

The name of the city.

state

String

No

The 2-letter state code (i.e. "FL", or "NY").

timezone

String

Yes

The timezone this location is in (i.e. "America/Toronto" for eastern). A full list can be found here: http://worldtimeapi.org/timezones

hash

String

No

A unique identifier for the location used for querying various other end-points.

Example response

{
  "status": "success",
  "data": {
    "location": {
      "id": 1
    }
  },
  "message": "Location added."
}
Language
Authentication
Basic
base64
:
Response
Click Try It! to start a request and see the response here!