Social Media Search API by Keyword (2026)

Published · 3 min read

Social Media Search API by Keyword

Most social data APIs only work when you already know the exact handle. SocialLens (sociallens.dev) also lets you discover accounts: GET /v1/search?query=nike&platform=tiktok&type=users returns the profiles that match a keyword as clean JSON. This is a social media search API for the step before the lookup, when you have a brand, a niche or a name and need to find the accounts behind it.

This guide shows a real request and response, how profile search and content search differ, and what the endpoint does not do.

One keyword, the matching profiles

curl "https://api.sociallens.dev/v1/search?query=nike&platform=tiktok&type=users" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
{
  "query": "nike",
  "platform": "tiktok",
  "type": "users",
  "count": 30,
  "results": [
    {
      "username": "nike",
      "nickname": "Nike",
      "verified": true,
      "followers": 9462156,
      "avatar": "https://p19-common-sign.tiktokcdn-us.com/...",
      "id": "208464585232822272",
      "url": "https://www.tiktok.com/@nike",
      "platform": "tiktok"
    },
    {
      "username": "nikefootball",
      "nickname": "Nike Football",
      "verified": true,
      "followers": 715047,
      "avatar": "https://p19-common-sign.tiktokcdn-us.com/...",
      "id": "...",
      "url": "https://www.tiktok.com/@nikefootball",
      "platform": "tiktok"
    }
  ],
  "cursor": "...",
  "has_more": true
}

Each result carries the username, the display nickname, verified, the followers count when the search exposes it, the avatar, the stable id and the profile url. You page through more results with cursor and has_more, one credit per page. When you find the account you want, call /v1/profile on its username for the exact, current follower count and the full profile.

Two kinds of search: users and content

The type parameter switches what you are searching for.

Both share the same envelope: query, platform, type, count, results, cursor and has_more. That keeps discovery and lookup in one consistent schema.

What this endpoint does not do

When another tool is the better choice

SocialLens search is for finding accounts and content by keyword and then reading them precisely, with a free start and credits that do not expire. If you need a full influencer discovery marketplace with filters on audience quality, niche and brand affinity, a platform such as Modash is the honest better fit. If you want to build your own crawler over search result pages, Apify gives you that control. SocialLens is the quick path: a keyword goes in, the matching accounts come out as JSON, and the lookup endpoints take it from there.

Pricing

Each successful search page is 1 credit (HTTP 200), and errors cost nothing. You start with 250 free reads using only an email, no card. Paid credits are prepaid and never expire, with no monthly minimum, and the rate limit is 60 requests per minute per key with parallel requests supported.

FAQ

Which networks can I search for profiles? TikTok, Instagram and Threads with type=users. Content search with type=videos is TikTok today.

Why is followers null for some results? The search listing does not always include the follower count. Call /v1/profile on the username for the exact, current number.

How do I get the next page of results? Read cursor and has_more from the response, then pass the cursor on the next call, one credit per page, until has_more is false.

What is the difference between users and videos? type=users returns matching profiles. type=videos returns matching posts with their caption, author and counters.

Is search an exhaustive list of every account? No. It returns what the network surfaces for the keyword. It is built for discovery, and you pair it with /v1/profile for exact numbers.

Last updated: December 1, 2026.

Run these requests yourself

Every example on this page is a real call to the SocialLens API. A new account starts with 250 free reads, no card needed, and a read that fails is never charged.

Keep reading