Instagram Post Stats API

Likes, comments and views for a public Instagram post or reel.

EndpointGET /v1/instagram/stats
Cost2 credits live
Cache hit0 credits
ReturnsOne object

Call it

curl -G 'https://api.sourcevine.io/v1/instagram/stats' \
  -H 'Authorization: Bearer sv_live_...' \
  --data-urlencode 'url=https://www.instagram.com/p/C3xk9QLpQ2v/'
const res = await fetch(
  'https://api.sourcevine.io/v1/instagram/stats?' + new URLSearchParams({
    url: 'https://www.instagram.com/p/C3xk9QLpQ2v/',
  }),
  { headers: { Authorization: 'Bearer sv_live_...' } },
);
const { success, data } = await res.json();
import requests

r = requests.get(
    "https://api.sourcevine.io/v1/instagram/stats",
    params={"url": "https://www.instagram.com/p/C3xk9QLpQ2v/"},
    headers={"Authorization": "Bearer sv_live_..."},
)
data = r.json()["data"]

Parameters

NameRequiredNotes
urlYesA public Instagram URL.
access_keyYesYour key. Send it as Authorization: Bearer orx-access-key where you can — a key in a query string ends up in proxy logs and browser history.
cacheNoDefaults to true. Set false to force a live read, which always costs credits.

Billing

A live read costs 2 credits and a cache hit costs nothing. Every response says which it was, in thecached field and in the X-Credits-Chargedheader. A resource that turns out to be private, deleted, or that we could not reach is never charged.

Other APIs

All APIs →