Get region calling codes and region codes for phone numbers
GET/tool/phone_region_code/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/tool/phone_region_code/
Description
Use this endpoint to retrieve the region codes, region names, and region calling codes for phone numbers.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/tool/phone_region_code/
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/phone_region_code/" \ -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/phone_region_code/",
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/phone_region_code/');
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/phone_region_code/' . '?' . 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 | Response code. For the complete list of response codes and descriptions, see Appendix-Return Code. | |
| message | string | Response 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. | |
| phone_region_code_infos | object[] | Information about the region codes, region names, and region calling codes for phone numbers. | |
| phone_region_name | string | The name of the region of a phone number. Example: `"Austria"`. | |
| phone_region_code | string | The region code for a phone number. Example: `"AT"`. | |
| phone_region_calling_code | string | The region calling code for a phone number. Example: `"+43"`. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"phone_region_code_infos": [
{
"phone_region_code": "AC",
"phone_region_name": "Antigua and Barbuda",
"phone_region_calling_code": "+247"
},
{
"phone_region_code": "AD",
"phone_region_name": "Andorra",
"phone_region_calling_code": "+376"
},
{
"phone_region_code": "AE",
"phone_region_name": "United Arab Emirates",
"phone_region_calling_code": "+971"
},
{
"phone_region_code": "AF",
"phone_region_name": "Afghanistan",
"phone_region_calling_code": "+93"
},
{
"phone_region_code": "AG",
"phone_region_name": "Antigua and Barbuda",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "AI",
"phone_region_name": "Anguilla",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "AL",
"phone_region_name": "Albania",
"phone_region_calling_code": "+355"
},
{
"phone_region_code": "AM",
"phone_region_name": "Armenia",
"phone_region_calling_code": "+374"
},
{
"phone_region_code": "AO",
"phone_region_name": "Angola",
"phone_region_calling_code": "+244"
},
{
"phone_region_code": "AR",
"phone_region_name": "Argentina",
"phone_region_calling_code": "+54"
},
{
"phone_region_code": "AS",
"phone_region_name": "American Samoa",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "AT",
"phone_region_name": "Austria",
"phone_region_calling_code": "+43"
},
{
"phone_region_code": "AU",
"phone_region_name": "Australia",
"phone_region_calling_code": "+61"
},
{
"phone_region_code": "AW",
"phone_region_name": "Aruba",
"phone_region_calling_code": "+297"
},
{
"phone_region_code": "AX",
"phone_region_name": "Åland Islands",
"phone_region_calling_code": "+358"
},
{
"phone_region_code": "AZ",
"phone_region_name": "Azerbaijan",
"phone_region_calling_code": "+994"
},
{
"phone_region_code": "BA",
"phone_region_name": "Bosnia and Herzegovina",
"phone_region_calling_code": "+387"
},
{
"phone_region_code": "BB",
"phone_region_name": "Barbados",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "BD",
"phone_region_name": "Bangladesh",
"phone_region_calling_code": "+880"
},
{
"phone_region_code": "BE",
"phone_region_name": "Belgium",
"phone_region_calling_code": "+32"
},
{
"phone_region_code": "BF",
"phone_region_name": "Burkina Faso",
"phone_region_calling_code": "+226"
},
{
"phone_region_code": "BG",
"phone_region_name": "Bulgaria",
"phone_region_calling_code": "+359"
},
{
"phone_region_code": "BH",
"phone_region_name": "Bahrain",
"phone_region_calling_code": "+973"
},
{
"phone_region_code": "BI",
"phone_region_name": "Burundi",
"phone_region_calling_code": "+257"
},
{
"phone_region_code": "BJ",
"phone_region_name": "Benin",
"phone_region_calling_code": "+229"
},
{
"phone_region_code": "BL",
"phone_region_name": "Saint Barthélemy",
"phone_region_calling_code": "+590"
},
{
"phone_region_code": "BM",
"phone_region_name": "Bermuda",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "BN",
"phone_region_name": "Brunei Darussalam",
"phone_region_calling_code": "+673"
},
{
"phone_region_code": "BO",
"phone_region_name": "Bolivia, Plurinational State of",
"phone_region_calling_code": "+591"
},
{
"phone_region_code": "BQ",
"phone_region_name": "Bonaire, Sint Eustatius and Saba",
"phone_region_calling_code": "+599"
},
{
"phone_region_code": "BR",
"phone_region_name": "Brazil",
"phone_region_calling_code": "+55"
},
{
"phone_region_code": "BS",
"phone_region_name": "Bahamas",
"phone_region_calling_code": "+1"
},
{
"phone_region_code": "BT",
"phone_region_name": "Bhutan",
"phone_region_calling_code": "+975"
},
{
"phone_region_code": "
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