YouTube

YouTube

Community Posts

per_call

Returns a channel's community posts under `posts`, about 10 per page, and the next-page token under `continuationToken` (`null` when there is none). Posts are passed through as the upstream sends them: the fields described for them (id, URL, channel, text in `content`, images, like count, published time, and a `video` object when a post shares a video) are not renamed or checked by FastFetchz, so any of them can be missing. For the next page, send `continuationToken` back as `cursor` with the same `handle`. A channel that does not exist, or has no community posts, returns 404 and is not charged.

What you get

Each call returns up to 10 posts under data.posts, plus data.continuationToken, the token for the next page.

Endpoint

GET /v1/youtube/community-posts

Price

from $1.50

per 1,000 calls · from $0.0015 per call

Cost per call

1 credit

Failed calls never charged

Parameters

handle
required
string

The YouTube channel handle — bare (`NASA`), with `@`, or the full `youtube.com/@NASA` URL.

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/community-posts?handle=NASA" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Example response

Response shape, not a captured response. No real response has been saved for this endpoint, so this shows the structure the current code produces. Values in angle brackets vary from call to call.

FastFetchz builds data with exactly two keys: posts, the list of posts, and continuationToken, the next-page token or null. Each post is passed through as the upstream sends it, without renaming its fields, so the fields inside a post are not fixed by FastFetchz.

200 application/json · response shape from the current code
{
  "success": true,
  "service": {
    "platform": "YouTube",
    "name": "Community Posts",
    "endpoint": "/v1/youtube/community-posts"
  },
  "mode": "live",
  "credits_charged": <credits for this call>,
  "credits_remaining": <your balance after this call>,
  "latency_ms": <milliseconds>,
  "cached": <true or false, present only when known>,
  "data": {
    "posts": [
      { <one post, fields as the upstream sends them> }
    ],
    "continuationToken": <next-page token, or null>
  }
}

Getting more results

Over REST the next-page token is data.continuationToken. The response has no top-level cursor field. Send the token back, URL-encoded, as the cursor query parameter with the same handle. Stop when data.continuationToken is null or empty. If a follow-up page has no posts, the call returns 404 not_found and is not charged.

Over MCP, the fetch tool reports the same token as cursor next to the data. Pass it back as the tool's cursor argument.

limit trims posts after the page is fetched, but the token still points past the whole page, so posts cut by limit are not returned on the next page. To read every post, omit limit on REST. The MCP fetch tool returns at most 10 posts per page.

two calls
# Call 1: first page (up to 10 posts). --fail stops on any HTTP error.
PAGE1=
TOKEN=
if PAGE1=$(curl -fsS "https://fastfetchz.com/v1/youtube/community-posts?handle=NASA" \
  -H "X-API-Key: $FASTFETCHZ_KEY"); then
  TOKEN=$(printf '%s' "$PAGE1" | jq -r '.data.continuationToken // empty')
else
  echo "First call failed: not requesting a next page." >&2
fi

# Call 2 only when call 1 succeeded and returned a token: same handle, token sent as cursor
if [ -n "$TOKEN" ]; then
  curl -fsS --get "https://fastfetchz.com/v1/youtube/community-posts" \
    --data-urlencode "handle=NASA" \
    --data-urlencode "cursor=$TOKEN" \
    -H "X-API-Key: $FASTFETCHZ_KEY"
else
  echo "No next page requested." >&2
fi

Limits

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

100,000 posts ≈ 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

Guides using this endpoint

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.