Skip to Content

API Reference

API Overview

Base URL, authentication, and the endpoints of the SocialAPI REST API.

Every endpoint with its parameters, its answer and a real request, in TypeScript, Python and cURL.

Base URL

https://api.socialapi.sh

Every endpoint is a GET under /v1, with the platform first: /v1/tiktok/profile.

Authentication

Send your API key as a bearer token. See Authentication.

curl https://api.socialapi.sh/v1/credits \
  -H "Authorization: Bearer $SOCIALAPI_API_KEY"

Responses

AnswerShape
One item{ "data": … }
A list{ "data": [...], "pagination": … }
An error{ "error", "code", "param" }

Each answer carries its cost and request id in headers. See Responses.

Errors and Rate Limits

  • A call that fails costs nothing. See Errors.
  • A workspace sends up to 600 requests a minute. See Rate Limits.

Endpoints

Platforms

Workspace

OpenAPI

The whole API as one OpenAPI document, for code generators and API clients: /openapi.json.