VI | EN
Message us on Messenger
Developer resources

Get recommended interest and action categories — TikTok Business API

Get recommended interest and action categories · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

Get recommended interest and action categories

POST/tool/targeting_category/recommend/Via 360: POST https://partner.quantri360.com/v1/tiktok_business/tool/targeting_category/recommend/
Description

Use this endpoint to get recommended interest and action categories based on historical performance data in the same industries.

Request

Endpoint

POST https://partner.quantri360.com/v1/tiktok_business/tool/targeting_category/recommend/

Authentication & shop

NameInTypeSampleDescription
AuthorizationheaderheaderBearer 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_idquerystring7000000000000000001Tà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

NameInTypeRequiredSampleDescription
region_codesbodystring[]YesList of country or region codes. For example: ["US", "JP", "KR"]

Request examples

curl -s -X POST "https://partner.quantri360.com/v1/tiktok_business/tool/targeting_category/recommend/" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"region_codes":[]}'
Python
import requests

KEY = "q360_live_..."  # khóa API của brand
r = requests.post(
    "https://partner.quantri360.com/v1/tiktok_business/tool/targeting_category/recommend/",
    params={},
    json={
        "region_codes": []
    },
    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/targeting_category/recommend/');
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: 'POST',
  headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"region_codes":[]}),
});
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/targeting_category/recommend/' . '?' . http_build_query([]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key, 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"region_codes":[]}');
$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)

NameTypeSampleDescription
codenumberResponse code. For the complete list of error codes and descriptions, see Appendix - Return Codes.
messagestringResponse message. For details, see Appendix - Return Codes.
request_idstringThe log ID of a request, which uniquely identifies the request.
dataobjectReturned data.
interest_categoriesobject[]Recommended interest categories.
interest_category_idstringInterest category ID. It can used as one of the targeting settings when creating an ad group.
interest_category_namestringInterest category name.
placementsstring[]List of placements that the interest categories can be used. If blank is returned, it means the interest category can be used in all placements.
special_industriesstring[]Ad categories. Enum values: - `HOUSING`: Ads for real estate listings, homeowners insurance, mortgage loans or other related opportunities. - `EMPLOYMENT`: Ads for job offers, internship, professional certification programs or other related opportunities. - `CREDIT`: Ads for credit card offers, auto loans, long-term financing or other related opportunities. Note: - If the returned value is empty(`[]`), it means that the interest categories do not support any industry types. - This field is only supported for advertisers who are registered in America or Canada.
action_categoriesobject[]Recommended action categories.
action_category_idstringAction category ID. It can be used as one of the targeting settings when creating an ad group.
action_category_namestringAction category name.
descriptionstringAction category description.
scenestringAction category scene. Enum values: `CREATOR_RELATED`, `VIDEO_RELATED`.
special_industriesstring[]Ad categories. Enum values: - `HOUSING`: Ads for real estate listings, homeowners insurance, mortgage loans or other related opportunities. - `EMPLOYMENT`: Ads for job offers, internship, professional certification programs or other related opportunities. - `CREDIT`: Ads for credit card offers, auto loans, long-term financing or other related opportunities.Note: - If the returned value is empty(`[]`), it means that the interest categories do not support any industry types. - This field is only supported for advertisers who are registered in America or Canada.

Response sample

HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "20220614231448010245246039155606FD",
    "data": {
        "interest_categories": [
            {
                "interest_category_id": "11",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "placements": [],
                "interest_category_name": "Vehicles & Transportation"
            },
            {
                "interest_category_id": "20",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "placements": [],
                "interest_category_name": "Apps"
            },
            {
                "interest_category_id": "23117104",
                "special_industries": [],
                "placement": [
                    "PLACEMENT_TIKTOK",
                    "PLACEMENT_PANGLE"
                ],
                "interest_category_name": "Talk Shows"
            },
            {
                "interest_category_id": "20105",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "placement": [],
                "interest_category_name": "Online Shopping"
            },
            {
                "interest_category_id": "10",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "placement": [],
                "interest_category_name": "Education"
            },
            {
                "interest_category_id": "26105",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "placement": [],
                "interest_category_name": "Housekeeping"
            }
        ],
        "action_categories": [
            {
                "action_category_name": "Fitness & Health",
                "action_category_id": "21",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "description": "TikTok users who have followed healthy lifestyle or fitness creators.",
                "scene": "CREATOR_RELATED"
            },
            {
                "action_category_name": "Other Transportation and Vehicle",
                "action_category_id": "22002",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "description": "TikTok users who have followed creators that post content about other types of transportation vehicles.",
                "scene": "CREATOR_RELATED"
            },
            {
                "action_category_name": "Selfie",
                "action_category_id": "27001",
                "special_industries": [
                    "HOUSING",
                    "EMPLOYMENT",
                    "CREDIT"
                ],
                "description": "TikTok users who have followed creators that post selfies.",
                "scene": "CREATOR_RELATED"
            }
        ]
    }
}
(/code);

Get started

  1. Sign up for Partner
  2. Enable a data type of the Ads (Marketing API) group on the platform page
  3. Create an API key (tick the TikTok Business channel)
  4. Call it as in the examples above