YouTube

YouTube

Hashtag Videos & Shorts

per_call

Returns what YouTube lists under a hashtag as two lists: `videos` and `shorts`. On our test calls (`space`) a page held 3 to 5 videos and 25 shorts, so expect most results to be Shorts. Videos carry id, URL, title, thumbnail, channel, view count, published time and length in seconds. Set `type=shorts` to ask for Shorts only. Pass the returned `continuationToken` as `cursor` for the next page. A page is empty, and free, only when both lists are empty.

What you get

Each call returns up to 30 videos and shorts, plus a cursor for the next 30.

Endpoint

GET /v1/youtube/hashtag-videos-shorts

Price

from $1.50

per 1,000 calls · from $0.0015 per call

Cost per call

1 credit

Failed calls never charged

Parameters

hashtag
required
string

The hashtag, with or without `#`, or a `youtube.com/hashtag/…` URL.

type
optional
enum

`all` (default upstream order) or `shorts`. Any other value returns 400 `invalid_type`, not charged.

One of: all, shorts

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

The `continuationToken` from 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/hashtag-videos-shorts?hashtag=space" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Example response

200 application/json
{
  "success": true,
  "service": {
    "platform": "YouTube",
    "name": "Hashtag Videos & Shorts",
    "slug": "hashtag-videos-shorts"
  },
  "credits_charged": 1,
  "credits_remaining": 99,
  "latency_ms": 214,
  "data": {
    "query": "nasa",
    "results": [
      {
        "id": "9000085629",
        "type": "profile",
        "title": "nasa result 1",
        "url": "https://example.com/youtube/result/85629",
        "engagement_score": 62.9,
        "matched_at": "2026-12-01T12:41:15.263Z"
      },
      {
        "id": "9000108010",
        "type": "post",
        "title": "nasa result 2",
        "url": "https://example.com/youtube/result/108010",
        "engagement_score": 1,
        "matched_at": "2026-11-30T12:41:15.263Z"
      }
    ],
    "paging": {
      "has_more": true,
      "next_cursor": "cursor_s_2"
    }
  }
}

Getting more results

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

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

# Call 2 — next 30 videos and shorts
curl "https://fastfetchz.com/v1/youtube/hashtag-videos-shorts?hashtag=space&cursor=eyJwYWdlIjoyfQ" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Limits

  • Maximum per call: 30 videos and shorts.
  • Minimum per call: 1 videos and short — a target with less data returns fewer videos and shorts. A call that returns none is not charged.
  • Each call fetches a full page of up to 30 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

300,000 videos and shorts ≈ 10,000 calls × 1 credit per call = 10,000 credits

At the Starter pack rate: $29.00
10,000 credits for $29.00 · $0.00290 per credit. This is the credit value used by the job, not the pack purchase price.
At the Volume pack rate: $15.00
500,000 credits for $750.00 · $0.00150 per credit. This is the credit value used by the job, not the pack purchase price.
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.