Skip to main content
POST
/
video-search
Video Search
curl --request POST \
  --url https://api.octen.ai/video-search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "inputs": [
    {
      "type": "text",
      "data": "how to make sourdough bread at home"
    }
  ],
  "count": 5
}
'
{
  "request_id": "20260627120000001ABCDE12345",
  "data": {
    "results": [
      {
        "title": "How to Make Sourdough Bread at Home (Beginner's Guide)",
        "url": "https://videos.example.com/watch/sourdough-beginners-guide.mp4",
        "source_page": "https://www.example.com/blog/sourdough-beginners-guide",
        "description": "A step-by-step beginner tutorial covering starter feeding, autolyse, stretch-and-fold, shaping, and baking in a Dutch oven.",
        "cover_url": "https://cdn.example.com/thumbs/sourdough-beginners-guide.jpg",
        "duration_seconds": 842,
        "match_segment": {
          "start_seconds": 312.5,
          "end_seconds": 408
        },
        "authors": "The Home Baker",
        "time_published": "2026-02-14T09:30:00Z",
        "time_last_crawled": "2026-06-20T11:02:18Z"
      },
      {
        "title": "Easy No-Knead Sourdough for Beginners",
        "url": "https://videos.example.com/watch/no-knead-sourdough.mp4",
        "source_page": "https://www.example.com/recipes/no-knead-sourdough",
        "description": "Demonstrates a simplified no-knead method, from mixing a high-hydration dough to scoring and baking a crusty loaf in a home oven.",
        "cover_url": "https://cdn.example.com/thumbs/no-knead-sourdough.jpg",
        "duration_seconds": 615,
        "match_segment": {
          "start_seconds": 0,
          "end_seconds": 73.4
        },
        "authors": "Everyday Sourdough",
        "time_published": "2026-01-28T17:45:00Z",
        "time_last_crawled": "2026-06-19T22:14:55Z"
      }
    ]
  },
  "meta": {
    "usage": {
      "num_search_queries": 1
    },
    "latency": 482
  }
}

Authorizations

x-api-key
string
header
required

API key used for request authentication. Obtain an API key before using the API. Note: A payment method is required to use the API.

Body

application/json

Request body for the Video Search API.

inputs
object[]
required

Input array carrying a text query (at most 1).

Maximum array length: 1
count
integer
default:5

Number of results to return.

Required range: 1 <= x <= 10
time_range
enum<string>

Relative time window counting back from the current time, filtered by publish time. Mutually exclusive with start_time/end_time — if both are provided, start_time/end_time take precedence.

Available options:
day,
week,
month,
year,
d,
w,
m,
y
start_time
string<date-time>

Start time for filtering results by publish time. ISO 8601 format.

Example:

"2025-01-01T00:00:00+08:00"

end_time
string<date-time>

End time for filtering results by publish time. ISO 8601 format.

Example:

"2025-01-01T00:00:00+08:00"

safesearch
enum<string>
default:strict

Controls filtering of explicit/adult content. off disables filtering; strict drops all adult content.

Available options:
off,
strict

Response

Successful video search response

A successful Video Search response.

request_id
string

The unique identifier for this request.

data
object

The main response payload.

meta
object

Additional metadata for the Video Search request.