logo
YouTubeSearch YouTube Videos

Search YouTube Videos

Search YouTube videos by query.

Pricing: 1 credit per call

curl -X POST "https://v3-api.texau.com/api/v1/youtube_search" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "query": "web scraping tutorial",
  "max_results": 42,
  "cache": true
}'
{
  "data": {
    "results": [
      {
        "video_id": "example_string",
        "title": "example_string",
        "channel": "example_string",
        "view_count": 10,
        "duration": "example_string",
        "publish_date": "example_string",
        "thumbnail": "example_string"
      }
    ]
  },
  "meta": {
    "cache_hit": true,
    "execution_time_ms": 42
  }
}
POST
/youtube_search
POST
API Key (header: x-api-key)
x-api-keystring
Required

Your TexAu API key. Contact TexAu to obtain one.

Your TexAu API key. Contact TexAu to obtain one.
Content-Typestring
Required

The media type of the request body

Options: application/json
max_resultsinteger

Maximum number of results to return

Request Preview
Response

Response will appear here after sending the request

Authentication

header
x-api-keystring
Required

API Key for authentication. Your TexAu API key. Contact TexAu to obtain one.

Body

application/json
max_resultsinteger

Maximum number of results to return

Responses

dataobject
metaobject