For developers / Api documentation / Methods /

List Timezones

Back

Endpoint

GET https://api.repricer.online/v1/timezones?country_code={country_code}&timezone={timezone}&limit={limit}&page={page}&order_by={order_by}

Headers

Name Type Description

Params

Name Type Description
country_code integer Search by Country code {{query_language_link}} (optional)
timezone string Search by Timezone name {{query_language_link}} (optional)
limit integer Limit (optional, default "25")
page integer Page (optional, default "1")
order_by string Sorting (optional)

Request example

GET https://api.repricer.online/v1/timezones HTTP/1.1
Content-Type: application/json

Return: Timezone[]

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
     "status": 200,
     "current_page": 1,
     "data": [
         {
             "country_code": "WF",
             "timezone": "Pacific\/Wallis",
             "gmt_offset_winter": "12.00",
             "gmt_offset_summer": "12.00",
             "gmt_offset_raw": "12.00"
         },
         {
             "country_code": "UM",
             "timezone": "Pacific\/Wake",
             "gmt_offset_winter": "12.00",
             "gmt_offset_summer": "12.00",
             "gmt_offset_raw": "12.00"
         },
         {
             "country_code": "TO",
             "timezone": "Pacific\/Tongatapu",
             "gmt_offset_winter": "13.00",
             "gmt_offset_summer": "13.00",
             "gmt_offset_raw": "13.00"
         }
     ],
     "first_page_url": "https://api.repricer.online/v1/timezones?limit=3&page=1",
     "from": 1,
     "last_page": 142,
     "last_page_url": "https://api.repricer.online/v1/timezones?limit=3&page=142",
     "next_page_url": "https://api.repricer.online/v1/timezones?limit=3&page=2",
     "path": "https://api.repricer.online/v1/timezones",
     "per_page": 3,
     "prev_page_url": null,
     "to": 3,
     "total": 424
}