# Feed Search

Search TikTok feed videos by keywords with optional region and sorting filters.

- **Documentation:** [https://scrappa.co/docs/tiktok/tiktok_feed_search](https://scrappa.co/docs/tiktok/tiktok_feed_search)
- **API group:** TikTok API
- **Endpoint:** `GET https://scrappa.co/api/tiktok/feed/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `keywords` | string | Yes | Feed search keywords. |
| `region` | string | No | Optional region code such as US or JP. |
| `count` | integer | No | Number of results to return. |
| `cursor` | string | No | Pagination cursor for continuing a previous feed search. |
| `publish_time` | integer | No | Optional publish-time filter supported by the upstream. |
| `sort_type` | integer | No | Optional upstream sort type value for feed search ordering. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tiktok/feed/search?keywords=basketball&region=US&count=10&cursor=0"
```

## Example response

```json
{
    "code": 0,
    "msg": "success",
    "data": []
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
