YouTube

YouTube

Search / Hashtag

per_call

Keyword and hashtag search across YouTube with filters for type, duration, upload date and sort order. Returns ranked results with titles, channels, thumbnails and view counts — useful for share-of-voice studies and content-gap research.

What you get

Each call returns up to 20 videos, plus a cursor for the next 20.

Endpoint

GET /v1/youtube/search-hashtag

Price

$1.50

per 1,000 calls · $0.0015 per call

Cost per call

1 credit

Failed calls never charged

Parameters

target
required
string

The YouTube handle, URL or identifier to resolve.

limit
optional
integer

Maximum records to return, capped at this service's page size (see Limits below). Omit it to receive the whole page. It shapes the response, not the price — a call costs the same either way.

cursor
optional
string

Pagination cursor returned by a previous response.

fresh
optional
enum

Bypass cached data and force a live fetch for this one call. Use it for daily monitoring or any figure you are tracking over time. Accepts `true`, `1`, `false` or `0`; anything else returns 400 `invalid_fresh`. Defaults to false and costs exactly the same as a cached call.

One of: true, 1, false, 0

Example request

Live call. Successful calls are charged; failed and empty results are not.

curl
curl "https://fastfetchz.com/v1/youtube/search-hashtag?target=nasa" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Example response

200 application/json
{
  "success": true,
  "service": {
    "platform": "YouTube",
    "name": "Search / Hashtag",
    "slug": "search-hashtag"
  },
  "credits_charged": 1,
  "credits_remaining": 99,
  "latency_ms": 214,
  "data": {
    "videos": [
      {
        "type": "video",
        "id": "IwZVXmQdX1E",
        "url": "https://www.youtube.com/watch?v=IwZVXmQdX1E",
        "title": "NASA Moon Base: The First Six Months",
        "thumbnail": "https://i.ytimg.com/vi/IwZVXmQdX1E/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLCvrYWm1Ao-_IWUJFQMBF_yTc8_nA",
        "channel": {
          "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
          "title": "NASA",
          "handle": "NASA",
          "thumbnail": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
        },
        "viewCountText": "6,746 views",
        "viewCountInt": 6746,
        "publishedTimeText": "1 hour ago",
        "publishedTime": "2026-09-08T19:06:34.679Z",
        "lengthText": "1:07",
        "lengthSeconds": 67,
        "badges": [
          "New",
          "4K"
        ]
      },
      {
        "type": "video",
        "id": "90Kgw_SvK4w",
        "url": "https://www.youtube.com/watch?v=90Kgw_SvK4w",
        "title": "What It Takes",
        "thumbnail": "https://i.ytimg.com/vi/90Kgw_SvK4w/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLA5V0jh1a4w0hqMsQng5W-X1kUMOA",
        "channel": {
          "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
          "title": "NASA",
          "handle": "NASA",
          "thumbnail": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
        },
        "viewCountText": "263,725 views",
        "viewCountInt": 263725,
        "publishedTimeText": "4 days ago",
        "publishedTime": "2026-09-04T20:06:34.679Z",
        "lengthText": "2:32",
        "lengthSeconds": 152,
        "badges": [
          "New",
          "CC"
        ]
      }
    ],
    "channels": [
      {
        "type": "channel",
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "channelName": "NASA",
        "handle": "NASA",
        "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research. To do that, we have ...",
        "thumbnail": "http://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s176-c-k-c0x00ffffff-no-rj-mo",
        "subscriberCountText": "15.1M",
        "subscriberCountInt": 15100000,
        "badges": [
          "Verified"
        ]
      },
      {
        "type": "channel",
        "id": "UCryGec9PdUCLjpJW2mgCuLw",
        "channelName": "NASA Jet Propulsion Laboratory",
        "handle": "NASAJPL",
        "description": "Videos produced by NASA's Jet Propulsion Laboratory.",
        "thumbnail": "http://yt3.ggpht.com/Qc8LKJsm3lqSGkKSb9kkJbJWW4PXBgt25eLVwWuMFZiSRl6RHptXnC2MwfmSl2kddj4Fhb3yQw=s176-c-k-c0x00ffffff-no-rj-mo",
        "subscriberCountText": "1.24M",
        "subscriberCountInt": 1240000,
        "badges": [
          "Verified"
        ]
      }
    ],
    "playlists": [],
    "shorts": [
      {
        "type": "short",
        "id": "MT-ErptvDmg",
        "url": "https://www.youtube.com/watch?v=MT-ErptvDmg",
        "title": "NASA Sent This Message To Aliens",
        "viewCountText": "9.8M",
        "viewCountInt": 9800000
      },
      {
        "type": "short",
        "id": "r8WOK_m8UVI",
        "url": "https://www.youtube.com/watch?v=r8WOK_m8UVI",
        "title": "A Typical Space Shuttle Mission | #nasa",
        "viewCountText": "2.1M",
        "viewCountInt": 2100000
      }
    ],
    "shelves": [],
    "lives": [
      {
        "type": "live",
        "id": "tGjffGccQig",
        "url": "https://www.youtube.com/watch?v=tGjffGccQig",
        "title": "Artemis II Congressional Space Medal of Honor Ceremony",
        "thumbnail": "https://i.ytimg.com/vi/tGjffGccQig/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLANxId1UZLzvgA0YSFjJBUehtXovA",
        "channel": {
          "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
          "title": "NASA",
          "handle": "NASA",
          "thumbnail": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
        },
        "viewCountText": "165,082 views",
        "viewCountInt": 165082,
        "publishedTimeText": "Streamed 11 days ago",
        "publishedTime": "2026-08-28T20:06:34.679Z",
        "lengthText": "2:38:42",
        "lengthSeconds": 9522,
        "badges": [
          "4K",
          "CC"
        ]
      },
      {
        "type": "live",
        "id": "9wq3VHsL_bE",
        "url": "https://www.youtube.com/watch?v=9wq3VHsL_bE",
        "title": "Nancy Grace Roman Space Telescope Launch",
        "thumbnail": "https://i.ytimg.com/vi/9wq3VHsL_bE/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAugDk_YFDOOSDa3srNoIsfqilaXA",
        "channel": {
          "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
          "title": "NASA",
          "handle": "NASA",
          "thumbnail": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s68-c-k-c0x00ffffff-no-rj"
        },
        "viewCountText": "1,294,452 views",
        "viewCountInt": 1294452,
        "publishedTimeText": "Streamed 9 days ago",
        "publishedTime": "2026-08-30T20:06:34.679Z",
        "lengthText": "1:50:39",
        "lengthSeconds": 6639,
        "badges": [
          "4K",
          "CC"
        ]
      }
    ],
    "continuationToken": "EtQDEgRuYXNhGsgDU0JTQ0FSaFZRMHhCWDBScFVqRkdaa3RPZG1wMVZYQkNTRzE1YkZHQ0FRdDBSMnBtWmtkalkxRnBaNElCQ3psM2NUTldTSE5NWDJKRmdnRUxVMlZ0Y0hkMk5VMVFUVkdDQVJoVlEzSjVSMlZqT1ZCa1ZVTk1hbkJLVnpKdFowTjFUSGVDQVF0VllrRnpkWFpQTFRFMk5JSUJDMkpvTVd4amJqSlRVRTVuZ2dFTFRUWXlhMkZxV1Mxc2JqQ0NBUmhWUXpsVFRUZFdOMG94Y0VGb1VHRmlUMVZUVkRBeFpuZUNBUXMxWkdNelFUTkpRekExVllJQkMzTmxTbE50TFhaRU9VOUJnZ0VMY2xOMlEzVlRVV2hETTNlQ0FRc3liVzh6…"
  }
}

