Catalog / Social, content & reviews
SOCIAL, CONTENT & REVIEWS
YouTube: Search, Videos, Channels & Comments
Scrape YouTube videos, channels, search results and comments in one run.
About this data
Scrape YouTube videos, channels, search results and comments in one run. Paste links, @handles or search terms; get views, likes, comment counts, duration, publish dates, subscribers and descriptions. Export JSON, CSV or Excel. Only delivered rows are charged; failed inputs cost no row charge.
From the actor’s Apify Store listing. The per-call endpoint may return a bounded subset; its own description is below.
Buy per call over x402
One endpoint at api.ssh.autos. Each call is one JSON POST, paid in USDC with no account or API key, and answered in the same HTTP response.
POST /v1/youtube/search
Rows include video IDs, titles, source URLs, view counts, thumbnails and live/short flags.
Fetch one YouTube search page with up to 20 video results.
Descriptions, duration, publication text and channel labels appear when present on the search listing.
No video-detail, comment, channel-profile or reply requests are made.
Input
Send a JSON body to POST https://api.ssh.autos/v1/youtube/search.
| Field | Type | Required | Notes |
|---|---|---|---|
query | string | optional | 1–200 characters; default "python programming" |
maxResults | integer | optional | 1–20; default 10 |
Returned fields
The answer is JSON: records, a list of up to 20, and summary, the run status and counts. Each record has these 44 fields; a field the source does not publish comes back null.
44 fields per record
| Field | Type | Notes |
|---|---|---|
type | string | Row kind one of video, channel, comment |
input | string | — |
scrapedAt | string | — |
videoId | string | — |
url | string | — |
viewCount | integer | — |
likeCount | integer | — |
commentCount | integer | — |
publishedAt | string | — |
publishedText | string | — |
duration | integer | — |
durationText | string | — |
channelId | string | — |
channelName | string | — |
channelUrl | string | — |
channelHandle | string | — |
subscriberCount | integer | — |
hashtags | array of strings | — |
thumbnailUrl | string | — |
isLive | boolean | — |
isShort | boolean | — |
detail | string | one of full, listing |
searchQuery | string | — |
subscriberCountText | string | — |
videoCount | integer | — |
joinedDate | string | — |
country | string | — |
links | array of objects | — |
keywords | array of strings | — |
avatarUrl | string | — |
isFamilySafe | boolean | — |
aboutComplete | boolean | — |
commentId | string | — |
videoUrl | string | — |
text | string | — |
authorName | string | — |
authorChannelId | string | — |
authorIsChannelOwner | boolean | — |
authorIsVerified | boolean | — |
replyCount | integer | — |
isEdited | boolean | — |
isPinned | boolean | — |
isReply | boolean | — |
parentCommentId | string | — |
Example call
npx agentcash@latest fetch https://api.ssh.autos/v1/youtube/search -m POST -b '{"query": "python programming", "maxResults": 5}'
The example values come from the API spec or the actor’s own sample input. Running it is a paid call.
What is and isn’t charged
You pay the call price for
- An answer, including a definitive “not found” or an empty result.
- Confirmed no matches returns records: [] (charged: it is an answer).
Free
- Invalid input (422), busy (503), source failure (502), timeout (504) and calls whose client hung up are never charged.
- Invalid input and source failures are not charged.
Prefer a subscription? Run it on Apify
This data source is a public actor on the Apify Store: YouTube Scraper: Search, Videos, Channels & Comments. Run it with your Apify account and plan for larger, scheduled or exported runs; it may offer more input options than the per-call endpoint.
How x402 payment works
- Your client sends the request. The API answers
402 Payment Requiredwith the price and where to pay. - The client pays from its own wallet: USDC on Base or Solana over x402, or over MPP on Tempo. No account, sign-up or API key.
- The client retries with the payment attached and gets the JSON answer in the same call. You are only charged for answers.
The AgentCash CLI in the example does all three steps for you and pays from your AgentCash wallet. Any x402 or MPP client works the same way.
Machine-readable: openapi.json · llms.txt