The Blotato API is a social media API that allows you to publish and schedule posts directly to platforms. You can post any content, such as text, images, and videos.
It is limited to paying subscribers in order to reduce spam and service abuse, keeping Blotato's integration in good standing with the social platforms.
Get Your API Key
Go to Settings and click "Generate API Key".
IMPORTANT: this will end your free trial immediately and start your paid subscription.
Authentication
To authenticate API requests, include your Blotato API key in the request headers.
Authentication Header
blotato-api-key: YOUR_API_KEY
Requests without a valid API key will be rejected and 401 error will be returned.
Connect Social Accounts
Go to Settings and connect your social accounts.
You will need the Account ID and Page ID of your social accounts in order to post to them via API.
POST https://backend.blotato.com/v2/posts HTTP/1.1
Content-Type: application/json
{
"post": {
"accountId": "acc_13579",
"content": {
"text": "This is the first tweet in the thread.",
"mediaUrls": [],
"platform": "twitter",
"additionalPosts": [
{
"text": "Here's the second tweet, adding more info.",
"mediaUrls": []
},
{
"text": "And here's the third tweet to conclude!",
"mediaUrls": []
}
]
},
"target": {
"targetType": "twitter"
}
}
}
Attach Media to Post (images and videos)
If your post has images or videos, you need to first upload the media to Blotato's servers. Most social platforms will reject your request to post random image/video URLs.
Upload media:
POST https://backend.blotato.com/v2/media HTTP/1.1
Content-Type: application/json
{
"url": "https://example.com/image.jpg"
}