cdda7e6ab5 | ||
---|---|---|
.. | ||
README.md |
README.md
Abstract Time, Date & Timezone
Description
Quickly and easily get the time and date of a location or IP address, or convert the time and date of one timezone into another
Example Request
- Curl
curl "https://time.abstractapi.com/v1/?api_key={{token}}&location=Oxford, United Kingdom"
- Raw
GET /v1/?api_key={{token}}&location=Oxford,%20United%20Kingdom HTTP/1.1
Host: time.abstractapi.com
Response
- Success
{
"requested_location": "Oxford, United Kingdom",
"longitude": -1.257677,
"latitude": 51.752022,
"datetime": "2020-07-01 14:22:13",
"timezone_name": "British Summer Time",
"timezone_abbreviation": "BST",
"gmt_offset": "+1",
"is_dst": true
}
- Error
{
"error":{
"message":"Invalid API key provided.",
"code":"unauthorized",
"details":null
}
}
Regex
[a-z0-9]{32}
Example API key
of3ab02f3xd12ldofxc3fosc129sd241