Back to APIs

Social Media API

Updated

A social media API usually means one of two things: the official API of a single platform, built around accounts you own and manage, or a service that reads public data across many platforms at once. Metrika is the second kind. It is one REST endpoint that returns public profile and post datapoints for nine networks as JSON.

One endpoint, nine platforms

Every request goes to the same place. You send a platform, a resource type, and an identifier, and you can bundle up to ten resources in one call, mixing platforms freely:

bash
$ curl -X POST https://metrika.run/api/v1/resources/search \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "resources": [
      {"platform": "instagram", "type": "account", "identifier": "natgeo"},
      {"platform": "youtube", "type": "account", "identifier": "mkbhd"}
    ]
  }'

The same call works for Instagram, X, TikTok, YouTube, LinkedIn, Facebook, Threads, Bluesky, and GitHub. One bearer token, no OAuth flows, no per-platform registration, and one response shape to parse whatever the network.

What data comes back

Metrika deals in the numbers public profiles display: follower counts, following counts, post counts, verified status, employee counts for LinkedIn company pages, and repository counts for GitHub accounts. On Bluesky, Threads, X, and YouTube you can also track individual posts, with view, like, and repost counts where the platform reports them. Each datapoint arrives with a value, its own status, a collected_at timestamp so you always know how fresh a number is, and a semantic field naming it in the platform's own vocabulary. Coverage varies by platform; the docs hold the availability matrix.

How collection works

Metrika answers from a snapshot rather than scraping on demand. The first time you ask for a handle it comes back pending with no datapoints while collection starts in the background; from then on the account is refreshed daily and requests read the latest collected values. Your request never waits on a platform responding at that exact moment.

What Metrika is not

Metrika does not post, read content, or touch accounts you would need to log into. There are no comments, captions, or media, and no analytics for accounts you own. If you need the full surface of one specific platform, its official API is the right tool, and we keep a comparison for each one. Metrika is for the case where you need public numbers from several networks without maintaining several integrations.

Getting started

Create an account, generate an API key from your dashboard, and you get up to 500 requests per month at no cost, no credit card required. The docs cover authentication, response formats, and the datapoints available for each platform.

Get started with Metrika

Create a free account and start pulling social media datapoints in minutes. The free tier includes 500 requests per month, no credit card required.