Getting more results

Each response includes a cursor. Pass it back as cursor to fetch the next 20 videos. Repeat until no cursor is returned.

two calls
# Call 1 — first 20 videos
curl "https://fastfetchz.com/v1/youtube/search-hashtag?target=nasa" \
  -H "X-API-Key: $FASTFETCHZ_KEY"
# -> { "data": { ... }, "cursor": "eyJwYWdlIjoyfQ" }

# Call 2 — next 20 videos
curl "https://fastfetchz.com/v1/youtube/search-hashtag?target=nasa&cursor=eyJwYWdlIjoyfQ" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Limits

  • Maximum per call: 20 videos.
  • Minimum per call: 1 video — a target with less data returns fewer videos, and an empty result is still a successful call.
  • Each call fetches a full page of up to 20 and costs the same either way. Pass limit to receive fewer than that in the response.
  • Larger jobs are paginated with a cursor; there is no cap on how many pages you fetch.

What this costs in practice

200,000 videos = 10,000 calls × 1 credits per call = 10,000 credits = $0.00

Priced at the Custom pack rate: 1,000,000 credits for $0.00.

Open in the pricing calculator

Error codes

401invalid_api_keyMissing or unrecognized X-API-Key header. No credits are charged.
402insufficient_creditsYour balance is below the cost of the call. Top up to continue.
403account_suspended / key_revokedThe account is suspended or the key was revoked.
429rate_limitedOver your account's requests-per-second limit. Retrying helps: the body carries retry_after_seconds and the response carries a Retry-After header. Not charged.
429monthly_cap_reachedThis key used the monthly call cap you set for it. Retrying will not help — raise the cap, use another key, or wait for the next calendar month. No Retry-After header is sent. Not charged.
500upstream_errorUnexpected failure while fulfilling the request. Not charged.