1. Platforms
  2. TikTok Scraper API
  3. TikTok search suggestions API

TikTok search suggestions API

The autocomplete suggestions TikTok shows while someone types in search.

GET api.socialscrape.dev/v1/tiktok/search/suggestions

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 1 day
Failed requests
0 credits

You send query.

Part of the TikTok Scraper API: 24 TikTok endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/tiktok/search/suggestions" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'query=dogs'

Parameters

NameTypeRequiredDescription
querystringyesPartial or complete search text. Also accepted as keyword, q.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_892207eaf0d593d9a6f77607",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "suggestion",13        "platform": "tiktok",14        "kind": "query",15        "text": "dogs hotel",16        "id": null,17        "handle": null,18        "url": null,19        "image_url": null,20        "verified": null,21        "extra": null22      },23      {24        "object": "suggestion",25        "platform": "tiktok",26        "kind": "query",27        "text": "dogs toys",28        "id": null,29        "handle": null,30        "url": null,31        "image_url": null,32        "verified": null,33        "extra": null34      }35    ],36    "cursor": null,37    "has_more": false,38    "parent": null39  },40  "cursor": null,41  "has_more": false42}

Fields

A page of results. Each entry in items is a Suggestion. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"suggestion"
platformPlatformyes
kind"query" or "channel" or "user" or "hashtag" or "place" or "product" or "unknown"
textstringyes
idstring or nullchannel / user / hashtag / place id when the platform gives one
handlestring or null
urlstring or null
image_urlstring or null
verifiedboolean or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The Python client has client.tiktok.search_suggestions(...) and the TypeScript client client.tiktok.searchSuggestions(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.