One keyword in. Video rows out.
Send a keyword and this endpoint returns public videos as a JSON array. The request sort is fixed to relevance. There is no sort parameter. It costs 1 credit per result returned. YouTube has 26 live endpoints on an API that covers 32 platforms.
Use via MCP: the MCP server gives Claude, Cursor and any MCP client this endpoint as a tool.
Schema of the normalizer fields. Not a captured response.
{
"data": [
{
"id": "string",
"url": "string",
"title": "string|null",
"caption": "string|null",
"views": "number|null",
"likes": "number|null",
"comments": "number|null",
"shares": "null",
"duration_sec": "number|null",
"posted_at": "string|null",
"author": "object",
"thumbnail": "string|null",
"is_live": "boolean"
}
],
"meta": {
"count": "number",
"limit": "number"
},
"request_id": "string"
}The call
JavaScript and Python retry a 429 on their own. The response has no Retry-After header, so the wait doubles from 2 seconds across five attempts, the same schedule as rate limits. One call returns one page of up to ?limit= items. There is no cursor and no next page.
Status codes on this path: 200, 202, 400, 401, 402, 404, 429. Failed calls are not charged.
const url = new URL("https://api.scrapersocial.com/v1/youtube/search");
url.searchParams.set("query", "coffee brewing");
async function withBackoff(fn) {
for (let attempt = 0; attempt < 5; attempt++) {
const resp = await fn();
if (resp.status !== 429) return resp;
const wait = 2 ** attempt * 2000 + Math.random() * 500;
await new Promise((r) => setTimeout(r, wait));
}
throw new Error("rate limit retries exhausted");
}
const resp = await withBackoff(() =>
fetch(url, {
headers: { Authorization: "Bearer sk_live_..." },
}),
);
if (!resp.ok) throw new Error(`API error ${resp.status}`);
const { data, request_id } = await resp.json();
console.log(request_id, data); import random
import time
import httpx
def get_with_backoff(url, params, headers):
for attempt in range(5):
resp = httpx.get(url, params=params, headers=headers, timeout=120)
if resp.status_code != 429:
return resp
time.sleep((2 ** attempt) * 2 + random.random() * 0.5)
raise RuntimeError("rate limit retries exhausted")
resp = get_with_backoff(
"https://api.scrapersocial.com/v1/youtube/search",
params={
"query": "coffee brewing",
},
headers={"Authorization": "Bearer sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"]) The payload
A page of video objects inside the usual data array. Each object has id, url, title, caption (the description), views, likes, comments, shares, duration_sec, posted_at, author, thumbnail and is_live. meta carries count and limit. There is no next_cursor: one call is one page, sized by limit.
shares is always null on this shape. views, likes and comments are integers. Display strings such as 3.4K are parsed into whole numbers, and a value that is neither a number nor a K, M or B abbreviation becomes null rather than a string. duration_sec is seconds. posted_at is an ISO timestamp or null. author is { handle, name }. is_live is a boolean.
Billing follows the rows you receive. Each result is 1 credit, so the page costs as many credits as it has rows. An empty page is not a list of guessed videos. A limit above 50 is accepted as an async job and returns 202 instead of the rows.
View count as an integer. A display string such as 3.4K is parsed. Null when it cannot be parsed.
Pricing
One result is 1 credit — about 0.5¢ on the monthly plan. $5 covers roughly 1,000 results. Failed calls are never charged.
20 results × 1 credit = 20 credits. That is $0.10 on Monthly and 9¢ on Annual. Full pricing.
Estimate only, on a full-year basis. 1 credits per returned result. Monthly: $5 per 1,000 credits with $5/1,000 top-ups. Annual: $54 per 12,000 credits with $4.50/1,000 top-ups. We show whichever plan is cheaper for your annual volume, divided by 12. Failed calls are never charged; cache hits cost the same as fresh calls.
On signup, no card, up to 5 items a call. Your key is on screen immediately.
Get your free API keyRate limits
Limits count requests, not credits. A 429 means wait and retry. There is no Retry-After header. On the free trial a list call is capped at 5 items. Rate limits.
Entry price, side by side
Credits are not equivalent units across vendors — each meters differently. Price your own workload on both before deciding on entry price alone. At high volume, several of these are cheaper per credit than we are.
Engineering notes
We document exactly how every endpoint behaves — nulls, caching, billing — so what you ship on day one is still running in month six. No surprises, no support tickets.
The request is sent with relevance sort, upload date all, duration all, and features all. None of those are query parameters on /v1/youtube/search. The parameters this path accepts are query, limit, fresh, fields and format.
If you need a different order, call a different endpoint. search-recent is upload date over the last week, at 1 credit per result. Shorts, live streams, channels and hashtags are separate paths with their own units. Do not retry this path hoping the order will change.
View, like and comment counts often arrive as display strings, including forms like 3.4K. They are parsed into integers. 3.4K becomes 3400. A value that is not a number and not a K, M or B abbreviation becomes null. Do not expect the original string back, and do not treat null as zero.
shares is set to null on every row of this shape. There is no share count to sort on. comments here is a count, not the comment bodies. A transcript is a different call, using the url from the row.
One call returns one page of up to limit rows. There is no cursor and no second page, so ask for the number of rows you want in that call. A free key is capped at 5 items a call, and the response says so with X-Limit-Capped. Each returned row costs 1 credit, so the cap is also a spend cap on the trial.
A limit above 50 does not return the rows in that response. It returns 202 and a job id to poll. Keep limit at 50 or below for a synchronous page. The cache class is fast: the TTL is the age of posted_at divided by 10, clamped between 15 minutes and 7 days, or 1 hour when posted_at is missing. fresh=true skips the cache at the same per-result price.
duration_sec is read with a numeric parse. A clock string such as 10:32 is not converted on the search row, so duration_sec is null for that row. views, likes and comments do parse K, M and B abbreviations. shares stays null. The price is 1 credit per result returned, about $0.005 each on the monthly plan. A failed call is not charged.
Questions
Relevance. The call sends that sort and does not accept a sort parameter. Upload date, duration and feature filters are also fixed, not query parameters. GET /v1/youtube/search costs 1 credit per result returned. Signup includes 25 free credits, and a free key returns at most 5 results a call. A 402 is out_of_credits or plan_required.
Each video on the page is 1 credit, about $0.005 on the monthly plan and $0.004 on the annual plan. You are billed for rows returned, not for the limit you asked for. Failed calls are not charged. The monthly plan is $5 and includes 1,000 credits. Rate limits are separate and count requests, not results.
Not on this endpoint. Relevance is fixed, and upload date, duration and feature filters are not parameters. For newest uploads in the last week, call /v1/youtube/search-recent at 1 credit per result. For Shorts, call /v1/youtube/shorts-search. For live streams, call /v1/youtube/streams-search. For one channel's videos, call /v1/youtube/channel-videos with a handle. Retrying this path with an extra query key will not change the order.
No. caption on a search row is the video description, which can be null. The spoken words are /v1/youtube/transcript, 5 credits per video, and that call takes the watch URL from the row. Search also does not return comment text. comments is an integer count, or null when the count cannot be parsed. shares is always null on this shape. Pass the url to the endpoint that actually returns the text you need.
Raise limit. This path has no cursor and no next page, so one call returns everything you get for that query. A free key is limited to 5 items a call even if you ask for more, and the response includes X-Limit-Capped. A limit above 50 returns 202 and a job id instead of the page. Each call counts against the plan rate limit, and each returned row costs 1 credit. A 429 has no Retry-After header, so back off on your own schedule.
Because the counts are parsed before they reach you. A display string such as 3.4K becomes the integer 3400, and the same parser covers likes and comments. A value that is not a number and not a K, M or B abbreviation becomes null. shares is not parsed. It is always null. posted_at is an ISO timestamp when the row has a date that parses, and null otherwise. is_live is a boolean, not a string.
Next
Same data, other platforms
25 trial credits on signup — no card, key on screen immediately.