Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Socialync Analytics API
version: 1.0.0
summary: Publish, schedule and read social posts from your own code.
description: 'The same publishing engine as the Socialync MCP server, over plain JSON. Your API key is the one from https://www.socialync.io/api-keys. Rate limit: 60 requests per minute per key (429 with Retry-After). List endpoints return 20 items by default and at most 100. Browsers cannot call this API (no CORS headers). Keep keys on servers and in CI secrets.'
servers:
- url: https://mcp.socialync.io/v1
security:
- bearerAuth: []
tags:
- name: Analytics
paths:
/analytics:
get:
operationId: getAnalytics
summary: Analytics for a profile
description: Views, likes, comments, shares and saves gained in the window, with changes against the previous window of the same length. The same numbers as the analytics page.
parameters:
- name: period
in: query
required: false
schema:
type: string
enum:
- week
- month
default: week
- name: days
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 365
- name: platform
in: query
required: false
schema:
type: string
minLength: 1
maxLength: 30
default: all
- name: breakdown
in: query
required: false
schema:
type: string
enum:
- total
- by_platform
default: total
- name: includeTimeseries
in: query
required: false
schema:
type: string
enum:
- 'true'
- 'false'
- name: profileId
in: query
required: false
schema:
type: string
pattern: ^[A-Za-z0-9_-]{1,128}$
responses:
'200':
description: The report.
content:
application/json:
schema:
$ref: '#/components/schemas/Analytics'
'400':
description: The request is not valid. error.code is invalid_request, invalid_json or payload_too_large.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The plan or the API key does not allow this.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such resource on a profile this key can use.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Analytics
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- docs
properties:
code:
type: string
description: Stable. Switch on this. The message can change.
message:
type: string
description: For people. May change.
docs:
type: string
format: uri
details:
description: 'Extra structure for some errors: validation issues, per platform results, skipped entries.'
Analytics:
type: object
additionalProperties: true
description: The same numbers as the analytics page. Gains in the window, with changes against the previous window.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer sk_live_... An API key from the API keys page. OAuth tokens are not accepted here.'