# Search videos

`GET https://api.tiksign.com/api/v1/web/video/search`

- Price: 100 VND / call
- Available
- Last updated: 2026-10-17

Searches videos by keyword. Use `next_cursor` to get the next page.

Every call uses exactly the cookie that you send in `X-TikTok-Cookie` — the service keeps no TikTok sessions.

## Authorization

- `X-API-Key: YOUR_API_KEY`
- `Authorization: Bearer YOUR_API_KEY`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `keyword` | Query | `string` (minLength: 1, maxLength: 100) | Required | Search keyword. |
| `cursor` | Query | `integer` (min: 0, default: 0) | Optional | Start position of the result page. |
| `count` | Query | `integer` (min: 1, max: 30, default: 20) | Optional | Number of videos in each page. |
| `X-TikTok-Cookie` | Header | `string` | Required | Your TikTok web session cookie (copied from the logged-in browser). The service keeps no sessions — every call uses exactly the cookie that you send. |

## Responses

### 200

Success.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `videos[]` | `array<object>` | Required | Videos that match the keyword. |
| `videos[].video_id` | `string` | Required | Video ID. |
| `videos[].description` | `string` | Required | Video description. |
| `videos[].author_unique_id` | `string` | Required | User name of the author. |
| `videos[].create_time` | `string<date-time>` | Required | Time of the post. |
| `videos[].play_count` | `integer` | Required | Number of views. |
| `videos[].like_count` | `integer` | Required | Number of likes. |
| `videos[].comment_count` | `integer` | Required | Number of comments. |
| `videos[].share_count` | `integer` | Required | Number of shares. |
| `next_cursor` | `integer` | Required | Use it as `cursor` of the next call. |
| `has_more` | `boolean` | Required | More results are available. |

```json
{
  "videos": [
    {
      "video_id": "7663366594881457430",
      "description": "Hello TikSign",
      "author_unique_id": "tiksign",
      "create_time": "2026-10-01T08:30:00Z",
      "play_count": 120450,
      "like_count": 9120,
      "comment_count": 214,
      "share_count": 88
    }
  ],
  "next_cursor": 20,
  "has_more": true
}
```

## Errors

- **401**: The API key is missing, wrong, or revoked.
- **402**: The wallet balance is too low for the call.
- **404**: The data was not found.
- **429**: You are over the requests per second of your plan. Wait for the time in the `Retry-After` header.

## Request example

```bash
curl -X GET 'https://api.tiksign.com/api/v1/web/video/search?keyword=tiksign' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'X-TikTok-Cookie: ttwid=…; s_v_web_id=…; msToken=…; sessionid=…'
```

```javascript
const response = await fetch("https://api.tiksign.com/api/v1/web/video/search?keyword=tiksign", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "X-TikTok-Cookie": "ttwid=…; s_v_web_id=…; msToken=…; sessionid=…",
  },
});
const data = await response.json();
console.log(response.status, data);
```

```python
import requests

response = requests.get(
    "https://api.tiksign.com/api/v1/web/video/search?keyword=tiksign",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "X-TikTok-Cookie": "ttwid=…; s_v_web_id=…; msToken=…; sessionid=…",
    },
    timeout=10,
)
print(response.status_code, response.json())
```

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://api.tiksign.com/api/v1/web/video/search?keyword=tiksign", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", "YOUR_API_KEY")
	req.Header.Set("X-TikTok-Cookie", "ttwid=…; s_v_web_id=…; msToken=…; sessionid=…")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, err := io.ReadAll(res.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(res.StatusCode, string(data))
}
```
