Handles API

Handles API documentation

One REST API for public social data on X, Instagram, TikTok, YouTube, Telegram, Bluesky, Twitch, Kick and LinkedIn companies. 113 endpoints, JSON in and out, one key.

First request in two minutes

  1. Get an API key

    Create an account. The Free trial gives you 100 credits, once, to try every endpoint, with no card. Copy your key from the dashboard; it starts with hk_live_.

    shell
    export HANDLES_API_KEY="hk_live_..."
  2. Make a request

    Look up @nasa on X from the catalog. Send the key in the Authorization header.

    curl
    curl "https://api.handlesapi.com/v1/directory/x/nasa" \
      -H "Authorization: Bearer $HANDLES_API_KEY"
  3. Read the response

    This is the real response, captured from the API. Success is always { data, meta }; keep meta.request_id if you ever need support to look at a call. It cost 1 credit.

    200 OK
    {
      "data": {
        "platform": "x",
        "object": "account",
        "record": {
          "user_id": "11348282",
          "username": "NASA",
          "name": "NASA",
          "description": "Making the seemingly impossible, possible. ✨",
          "followers_count": 92086821,
          "following_count": 115,
          "statuses_count": 74588,
          "media_count": 28267,
          "favourites_count": 17125,
          "url": "https://x.com/NASA",
          "is_verified": false,
          "is_blue_verified": true,
          "verified_type": "Government",
          "is_automated": false,
          "location": "Pale Blue Dot",
          "photo_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
          "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
          "account_created_at": "2007-12-19 20:20:32+00",
          "language": "en",
          "country": null,
          "category": "science",
          "citation_score": 21386,
          "tier": "S",
          "status": "active",
          "is_nsfw": false,
          "last_seen": "2026-11-26 13:29:22.316073+00",
          "weekly_growth": -124137,
          "notable_followers": null
        }
      },
      "meta": {
        "source": "catalog",
        "request_id": "req_f6d829b59d0d8864",
        "generated_at": "2026-11-26T13:54:37.167Z",
        "took_ms": 56
      }
    }

How it works

Every endpoint is either a catalog read or a live read. Catalog reads are served from our own index of public accounts: fast and cheap, 1 credit per call. Live reads go to the platform itself and return what it says right now: 2 credits per call, and slower. Every endpoint page says which kind it is and shows the cost.

Your key carries scopes. A scope such as directory:read or scrape:live decides which groups of endpoints the key may call, and each endpoint page names the one it needs.

Official SDKs

Typed clients for every endpoint, generated from the OpenAPI spec. Both read HANDLES_API_KEY from the environment and expose the X-Credits-* headers on every response. Keep the key on the server.

TypeScript / JavaScript
npm install handlesapi
Node.js, Deno, Bun
import { HandlesApi } from "handlesapi";

const api = new HandlesApi({ apiKey: process.env.HANDLES_API_KEY });

// Catalog check: 1 credit.
const { data, credits } = await api.accountsCheck({ platform: "youtube", handle: "mrbeast" });
console.log(data.identity?.name, data.audience?.count, credits.remaining);
Python
pip install handlesapi
Python 3.9+
import os
from handlesapi import HandlesApi

with HandlesApi(os.environ["HANDLES_API_KEY"]) as api:
    # Catalog check: 1 credit.
    res = api.accounts_check("youtube", "mrbeast")
    print(res.data["identity"]["name"], res.data["audience"]["count"], res.credits.remaining)

Source, tests and examples: handlesapi-js, handlesapi-python, examples and MCP configs on GitHub.

Where to go next