socialtoai-com Account API
The Account API from socialtoai-com — 1 operation(s) for account.
The Account API from socialtoai-com — 1 operation(s) for account.
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/socialtoai-com:socialtoai-com-account-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: SocialToAI Account API
version: v1
description: SocialToAI is an API and MCP server that lets AI tools read publicly visible social media content (posts, comments, profiles and trends) from 18 platforms, including TikTok, Instagram, X (Twitter), Reddit, YouTube, Xiaohongshu (RedNote), Douyin, Weibo. It is billed in prepaid credits, and failed calls are free.
servers:
- url: https://api.socialtoai.com/v1
security:
- bearer: []
- apiKey: []
tags:
- name: Account
paths:
/account:
get:
operationId: account
summary: 'Whose key this is and where it stands: the plan, the balance, today''s spend and…'
parameters:
- $ref: '#/components/parameters/AcceptLanguage'
responses:
'200':
description: The account as this key sees it.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountResponse'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
request_id: req_00000000-0000-4000-8000-000000000002
schema_version: v1
error:
code: unauthorized
message: Key 缺失、粘贴不完整或不存在,本次没有扣费。 / The API key is missing, mistyped or does not exist. Nothing was charged.
retryable: false
reason: missing
fix:
action_url: https://socialtoai.com/console/keys/
note: 'Send a current key as Authorization: Bearer <key> or X-API-Key: <key>; keep it in the environment variable SOCIALTOAI_API_KEY. Create one at https://socialtoai.com/console/keys/ (signing up gives free credits); GET /v1/capabilities and POST /v1/find need none.'
'429':
description: rate_limited
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Account
components:
schemas:
Error:
type: object
properties:
code:
type: string
minLength: 1
message:
type: string
minLength: 1
retryable:
type: boolean
reason:
type: string
quote_credits:
type: integer
minimum: 0
maximum: 9007199254740991
resets_at:
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))$
retry_at:
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))$
fix:
type: object
properties:
param:
type: string
allowed:
type: array
items: {}
example_call:
type: object
propertyNames:
type: string
additionalProperties: {}
action_url:
type: string
note:
type: string
additionalProperties: false
required:
- code
- message
- retryable
- fix
additionalProperties: false
Billing:
type: object
properties:
cost_credits:
type: integer
minimum: 0
maximum: 9007199254740991
balance_credits:
type: integer
minimum: 0
maximum: 9007199254740991
today_spend_credits:
type: integer
minimum: 0
maximum: 9007199254740991
daily_limit_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
daily_remaining_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
display:
type: string
minLength: 1
required:
- cost_credits
- balance_credits
- today_spend_credits
- daily_limit_credits
- daily_remaining_credits
- display
additionalProperties: false
AccountResponse:
type: object
properties:
request_id:
type: string
minLength: 1
schema_version:
type: string
const: v1
plan:
type: string
enum:
- free
- paid
balance_credits:
type: integer
minimum: 0
maximum: 9007199254740991
key:
type: object
properties:
today_spend_credits:
type: integer
minimum: 0
maximum: 9007199254740991
daily_limit_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
daily_remaining_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
permissions:
type: array
items:
type: string
expires_at:
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'
required:
- today_spend_credits
- daily_limit_credits
- daily_remaining_credits
- permissions
- expires_at
additionalProperties: false
account:
type: object
properties:
today_spend_credits:
type: integer
minimum: 0
maximum: 9007199254740991
daily_limit_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
daily_remaining_credits:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
required:
- today_spend_credits
- daily_limit_credits
- daily_remaining_credits
additionalProperties: false
billing:
$ref: '#/components/schemas/Billing'
purchase:
type: object
properties:
display:
type: string
minLength: 1
url:
type: string
minLength: 1
required:
- display
- url
additionalProperties: false
for_scripts:
type: object
properties:
display:
type: string
minLength: 1
keys_url:
type: string
minLength: 1
env_var:
type: string
minLength: 1
header:
type: string
minLength: 1
api_base:
type: string
minLength: 1
openapi:
type: string
minLength: 1
docs:
type: string
minLength: 1
required:
- display
- keys_url
- env_var
- header
- api_base
- openapi
- docs
additionalProperties: false
required:
- request_id
- schema_version
- plan
- balance_credits
- key
- account
- billing
additionalProperties: false
ErrorResponse:
type: object
properties:
request_id:
type: string
minLength: 1
schema_version:
type: string
const: v1
error:
$ref: '#/components/schemas/Error'
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- schema_version
- error
additionalProperties: false
parameters:
AcceptLanguage:
name: Accept-Language
in: header
required: false
schema:
type: string
example: zh-CN
description: billing.display is written in Chinese when this puts Chinese first, in English otherwise.
securitySchemes:
bearer:
type: http
scheme: bearer
apiKey:
type: apiKey
in: header
name: X-API-Key