search_ads
Search TikTok and Facebook ads by keyword, AI creative type, active state, region, engagement, spend, and dates to find and compare relevant ad campaigns.
Instructions
Search TikTok/Facebook ads. Use extend_keywords for text; filter by AI creative type, active state, region, engagement, spend and dates. 1 credit per result.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort: 1=Last found, 2=Created, 3=First found, 4=Plays, 5=Days, 6=Engagement, 7=Like rate, 8=Share rate, 9=Likes, 10=Comments, 11=Shares, 14=Est conversions, 15-20=FB reactions, 21=Spend, 999=Keyword relevance (use after for next page) | |
| after | No | Copy the complete cursor from the previous result. For sort=999 use [last _score, last video_id]. | |
| is_and | No | Combine keyword items with AND (true) or OR (false, default) | |
| is_app | No | Filter: has APP product | |
| is_url | No | URL status: 0=No landing page, 1=Has landing page | |
| region | No | Country/region codes, e.g. ["US","GB","DE"] | |
| ad_state | No | Delivery state: 1=Active, 0=Stopped | |
| aigc_type | No | AI creative: -1=AI generated, 0=Non-AI, 1=Advertiser labelled, 2=Official AI. Omit for all. | |
| data_type | No | Data type filter: 1=Hot Product, 2=Mini Shop Ad, 3=E-commerce, 4=Spark Ads, 5=Game, 6=App, 7=AI, 8=Short Drama | |
| page_size | No | Results per page, max 50 | |
| plat_type | No | Platform: 0=All, 1=TikTok, 2=Facebook. Omit for all platforms | |
| shop_type | No | E-commerce platform filter, e.g. ["shopify","woocommerce","magento","wix","shoplazza","shopline","squarespace","shopyy"] | |
| sort_type | No | Sort order: "desc"(default) or "asc" | |
| is_product | No | Filter: has ad product | |
| ad_cost_max | No | Maximum ad spend (USD) | |
| ad_cost_min | No | Minimum ad spend (USD) | |
| ad_language | No | Ad language filter, e.g. ["en","zh"] | |
| put_day_max | No | Maximum delivery days | |
| put_day_min | No | Minimum delivery days | |
| search_type | No | Legacy search type; prefer each item's type in extend_keywords (1 through 12) | |
| current_page | No | Page number, starting from 1 | |
| exclude_word | No | Excluded keyword items; wire parameter is exclude_word | |
| formate_type | No | Ad format: 1=Video, 2=Image, 3=Carousel | |
| last_time_end | No | Last found time end (unix timestamp) | |
| digg_count_max | No | Maximum like count | |
| digg_count_min | No | Minimum like count | |
| first_time_end | No | First found time end (unix timestamp) | |
| play_count_max | No | Maximum play/view count | |
| play_count_min | No | Minimum play/view count | |
| create_time_end | No | Creation time range end (unix timestamp in seconds) | |
| extend_keywords | No | Keyword search list. Each item has a type and keyword | |
| last_time_start | No | Last found time start (unix timestamp) | |
| share_count_max | No | Maximum share count | |
| share_count_min | No | Minimum share count | |
| first_time_start | No | First found time start (unix timestamp) | |
| comment_count_max | No | Maximum comment count | |
| comment_count_min | No | Minimum comment count | |
| create_time_start | No | Creation time range start (unix timestamp in seconds) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |