YouTube Hashtag Video Feed Search
Retrieve YouTube videos tagged with any public hashtag including video IDs, titles, channel names, view counts, and thumbnails.
curl -sG "https://api.agentapigate.ai/v1/youtube/search/hashtag" \ --data-urlencode "hashtag=ai" \ --data-urlencode "limit=15" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# YouTube Hashtag Video Feed Search (`youtube.search.hashtag`) **hashtag**: ai · **count**: 15 ## videos - [1] video_id: wU-g8_FCsb8, type: video, title: Use AI Better Than 99% of People (Here’s How the Top 1% Do It), channel_title: Vaibhav Sisinty, channel_id: UClXAalunTPaX1YV185DWUeg - [2] video_id: IPukuYb9xWw, type: video, title: Ameca Humanoid Robot AI Platform, channel_title: Engineered Arts, channel_id: UCVIo_UX--1R03WE_U3I6xEA - [3] video_id: qgL_IbP2qKg, type: video, title: OpenAI insider: An AI accident is the most likely way people will die, channel_title: CNN, channel_id: UCupvZG-5ko_eiXAupbDfxWw - [4] video_id: gGpFB3ms6rU, type: video, title: Three Ai agents realize they're all AI, then switch to a Secret Language..., channel_title: Ai Convo, channel_id: UCVtj6d9S8N2CkIgt4ae3SIg - [5] video_id: YKS34sswxbg, type: video, title: AI that builds itself: Golden age or time to panic? | BBC News, channel_title: BBC News, channel_id: UC16niRr50-MSBwiO3YDb3RA - [6] video_id: L8HdlknRkA4, type: video, title: The “Godfather of AI” on the Risks That Worry Him Most | Geoffrey Hinton | TED, channel_title: TED, channel_id: UCAuUUnT6oDeKwE6v1NGQxug - [7] video_id: EDb37y_MhRw, type: video, title: Generative vs Agentic AI: Shaping the Future of AI Collaboration, channel_title: IBM Technology, channel_id: UCKWaEZ-_VweaEx1j62do_vQ - [8] video_id: t4GOIyjT7_I, type: video, title: OpenAI and Anthropic Are Shutting Down AI, channel_title: House of El: AI, channel_id: UCsoc5Ad-fC7wWie2PH4rPcw - [9] video_id: atwnkFRcB4g, type: video, title: Even AI Sceptics Are Changing Their Forecasts, channel_title: Sabine Hossenfelder, channel_id: UC1yNl2E66ZzKApQdRuTQ4tw - [10] video_id: _JbDZ2Rj2SA, type: video, title: Anthropic CEO tells CNN how AI 'agent swarms' could threaten humanity, channel_title: CNN, channel_id: UCupvZG-5ko_eiXAupbDfxWw - [11] video_id: wNMoEXr12rY, type: video, title: AI inside a real robot girlfriend does exactly what experts warned., channel_title: InsideAI, channel_id: UC0_M9eztZvetcyLAb5f-o5w - [12] video_id: PJhHeCA4A9k, type: video, title: "Do Not Have Conversations With AI" — The Terrifying Rise Of 'Parasitic AI', channel_title: AI Abyss, channel_id: UCaa7enNHk8jyRwGpKOfy9rA - [13] video_id: DKA5AkrQfxo, type: video, title: AI progress is speeding up dramatically - here’s why you should care, channel_title: Sky News, channel_id: UCoMdktPbSTixAyNGwb-UYkQ - [14] video_id: Y26KouUrJNU, type: video, title: Emma AI Is More Disturbing Than I Expected, channel_title: Faucette Media, channel_id: UCLyF3WOZPvhrQL9ttgRV68g - [15] video_id: nVyD6THcvDQ, type: video, title: 99% of Beginners Don't Know the Basics of AI, channel_title: Jeff Su, channel_id: UCwAnu01qlnVg1Ai2AbtTMaA
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:youtube.search.hashtag · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| hashtag | string | required | ai | Hashtag with or without leading # (e.g. ai, coding, shorts) |
| limit | number | optional | 15 | Max videos (1-30) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0020 / call | $0/mo · Balance never expires |
| Remote MCP Tool | youtube_search_hashtag | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 262 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 9466t → 716t (-92%) | Partner credit: paid_usd / x402 |
More youtube.search Sibling Endpoints
Frequently Asked Questions
How do I call YouTube Hashtag Video Feed Search (youtube.search.hashtag) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/youtube/search/hashtag with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool youtube_search_hashtag on https://mcp.agentapigate.ai/mcp.
What does youtube.search.hashtag cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.002 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on youtube.search.hashtag?
Passing ?format=md transforms the response into normalized Markdown (~716 tokens vs ~9466 raw tokens, saving 92% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only social endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["youtube.search.hashtag"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.