{
  "openapi": "3.1.0",
  "info": {
    "title": "Social Media Scraper API",
    "version": "2026-11-23.2",
    "description": "197 customer operations; four upstream account operations are internal only. Send authenticated requests with the documented inputs and published price version."
  },
  "servers": [
    {
      "url": "https://socialmediascraper.org"
    }
  ],
  "paths": {
    "/v1/tiktok/user_followers": {
      "get": {
        "operationId": "tiktok_user_followers",
        "summary": "TikTok User Followers API",
        "tags": [
          "tiktok"
        ],
        "description": "List public follower records for a TikTok account and inspect the returned user identities.",
        "parameters": [
          {
            "name": "handle",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "TikTok username of the account whose followers you want to list, for example stoolpresidente. Use this or user_id to identify the target account.",
            "example": "stoolpresidente"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Numeric TikTok account identifier, sent as text to preserve all digits. It selects the account being researched, rather than a follower returned in the result.",
            "example": "6659752019493208069"
          },
          {
            "name": "trim",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Requests the trimmed upstream representation. The customer response still uses the SocialScraper request_id, data and meta envelope."
          },
          {
            "name": "min_time",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Continuation value for the next follower page. Begin without this field; when data.cursor is returned, pass that value here and keep the same account identifier.",
            "example": 1605663376
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          },
          {
            "name": "x-price-version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Pin the expected request-price version before billing."
          }
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response containing request identity, normalized operation data and metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "request_id",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "request_id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "meta": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                },
                "example": {
                  "request_id": "example-request-id",
                  "data": {
                    "platform": "tiktok",
                    "resource": "user_followers",
                    "items": [
                      {
                        "id": "123456789",
                        "position": 0,
                        "url": null,
                        "title": null,
                        "text": "Public creator biography",
                        "published_at": null,
                        "author": {
                          "id": "123456789",
                          "handle": "example_creator",
                          "display_name": "Example creator"
                        },
                        "metrics": {
                          "views": null,
                          "likes": null,
                          "comments": null,
                          "shares": null
                        }
                      }
                    ],
                    "cursor": null
                  },
                  "meta": {
                    "platform": "tiktok",
                    "fetched_at": "2026-11-28T00:00:00.000Z",
                    "cached": false,
                    "schema_version": "2026-11-23.2",
                    "route_version": 1,
                    "billing": {
                      "capability": "tiktok.user_followers",
                      "version": "2026-11-23.retail-1",
                      "currency": "USD",
                      "unit_scale": 1000000000,
                      "amount_units": 2444000,
                      "amount_usd": "0.002444000",
                      "billing_basis": "request"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Invalid API key"
          },
          "402": {
            "description": "Insufficient credits"
          },
          "429": {
            "description": "Customer request rate or concurrency limit. Follow Retry-After and retain the original request identity."
          },
          "503": {
            "description": "Service temporarily unavailable"
          }
        },
        "x-live-status": "verified",
        "x-response-kind": "collection",
        "x-price": {
          "capability": "tiktok.user_followers",
          "version": "2026-11-23.retail-1",
          "currency": "USD",
          "unit_scale": 1000000000,
          "amount_units": 2444000,
          "amount_usd": "0.002444000",
          "billing_basis": "request"
        },
        "x-pagination-fields": [
          "min_time"
        ],
        "x-required-any-of": [
          [
            "handle",
            "user_id"
          ]
        ],
        "x-input-rules": [
          "Provide at least one of: handle, user_id."
        ],
        "x-documentation-url": "https://socialmediascraper.org/apis/tiktok/user_followers/",
        "x-markdown-url": "https://socialmediascraper.org/api-reference/tiktok.user_followers.md"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  }
}
