TikTok AdsTikTok AdsAdvertising

Your TikTok ads' spend, impressions, clicks, conversions

tiktok-ads.query

Get spend, impressions, clicks and conversions for your TikTok ads

Price
freeプロバイダー原価
Success rate
—成功率データはまだありません成功率データはまだありません
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/tiktok-ads.queryPreview
Try online近日公開Provider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

パラメータ

spend is a decimal STRING in the advertiser's currency (not micros). Dimensions and metrics are validated as a pair: asking for a metric the chosen data_level does not support fails the whole request with code 40002 instead of dropping the column. Attribution follows the ad account's window, so today's conversions keep changing for days

パラメータ型必須説明例
クエリパラメータ
page整数任意1
metrics配列任意JSON array; defaults to a thin set, so always name them["spend","impressions","clicks","ctr","cpc","conversion","cost_per_conversion"]
end_date文字列任意YYYY-MM-DD; the window is capped (about 30 days for most report types)2026-07-28
filtering配列任意JSON array of filter objects, e.g. [{"field_name":"campaign_ids","filter_type":"IN","filter_value":"[\"123\"]"}]
page_size整数任意max 1000, default 200100
data_level文字列必須AUCTION_ADVERTISER | AUCTION_CAMPAIGN | AUCTION_ADGROUP | AUCTION_AD — must match the id dimension you ask forAUCTION_CAMPAIGN
dimensions配列必須JSON array in the query string. One id dimension plus optionally stat_time_day for a daily series: ["campaign_id","stat_time_day"]["campaign_id","stat_time_day"]
order_type文字列任意ASC | DESCDESC
start_date文字列任意YYYY-MM-DD, in the advertiser's timezone; required unless query_lifetime is true2026-06-28
order_field文字列任意spend
report_type文字列必須BASIC (performance) | AUDIENCE (demographic breakdowns) | PLAYABLE_MATERIAL | CATALOG | BCBASIC
advertiser_id文字列必須7000000000000000000
query_lifetime真偽値任意true returns all-time totals and forbids start_date/end_datefalse
  • クエリパラメータ
  • page整数任意

    例:1

  • metrics配列任意

    JSON array; defaults to a thin set, so always name them

    例:["spend","impressions","clicks","ctr","cpc","conversion","cost_per_conversion"]

  • end_date文字列任意

    YYYY-MM-DD; the window is capped (about 30 days for most report types)

    例:2026-07-28

  • filtering配列任意

    JSON array of filter objects, e.g. [{"field_name":"campaign_ids","filter_type":"IN","filter_value":"[\"123\"]"}]

  • page_size整数任意

    max 1000, default 200

    例:100

  • data_level文字列必須

    AUCTION_ADVERTISER | AUCTION_CAMPAIGN | AUCTION_ADGROUP | AUCTION_AD — must match the id dimension you ask for

    例:AUCTION_CAMPAIGN

  • dimensions配列必須

    JSON array in the query string. One id dimension plus optionally stat_time_day for a daily series: ["campaign_id","stat_time_day"]

    例:["campaign_id","stat_time_day"]

  • order_type文字列任意

    ASC | DESC

    例:DESC

  • start_date文字列任意

    YYYY-MM-DD, in the advertiser's timezone; required unless query_lifetime is true

    例:2026-06-28

  • order_field文字列任意

    例:spend

  • report_type文字列必須

    BASIC (performance) | AUDIENCE (demographic breakdowns) | PLAYABLE_MATERIAL | CATALOG | BC

    例:BASIC

  • advertiser_id文字列必須

    例:7000000000000000000

  • query_lifetime真偽値任意

    true returns all-time totals and forbids start_date/end_date

    例:false

コード例

$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tiktok-ads.query' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。