POST /v1/tiktok/ads/get_query_suggestions
Get query suggestions
stable · 2 credits per success
Get popular query suggestions for ad search;Understand current popular ad search keywords and trends;Help discover new creative directions and hot topics;query: Leave empty for popular suggestions in scenario 1; provide a keyword for related suggestions in scenario 2;count: Number of suggestions to return, default 50;scenario: Scenario type: 1 for popular suggestions, 2 for related suggestions;co…
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| count | integer | body | no | 建议数量 | 20 |
| query | string | body | no | 场景1留空返回热门建议;场景2传入关键词 | demo |
| cookie | string | body | no | 自定义Cookie字符串(可选) | demo |
| scenario | integer | body | no | 场景类型:1热门建议,2关键词联想 | demo |
| country_code | string | body | no | 可选国家 | demo |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.