SocialRobot Tik Tok API
The TikTok API from SocialRobot — 2 operation(s) for tiktok.
The TikTok API from SocialRobot — 2 operation(s) for tiktok.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/socialrobot-io:socialrobot-io-tiktok-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SocialRobot.io Scheduler Tik Tok API
description: 'Access our API to efficiently schedule and manage your social media posts across multiple platforms.
## API versioning
- **Current version:** `v1` (URL path prefix `/api/v1/`).
- **Canonical base URL:** `https://socialrobot.io/api/v1`
- **Legacy alias:** `/api/` (same routes, no version prefix) remains supported for existing integrations.
- **Deprecation:** Breaking changes ship only in a new major path (for example `/api/v2`). When a route is deprecated, responses may include `Deprecation: true` and `Sunset` (HTTP-date) headers before removal.
HTTP API consumers should authenticate with an API key in the `x-api-key` header.
MCP consumers should connect to /api/mcp and use OAuth discovery from /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server, and /.well-known/openid-configuration. The issuer remains /api/auth. Dynamic client registration is available at /api/auth/oauth2/register when enabled.
Additional machine-readable docs are available at /api/llm.txt.
For detailed documentation and to utilize the assistant, click the link below:
Go to Assistant'
version: 1.0.0
servers:
- url: https://socialrobot.io/api/v1
tags:
- name: tiktok
paths:
/tiktok/creator-info/{accountId}:
get:
operationId: tiktok-getCreatorInfo
summary: Get TikTok creator info for posting UI
description: Returns creator nickname, avatar, allowed privacy levels, interaction settings, max video duration, and posting limits. Call before building a TikTok post payload.
tags:
- tiktok
security:
- apiKey: []
parameters:
- in: header
name: x-api-key
schema:
type: string
description: The API key to use for the request
required: true
description: The API key to use for the request
- in: path
name: accountId
schema:
type: string
required: true
responses:
'200':
description: Creator info fetched successfully
content:
application/json:
schema:
type: object
properties:
open_id:
type: string
username:
type: string
display_name:
type: string
avatar_url:
type: string
privacy_level_options:
type: array
items:
type: string
enum:
- PUBLIC
- FRIENDS
- FOLLOWERS
- PRIVATE
max_video_post_duration_sec:
type: number
interaction_settings:
type: object
properties:
comment_disabled:
type: boolean
duet_disabled:
type: boolean
stitch_disabled:
type: boolean
required:
- comment_disabled
- duet_disabled
- stitch_disabled
additionalProperties: false
posting_limits:
type: object
properties:
can_post:
type: boolean
daily_quota_total:
type: number
daily_quota_used:
type: number
next_available_time:
type: string
required:
- can_post
- daily_quota_total
- daily_quota_used
additionalProperties: false
required:
- open_id
- username
- display_name
- avatar_url
- privacy_level_options
- max_video_post_duration_sec
- interaction_settings
- posting_limits
additionalProperties: false
'401':
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/error.UNAUTHORIZED'
'403':
description: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link)
content:
application/json:
schema:
$ref: '#/components/schemas/error.FORBIDDEN'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
/tiktok/posts-with-analytics/{accountId}:
get:
operationId: tiktok-getPostsWithAnalytics
summary: List public TikTok videos with engagement metrics
description: Returns recent public videos for a connected TikTok account via video.list, including view/like/comment/share counts.
tags:
- tiktok
security:
- apiKey: []
parameters:
- in: header
name: x-api-key
schema:
type: string
description: The API key to use for the request
required: true
description: The API key to use for the request
- in: path
name: accountId
schema:
type: string
required: true
- in: query
name: limit
schema:
default: 20
type: number
minimum: 1
maximum: 50
- in: query
name: startDate
schema:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
- in: query
name: endDate
schema:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
responses:
'200':
description: Videos with analytics fetched successfully
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
create_time:
type: number
cover_image_url:
type:
- string
- 'null'
share_url:
type:
- string
- 'null'
video_description:
type:
- string
- 'null'
duration:
type:
- number
- 'null'
title:
type:
- string
- 'null'
like_count:
type: number
comment_count:
type: number
share_count:
type: number
view_count:
type: number
engagements:
type: number
publishedAt:
anyOf:
- type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- type: 'null'
performanceRank:
type: integer
exclusiveMinimum: 0
maximum: 9007199254740991
viewsDelta:
type:
- number
- 'null'
viewsGrowthRate:
type:
- number
- 'null'
historicalData:
default: []
type: array
items:
type: object
properties:
index:
type: number
timestamp:
anyOf:
- type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- type: string
views:
type: number
likes:
type: number
comments:
type: number
shares:
type: number
engagements:
type: number
required:
- index
- timestamp
- views
- likes
- comments
- shares
- engagements
additionalProperties: false
dailyViews:
type: array
items:
type: object
properties:
date:
type: string
views:
type: number
required:
- date
- views
additionalProperties: false
storedCoverUrl:
type:
- string
- 'null'
required:
- id
- create_time
- like_count
- comment_count
- share_count
- view_count
- engagements
- publishedAt
- historicalData
additionalProperties: false
'401':
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/error.UNAUTHORIZED'
'403':
description: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link)
content:
application/json:
schema:
$ref: '#/components/schemas/error.FORBIDDEN'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
components:
schemas:
error.UNAUTHORIZED:
type: object
properties:
message:
type: string
description: The error message
example: Unauthorized - Invalid or missing API key
code:
type: string
description: The error code
example: UNAUTHORIZED
issues:
description: An array of issues that were responsible for the error
example: []
type: array
items:
type: object
properties:
message:
type: string
required:
- message
additionalProperties: false
required:
- message
- code
additionalProperties: false
title: Unauthorized - Invalid or missing API key error (401)
description: The error information
example:
code: UNAUTHORIZED
message: Unauthorized - Invalid or missing API key
issues: []
error.INTERNAL_SERVER_ERROR:
type: object
properties:
message:
type: string
description: The error message
example: Internal server error
code:
type: string
description: The error code
example: INTERNAL_SERVER_ERROR
issues:
description: An array of issues that were responsible for the error
example: []
type: array
items:
type: object
properties:
message:
type: string
required:
- message
additionalProperties: false
required:
- message
- code
additionalProperties: false
title: Internal server error error (500)
description: The error information
example:
code: INTERNAL_SERVER_ERROR
message: Internal server error
issues: []
error.FORBIDDEN:
type: object
properties:
message:
type: string
description: The error message
example: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link)
code:
type: string
description: The error code
example: FORBIDDEN
issues:
description: An array of issues that were responsible for the error
example: []
type: array
items:
type: object
properties:
message:
type: string
required:
- message
additionalProperties: false
required:
- message
- code
additionalProperties: false
title: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link) error (403)
description: The error information
example:
code: FORBIDDEN
message: Forbidden - plan limit, ownership, or quota exceeded (see error message for upgrade link)
issues: []
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API Key authentication