hashtagstringआवश्यक
Hashtag to search for (without the leading #).
https://api.sandbase.ai/v1/api/youtube/search-hashtagSearch YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of YouTube videos that match a hashtag. Each video includes its title, channel, view count, length and publish time. The only required input is hashtag, written without the leading #.
funny to see which topics get the most views.url.curl -X POST "https://api.sandbase.ai/v1/api/youtube/search-hashtag" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag": "funny"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
hashtag | string | Yes | Hashtag to search for (without the leading #). |
cursor | string | No | Continuation token from a previous response for pagination. |
type | string | No | Content filter. Only "all" is served: no source we buy returns a Shorts row with the channel and publish time this endpoint requires. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": "cur_eL-1ozhU5547jmeI0G5-Fg",
"videos": [
{
"authorAvatarUrl": "https://yt3.ggpht.com/k1ZJ7WufFx4wSWlXXExVel17gg_Uy08MjThN2bKqUdSO4r3tOD2QwCZhfq…",
"authorHandle": "PAW_YTP",
"authorId": "UCHUcU1A9KhO9Sf4-8E5-ArA",
"channelTitle": "PAW YTP",
"createdUtc": 1783064897,
"durationSeconds": 810,
"id": "7IYXGdzlHDU",
"image": "https://i.ytimg.com/vi/7IYXGdzlHDU/hq720.jpg",
"lengthText": "13:30",
"publishedTime": "4 months ago",
"title": "BLUEY - TRY NOT TO LAUGH 😂 [YTP] GOOF CHAOS",
"url": "https://www.youtube.com/watch?v=7IYXGdzlHDU"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.videos[].id | YouTube video ID. It is also the value of v in the video url. |
data.videos[].title | Title of the video. |
data.videos[].url | Link to the watch page for the video. |
data.videos[].views | View count as a number. |
data.videos[].durationSeconds / data.videos[].lengthText | Video length as a number of seconds and as display text such as 13:30. |
data.videos[].publishedTime / data.videos[].createdUtc | publishedTime is a relative label such as 4 months ago. createdUtc is a numeric timestamp for the same event, in Unix seconds. |
data.videos[].channelTitle / data.videos[].authorHandle | Display name and handle of the channel that posted the video. |
data.videos[].authorId | Channel ID, starting with UC. Use it to look up the channel. |
data.videos[].image / data.videos[].authorAvatarUrl | Thumbnail image URL of the video and avatar image URL of the channel. |
data.nextCursor | Token to pass as cursor to get the next page of videos. |
funny, not #funny.hashtag and set cursor to data.nextCursor from the previous response.type accepts only all, which is the default behavior, so you can leave it out.authorId to YouTube Channel Videos.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/search-hashtag" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hashtag": "funny"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
hashtagstringआवश्यकHashtag to search for (without the leading #).
typestringContent filter. Only "all" is served: no source we buy returns a Shorts row with the channel and publish time this endpoint requires.
संभावित मान: all
cursorstringContinuation token from a previous response for pagination.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
YouTube Hashtag Searchयह API YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.00045 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.014286 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/youtube/search-hashtag पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0012 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: hashtag (string)। वैकल्पिक: type (all में से एक) और cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। YouTube Hashtag Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से YouTube API access के लिए आवेदन करने की आवश्यकता नहीं है।