{"uid":"cap_T8kDb72JYrmhuuKkRUufd","slug":"agdata-youtube-data-api-99d3b08f","name":"agdata YouTube Data API","description":"Unblock any URL as Markdown, or get search, social, maps, jobs and news as data. Paid per call in stablecoins over x402 or MPP, with no account.","url":"https://agdata.shveik.dev/v1/x402/youtube?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["profile","search"],"type":"string"},"limit":{"type":"integer","maximum":20,"minimum":1},"query":{"type":"string","maxLength":500}}},"responseSchema":{"type":"json","example":{"id":"QhD015WU…","url":"https://…","likes":13000,"title":"Beginner…","views":483801,"thumbnail":"https://…","channel_id":"UCZDA1kA…","channel_url":"https://…","description":"The web…","subscribers":627000,"channel_name":"Tinkernu…","published_at":"2021-11-…","comments_count":232,"duration_seconds":456}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.032","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.032/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.032","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Gh-SzMdEgIqg3KreiCuCD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.032","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches YouTube video or channel data — including metadata, stats, and search results — as structured JSON, paid per call in stablecoins with no account required.","exampleAgentPrompt":"Search YouTube for the top 5 videos about 'Python machine learning tutorial' and give me the titles, view counts, and channel names for each result.","exampleUseCases":[{"title":"Competitor YouTube channel analysis","prompt":"Look up the YouTube channel profile for 'Fireship' — I want to see their subscriber count, top video stats, and how many comments their videos get."},{"title":"Topic popularity research on YouTube","prompt":"Search YouTube for up to 10 videos about 'sourdough bread baking' and return the titles, views, likes, and how long each video is."},{"title":"Influencer vetting for a brand campaign","prompt":"Find the top YouTube videos about 'sustainable fashion' — up to 8 results — and give me the channel names, subscriber counts, and engagement numbers so I can figure out who to reach out to."}],"resultDescription":"Returns a JSON array of YouTube video or channel objects. Each record includes the video ID, URL, title, description, thumbnail URL, view count, like count, comment count, duration in seconds, published date, channel name, channel ID, channel URL, and subscriber count. The number of results is bounded by the requested limit (1–20).","failureModes":["Invalid or missing mode enum (must be 'profile' or 'search') returns a 400 error","Query string exceeding 500 characters is rejected","Limit outside the 1–20 range returns a validation error","Payment not received or insufficient USDC causes a 402 Payment Required response","YouTube content may be geo-restricted or unavailable, resulting in empty results","Channel or video not found returns an empty array or null record"],"whenToPreferThis":"Choose this endpoint when you need structured YouTube video or channel data — including stats like views, likes, subscribers, duration, and comments — without a YouTube API key or developer account. It is especially useful for AI agents that need to search YouTube programmatically, compare video performance, vet influencers, or gather social media intelligence, and it requires only a per-call stablecoin payment via x402 with no signup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:34:31.967Z","isFirstParty":false,"canonicalSlug":"agdata-youtube-data-api-99d3b08f"}