# Search ads

Get TikTok AD data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by TikHub, configure supported query parameters and filters, and retrieve structured data including business status code, continuation flag, result limit, page number, and reported total count for content research and account lookup, and integration reference.

Documentation: https://openany.si/tiktok/tiktok-ad/462ae38d-a66d-495a-99f0-0599da0cb715/
API ID: 462ae38d-a66d-495a-99f0-0599da0cb715
Provider: tikhub
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/ads/search_ads
Page update time: 2026-12-03T02:53:41.835Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.001 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:33.462Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## TikTok Search ads API

Search for ads with the TikTok API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `data.pagination.has_more` | Continuation flag |
| `data.pagination.limit` | Result limit |
| `data.pagination.page` | Page number |
| `data.pagination.total` | Reported total count |
| `data.materials[].id` | Identifier |
| `data.materials[].ads_info` | Returned ads info field |
| `data.materials[].aweme_id` | Video identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Search ads request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "type": "object",
      "properties": {
        "objective": {
          "type": [
            "integer",
            "null"
          ],
          "description": "广告目标类型（可选）/Ad objective (optional; 1:流量 2:应用安装 3:转化 4:视频浏览 5:触达 6:潜在客户 7:产品销售)"
        },
        "like": {
          "type": [
            "integer",
            "null"
          ],
          "description": "表现排名（可选）/Performance rank (optional; 1:前1-20% 2:前21-40% 3:前41-60% 4:前61-80% 5:前81-100%)"
        },
        "period": {
          "type": "integer",
          "description": "时间段/Time period (days)"
        },
        "industry": {
          "type": "string",
          "description": "行业ID/Industry ID"
        },
        "keyword": {
          "type": "string",
          "description": "搜索关键词/Search keyword"
        },
        "page": {
          "type": "integer",
          "description": "页码/Page number"
        },
        "limit": {
          "type": "integer",
          "description": "每页数量/Items per page"
        },
        "order_by": {
          "type": "string",
          "description": "排序方式/Sort by (for_you, likes)"
        },
        "country_code": {
          "type": "string",
          "description": "国家代码/Country code"
        },
        "ad_format": {
          "type": [
            "integer",
            "null"
          ],
          "description": "广告格式（可选）/Ad format (optional; 1:Spark Ads 2:Non-Spark Ads)"
        },
        "ad_language": {
          "type": [
            "string",
            "null"
          ],
          "description": "广告语言（可选）/Ad language (optional)"
        },
        "duration": {
          "type": [
            "integer",
            "null"
          ],
          "description": "视频时长筛选值（可选）/Video duration filter value (optional)"
        },
        "pattern_label": {
          "type": [
            "string",
            "null"
          ],
          "description": "创意趋势标签（可选）/Creative pattern label (optional)"
        },
        "search_id": {
          "type": "string",
          "description": "搜索ID（可选）/Search ID (optional)"
        },
        "cookie": {
          "type": "string",
          "description": "自定义Cookie字符串（可选）"
        }
      }
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "materials": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ads_info": {
                "type": "object",
                "properties": {
                  "advertiser_name": {
                    "type": "string"
                  },
                  "landing_page": {
                    "type": "string"
                  }
                }
              },
              "aweme_id": {
                "type": "string"
              },
              "create_time": {
                "type": "integer"
              },
              "desc": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "statistics": {
                "type": "object",
                "properties": {
                  "comment_count": {
                    "type": "integer"
                  },
                  "digg_count": {
                    "type": "integer"
                  },
                  "share_count": {
                    "type": "integer"
                  }
                }
              },
              "video_info": {
                "type": "object",
                "properties": {
                  "cover": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "pagination": {
          "type": "object",
          "properties": {
            "has_more": {
              "type": "boolean"
            },
            "limit": {
              "type": "integer"
            },
            "page": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          }
        }
      }
    },
    "params": {
      "type": "object",
      "properties": {
        "industry": {
          "type": "string"
        },
        "keyword": {
          "type": "string"
        },
        "limit": {
          "type": "integer"
        },
        "page": {
          "type": "integer"
        },
        "period": {
          "type": "integer"
        }
      }
    },
    "router": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/ads/search_ads' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw 'null'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "code": 200,
  "data": {
    "materials": [
      {
        "ads_info": {
          "advertiser_name": "PetToys Inc.",
          "landing_page": "https://example.com/cat-toys"
        },
        "aweme_id": "7213258221116751874",
        "create_time": 1680234567,
        "desc": "Best interactive cat toys! Keep your cats entertained 🐱",
        "id": "7213258221116751874",
        "statistics": {
          "comment_count": 3421,
          "digg_count": 128456,
          "share_count": 892
        },
        "video_info": {
          "cover": "https://p16-ad-sg.tiktokcdn.com/img/xxx.jpeg",
          "duration": 15
        }
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 20,
      "page": 1,
      "total": 1523
    }
  },
  "params": {
    "industry": "27000000000",
    "keyword": "cat toy",
    "limit": 20,
    "page": 1,
    "period": 180
  },
  "router": "/api/v1/tiktok/ads/search_ads"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Which pagination or result-size inputs are exposed?
page is integer; limit is integer; country_code is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### What type does objective use?
objective uses the JSON type integer in body. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Which request format should I follow?
Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- anyapi: https://openany.si/tiktok/tiktok-ad/5a707d0d-6a2e-4d20-8d4d-3815d7aed496/
- anyapi: https://openany.si/tiktok/tiktok-ad/603f362b-02a4-4ea1-bf03-0aff79f4012b/
- anyapi: https://openany.si/tiktok/tiktok-ad/6f094d5d-3fc2-48e6-ace0-0082f93d9987/
- anyapi: https://openany.si/tiktok/tiktok-ad/8841b046-b89f-4dfb-bcd9-5cb189a1c77e/
- scrapecreators: https://openany.si/tiktok/tiktok-ad/05f2b06f-fc84-4a1d-a8a7-675ccfd4766a/
- scrapecreators: https://openany.si/tiktok/tiktok-ad/0b243c2f-276a-430a-abec-fa9ed386b216/
- tikhub: https://openany.si/tiktok/tiktok-ad/0b986dce-2b15-467d-b45d-95b4e06d6362/
- tikhub: https://openany.si/tiktok/tiktok-ad/2946c851-58ea-4912-86a9-f9cc50ca9192/
- tikhub: https://openany.si/tiktok/tiktok-ad/3c3ad071-9a32-402b-a572-ba02dabe019d/
- tikhub: https://openany.si/tiktok/tiktok-ad/42a0e4ea-41b8-43e1-864b-3b1910ad03ee/
- tikhub: https://openany.si/tiktok/tiktok-ad/462ae38d-a66d-495a-99f0-0599da0cb715/
- tikhub: https://openany.si/tiktok/tiktok-ad/9dfa7d86-8f5b-43ac-8bdc-eb7b4a0a488a/
- tikhub: https://openany.si/tiktok/tiktok-ad/b80b338c-6891-4598-adc1-9c156181a581/
- tikhub: https://openany.si/tiktok/tiktok-ad/f4f7568c-b659-4a0b-bab1-93bc374f1838/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
