YouTube: Search
Search from YouTube as JSON. 1 credit per successful call.
GET /v1/youtube/searchNeeds terms
Note
This endpoint needs the restricted-endpoint terms, which you can accept in your dashboard.
Parameters
Send parameters in the query string.
Required Send query or continuation.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Optional | Any |
limit | integer | Optional | Any |
page | integer | Optional | Any |
continuation | string | Optional | Any |
hl | string | Optional | Up to 2 characters |
gl | string | Optional | Up to 2 characters |
type | string | Optional | video, channel, playlist, movie, all |
order | string | Optional | date, rating, relevance, viewCount |
videoDuration | string | Optional | short, medium, long |
publishedAfter | string | Optional | Any |
publishedBefore | string | Optional | Any |
safeSearch | string | Optional | moderate, none, strict |
Example request
curl "https://api.perceptlayer.com/v1/youtube/search?query=programming+tutorial" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in results has these 18 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
type | string |
id | string |
title | string |
description | string |
thumbnail | url |
duration | string |
viewCount | string |
publishedTime | string |
channel | object |
isLive | boolean |
isShort | boolean |
isPremium | boolean |
name | string |
subscriberCount | string |
verified | boolean |
isVerifiedArtist | boolean |
handle | string |
videoCount | string |