Get time zones
GET/tool/timezone/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/tool/timezone/
Description
Use this endpoint to get time zone enumeration values, and their offsets from GMT.
Be aware that the returned offsets (gmt_offset) remain fixed and do not account for daylight saving time changes. For instance, for New York (America/New_York), the offset will always be GMT-05:00, regardless of whether New York is currently observing daylight saving time.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/tool/timezone/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
No specific parameters (besides the common ones).
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/tool/timezone/" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok_business/tool/timezone/",
params={},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/tool/timezone/');
for (const [k, v] of Object.entries({})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok_business/tool/timezone/' . '?' . http_build_query([]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | number | The return code. For the complete list of error codes and descriptions, see Appendix - Return Codes. | |
| message | string | The return message. For details, see Appendix - Return Codes. | |
| request_id | string | The log ID of a request, which uniquely identifies the request. | |
| data | object | Returned data. | |
| timezones | object[] | Time Zone list. | |
| timezone | string | Time zone. For example, "Pacific/Auckland". | |
| gmt_offset | string | Offset from GMT. For example, "GMT+12:00". |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "202107161139170102310210720317DD89",
"data": {
"timezones": [
{
"gmt_offset": "GMT+12:00",
"timezone": "Pacific/Auckland"
},
{
"gmt_offset": "GMT+12:00",
"timezone": "Pacific/Majuro"
},
{
"gmt_offset": "GMT+11:00",
"timezone": "Asia/Magadan"
},
{
"gmt_offset": "GMT+12:00",
"timezone": "Asia/Kamchatka"
},
{
"gmt_offset": "GMT+10:00",
"timezone": "Australia/Sydney"
},
{
"gmt_offset": "GMT+10:00",
"timezone": "Asia/Vladivostok"
},
{
"gmt_offset": "GMT+09:00",
"timezone": "Australia/Broken_Hill"
},
{
"gmt_offset": "GMT+09:00",
"timezone": "Asia/Jayapura"
},
{
"gmt_offset": "GMT+09:00",
"timezone": "Asia/Tokyo"
},
{
"gmt_offset": "GMT+09:00",
"timezone": "Asia/Seoul"
},
{
"gmt_offset": "GMT+09:00",
"timezone": "Asia/Yakutsk"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Australia/Perth"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Shanghai"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Hong_Kong"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Makassar"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Kuala_Lumpur"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Manila"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Irkutsk"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Singapore"
},
{
"gmt_offset": "GMT+08:00",
"timezone": "Asia/Taipei"
},
{
"gmt_offset": "GMT+07:00",
"timezone": "Asia/Jakarta"
},
{
"gmt_offset": "GMT+07:00",
"timezone": "Asia/Krasnoyarsk"
},
{
"gmt_offset": "GMT+07:00",
"timezone": "Asia/Bangkok"
},
{
"gmt_offset": "GMT+07:00",
"timezone": "Asia/Ho_Chi_Minh"
},
{
"gmt_offset": "GMT+06:00",
"timezone": "Asia/Dhaka"
},
{
"gmt_offset": "GMT+06:00",
"timezone": "Asia/Omsk"
},
{
"gmt_offset": "GMT+05:30",
"timezone": "Asia/Kolkata"
},
{
"gmt_offset": "GMT+05:30",
"timezone": "Asia/Colombo"
},
{
"gmt_offset": "GMT+05:00",
"timezone": "Indian/Maldives"
},
{
"gmt_offset": "GMT+05:00",
"timezone": "Asia/Karachi"
},
{
"gmt_offset": "GMT+05:00",
"timezone": "Asia/Yekaterinburg"
},
{
"gmt_offset": "GMT+04:00",
"timezone": "Asia/Dubai"
},
{
"gmt_offset": "GMT+04:00",
"timezone": "Indian/Mauritius"
},
{
"gmt_offset": "GMT+04:00",
"timezone": "Asia/Muscat"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Asia/Bahrain"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Asia/Baghdad"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Africa/Nairobi"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Asia/Kuwait"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Asia/Qatar"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Europe/Moscow"
},
{
"gmt_offset": "GMT+04:00",
"timezone": "Europe/Samara"
},
{
"gmt_offset": "GMT+03:00",
"timezone": "Asia/Riyadh"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Europe/Sofia"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Asia/Nicosia"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Europe/Tallinn"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Africa/Cairo"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Europe/Helsinki"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Europe/Athens"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Asia/Jerusalem"
},
{
"gmt_offset": "GMT+02:00",
"timezone": "Asia/Amman"
},
{
"gmt_offset": "GMT+
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above