YouTube Search API

The YouTube Search API allows businesses to extract data from YouTube in real-time. It can be easily accessed by requesting at the following endpoint: api.serpdog.io/youtube.

Here is the list of default parameters you can use with this API:

ParametersDescription

api_key required

This is your API key.

q

Type: String Youtube Search Query

gl

Type: String

Default: "us" Name of the country. The name should be in

ISO 3166 Alpha-2 format.

hl

Type: String

Default Value: "en_us" The language of the requested results.

sp

Type: String This parameter is used to get the next page results. You can also filter the search results with this parameter. You can visit the YouTube website to get the filter value for integrating in the API.

html

Type: Boolean Default: false To render the response as raw HTML.

Note: 1. Each YouTube Search API request will cost you 10 request per credit. 2. Currently, JSON results are not available as the API is still in development mode. So, you will get only HTML results with this API until we are done with the development. Please use the "html=true" parameter to get the HTML results.

cURL "http://api.serpdog.io/youtube?q=javascript+tutorials&api_key=APIKEY&html=true"

Last updated