ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Search TikTok Users by Keyword via API
Tutorial

How to Search TikTok Users by Keyword via API

Search TikTok users by keyword to discover creators in any niche. Python and JavaScript examples using Scavio API.

Get Free API KeyAPI Docs

Search TikTok users by keyword via Scavio API at $0.005/request. The search/users endpoint returns creator profiles matching your query, enabling programmatic influencer discovery by niche, topic, or brand name.

Prerequisites

  • Scavio API key
  • Python 3.8+ or Node.js 18+
  • Target keyword or niche

Walkthrough

Step 1: Search for users

Call the search/users endpoint with a keyword.

Python
import requests, os

HEADERS = {'Authorization': f'Bearer {os.environ["SCAVIO_API_KEY"]}',
           'Content-Type': 'application/json'}

resp = requests.post('https://api.scavio.dev/api/v1/tiktok/search/users',
    headers=HEADERS,
    json={'keyword': 'fitness coach', 'count': 20, 'cursor': 0})

users = resp.json()['data'].get('users', [])
for u in users:
    print(f"@{u['unique_id']} | {u['follower_count']:,} followers")

Step 2: Filter by follower count

Filter search results to find micro-influencers in your target range.

Python
micro_influencers = [u for u in users
    if 10_000 <= u['follower_count'] <= 100_000]
print(f'{len(micro_influencers)} micro-influencers found')
for u in micro_influencers:
    print(f"  @{u['unique_id']}: {u['follower_count']:,} followers")

Python Example

Python
import requests, os

HEADERS = {'Authorization': f'Bearer {os.environ["SCAVIO_API_KEY"]}',
           'Content-Type': 'application/json'}

def search_creators(keyword, min_followers=10000, max_followers=100000, pages=3):
    creators = []
    cursor = 0
    for _ in range(pages):
        resp = requests.post('https://api.scavio.dev/api/v1/tiktok/search/users',
            headers=HEADERS,
            json={'keyword': keyword, 'count': 20, 'cursor': cursor}).json()['data']
        for u in resp.get('users', []):
            if min_followers <= u.get('follower_count', 0) <= max_followers:
                creators.append({'username': u['unique_id'],
                    'followers': u['follower_count'], 'sec_uid': u['sec_uid']})
        if not resp.get('has_more'):
            break
        cursor = resp['cursor']
    return creators

creators = search_creators('skincare routine')
print(f'{len(creators)} micro-influencers in skincare')

JavaScript Example

JavaScript
const H = {'Authorization': `Bearer ${process.env.SCAVIO_API_KEY}`, 'Content-Type': 'application/json'};
async function searchCreators(keyword, minF = 10000, maxF = 100000) {
  const creators = [];
  let cursor = 0;
  for (let i = 0; i < 3; i++) {
    const r = await fetch('https://api.scavio.dev/api/v1/tiktok/search/users', {
      method: 'POST', headers: H,
      body: JSON.stringify({keyword, count: 20, cursor})
    }).then(r => r.json());
    (r.data.users || []).forEach(u => {
      if (u.follower_count >= minF && u.follower_count <= maxF)
        creators.push({username: u.unique_id, followers: u.follower_count});
    });
    if (!r.data.has_more) break;
    cursor = r.data.cursor;
  }
  return creators;
}
searchCreators('skincare routine').then(c => console.log(`${c.length} creators`));

Expected Output

JSON
Filtered list of TikTok creators matching the keyword with follower counts within the specified range.

Related Tutorials

  • How to Get TikTok Profile Data via API
  • How to Search TikTok Videos by Keyword via API

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Scavio API key. Python 3.8+ or Node.js 18+. Target keyword or niche. A Scavio API key gives you 50 free credits on signup.

Yes. The free tier includes 50 credits on signup, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Related Resources

Best Of

Best TikTok Creator Discovery API in 2026

Read more
Best Of

Best Budget Search APIs for AI Agents Under $10/mo (2026)

Read more
Use Case

TikTok Brand Safety Creator Vetting

Read more
Use Case

n8n Search Enrichment Workflow

Read more
Glossary

TikTok Creator Vetting API Pattern

Read more
Solution

Vet TikTok Influencers Before Campaign Launch

Read more

Start Building

Search TikTok users by keyword to discover creators in any niche. Python and JavaScript examples using Scavio API.

Get Free API KeyRead the Docs
ScavioScavio

Real-time search API for AI agents. Search every platform, not just Google.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative

Tools

  • JSON Formatter
  • cURL to Code
  • Token Counter
  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy