Instagram

Instagram

Post Count

per_call

Returns `handle`, `media_count` and `is_estimated` for a public Instagram account. Very large accounts, above about 10,000 posts, may only be available as an estimate. Estimated counts are rounded to the nearest thousand (for example 32,000), so do not compare one against an exact figure and expect it to match. `is_estimated` tells you which kind you received. By default an estimate is refused: the call returns 422 `estimate_only` and nothing is charged. Pass `allow_estimated=true` to receive the estimate instead. An account with 0 posts returns 404 and is not charged.

What you get

Each call returns one count record. There is no pagination.

Endpoint

GET /v1/instagram/post-count

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 Instagram username — bare (`nasa`), with `@`, or the profile URL.

allow_estimated
optional
enum

`true` to accept an estimated count when no exact one is available. Estimates are rounded to the nearest thousand and come back with `is_estimated: true`. Defaults to `false`: an account with only an estimate then returns 422 `estimate_only`, not charged.

One of: true, false

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/instagram/post-count?handle=nasa" \
  -H "X-API-Key: $FASTFETCHZ_KEY"

Example response

200 application/json
{
  "success": true,
  "service": {
    "platform": "Instagram",
    "name": "Post Count",
    "slug": "post-count"
  },
  "credits_charged": 1,
  "credits_remaining": 99,
  "latency_ms": 214,
  "data": {
    "items": [
      {
        "id": "7000350508",
        "shortcode": "S7IGC",
        "url": "https://example.com/instagram/nasa/350508",
        "caption": "Sandbox post count item #1 for @nasa.",
        "media_type": "image",
        "like_count": 30708,
        "comment_count": 413,
        "view_count": 351508,
        "duration_sec": 60,
        "taken_at": "2026-11-30T12:36:56.263Z"
      },
      {
        "id": "7000349915",
        "shortcode": "S7HZV",
        "url": "https://example.com/instagram/nasa/349915",
        "caption": "Sandbox post count item #2 for @nasa.",
        "media_type": "image",
        "like_count": 30115,
        "comment_count": 720,
        "view_count": 350915,
        "duration_sec": 97,
        "taken_at": "2026-11-29T12:36:56.263Z"
      }
    ],
    "paging": {
      "has_more": true,
      "next_cursor": "cursor_40643"
    }
  }
}

Limits

  • Maximum per call: 1 counts.
  • Minimum per call: 1 count — a target with less data returns fewer counts. A call that returns none is not charged.
  • Each call fetches a full page of up to 1 and costs the same either way. Pass limit to receive fewer than that in the response.
  • This endpoint returns a single record per call and is not paginated.

What this costs in practice

10,000 counts ≈ 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.