TikTok Ads API - Custom Audiences & Lookalikes w/Auto-Hashing avatar

TikTok Ads API - Custom Audiences & Lookalikes w/Auto-Hashing

Pricing

from $0.01 / 1,000 results

Go to Apify Store
TikTok Ads API - Custom Audiences & Lookalikes w/Auto-Hashing

TikTok Ads API - Custom Audiences & Lookalikes w/Auto-Hashing

Create & manage TikTok Custom Audiences. Upload customer files w/automatic SHA256 hashing, create lookalike audiences & manage segments for TikTok campaigns. Create a new custom audience Get details of a specific audience List all custom audiences Update audience name Delete a custom audience

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

TikTok Custom Audiences - TikTok Ads API

Create and manage TikTok Custom Audiences via TikTok Marketing API. Upload customer files with auto-hashing, create lookalike audiences, manage segments for TikTok advertising campaigns.

BYOK (Bring Your Own Key) -- you provide your own API credentials.


Before You Start

This actor requires your own API credentials to fetch real data.

Where to get your key: TikTok Marketing API access token

You can test with Demo Mode first (free, no key needed) to see the output format before committing.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true
}

Run with real data

{
"demoMode": false,
"task": "list_audiences",
"accessToken": "YOUR_API_KEY_HERE",
"audienceType": "CUSTOMER_FILE",
"fileType": "EMAIL",
"isAlreadyHashed": false,
"retentionDays": 365,
"lookalikeType": "BALANCED"
}

Input Parameters

ParameterTypeDefaultRequiredDescription
taskstring"list_audiences"Yes*The operation to perform
accessTokenstring-Yes*TikTok Marketing API access token
advertiserIdstring-NoTikTok Ads advertiser account ID
audienceIdstring-NoID of the custom audience to operate on
audienceNamestring-NoName for the custom audience
audienceTypestring"CUSTOMER_FILE"NoType of custom audience
fileTypestring"EMAIL"NoType of customer identifiers being uploaded
usersstring-NoJSON array of user objects with email, phone, or device IDs
isAlreadyHashedbooleanfalseNoSet to true if user data is already SHA256 hashed
retentionDaysinteger365NoNumber of days to retain audience members (1-365)
sourceAudienceIdstring-NoSource audience for creating lookalike
lookalikeTypestring"BALANCED"NoSize of lookalike audience
targetLocationsstring-NoComma-separated location IDs for lookalike targeting
targetAdvertiserIdstring-NoAdvertiser ID to share audience with
webhookUrlstring-NoURL to receive results via webhook
demoModebooleantrueNoRun with sample data for testing (no external API calls)

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
Audience UploadedEach TikTok custom audience uploaded$0.02

Demo mode is free -- no charges for sample data.


Troubleshooting

"API key is required"

You have Demo Mode turned off but didn't provide an API key. Either:

  • Turn Demo Mode on to test with sample data
  • Add your API key in the input

"API error 403" or "Unauthorized"

Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • API key without proper permissions
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal