Connect, manage and publish content across 25+ social media, blogging and community platforms through a single integration.
Instead of building and maintaining separate integrations for every platform, Blog2Social provides one centralized API for publishing text, links, images and videos at scale.
Whether you are building a SaaS platform, CMS, marketing automation solution, agency dashboard, e-commerce platform or enterprise application, Blog2Social helps you automate social media publishing while reducing development effort and maintenance costs.
Schedule, publish and manage content across social media, blogging, business and community platforms through a single API.
Connect accounts, publish content, upload media, retrieve insights and automate social media distribution from one centralized interface.
| Platform | Post Types | Media |
|---|---|---|
| Posts, Reels | Links, Images, Videos | |
| X | Posts | Links, Images, Videos |
| Posts | Links, Images, Videos | |
| Posts | Images, Videos | |
| Pins, Boards | Images, Videos | |
| Posts, Subreddits | Links, Images | |
| Tumblr | Posts | Links, Images, Videos |
| Medium | Articles | Images |
| Telegram | Messages | Images, Videos |
| TikTok | Posts | Images, Videos |
| YouTube | Videos, Shorts, Playlists | Videos |
| Vimeo | Videos | Videos |
| Bluesky | Posts | Links, Images |
| Threads | Posts | Images, Videos |
| Mastodon | Posts | Links, Images, Videos |
| Discord | Messages | Images, Videos |
| Google Business Profile | Business Posts | Images, Videos |
| VK (VKontakte) | Posts | Images, Videos |
| Posts | Images | |
| Blogger | Articles | Images |
| DEV.to | Articles | Images, Videos |
| Flickr | Media Posts | Images, Videos |
| Diigo | Bookmarks | Links |
| Bloglovin | Blog Posts | Images |
| Torial | Articles | Images |
| Ravelry | Posts | Images |
| Instapaper | Saved Content | Links |
| Band | Posts | Images |
| HumHub | Posts | Images, Videos |
The Blog2Social API provides a unified interface for publishing content across social media networks, blogging platforms, business networks, video platforms and community platforms.
The API uses a two-layer authentication model:
service_token = your application
access_token = your user
Think of the service_token as your app key and the access_token as the user session.
Both tokens are required for most API requests.
Login to:
https://console.blog2social.com
Create a new application and copy your service_token.
The service_token identifies your application and is required for all API requests.
POST /user/auth
Request:
{
"service_token": "YOUR_SERVICE_TOKEN"
}
Response:
{
"access_token": "USER_ACCESS_TOKEN",
"refresh_token": "REFRESH_TOKEN"
}
Save the access_token for all future API requests.
POST /network/list
Request:
{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "USER_ACCESS_TOKEN"
}
Response:
[
{
"profile": 1,
"page": 1,
"group": 0,
"network_id": 1,
"url": "facebook.com",
"name": "Facebook"
},
{
"profile": 1,
"page": 0,
"group": 0,
"network_id": 45,
"url": "x.com",
"name": "X"
},
{
"profile": 1,
"page": 0,
"group": 0,
"network_id": 36,
"url": "https://www.tiktok",
"name": "TikTok"
}
]
Choose the desired network_id from the response.
POST /network/add
Use the network_id from Step 3 and choose the matching network_type_id.
network_type_id values:
Request:
{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "USER_ACCESS_TOKEN",
"network_id": 1,
"network_type_id": 0,
"language": "en"
}
Response:
{
"auth_link": "https://api.blog2social.com/auth/v1/?b2s_session_token=abc123"
}
Redirect the user to the returned auth_link.
POST /user/auth/list
Request:
{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "USER_ACCESS_TOKEN"
}
Response:
[
{
"client_user_network_id": 3241,
"network_id": 1,
"type": "profile",
"display_name": "My Facebook Profile",
"name": "Facebook"
}
]
Save the returned client_user_network_id.
Example:
client_user_network_id = 3241
This identifier is required for publishing posts to a connected social media account.
POST /network/post/create
Post Formats:
Request:
{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "USER_ACCESS_TOKEN",
"client_user_network_id": 3241,
"b2s_posts": [
{
"client_user_network_id": 3241,
"title": "My first API post",
"message": "Hello from the Blog2Social API",
"postFormat": 0,
"customUrl": "https://example.com"
}
]
}
Response:
[
{
"error": 0,
"publish_url": "https://facebook.com/post/123456",
"network_post_id": "123456"
}
]
If error = 0, the post was published successfully.
You are now ready to publish content through the Blog2Social API.
The Blog2Social API returns HTTP status codes for request-level errors and network-specific result objects for publishing results.
When publishing to one or multiple social media networks, always evaluate every returned result object individually. A request can be successful on API level, while one or more networks may still reject or fail the publication.
Publishing endpoints such as /network/post/create return one result object per post or network publication.
Example success:
{
"error": 0,
"type": 0,
"publish_url": "https://example.com/published-post",
"network_post_id": "123456789",
"post_id": 1
}
Example failure:
{
"error": 1,
"type": 0,
"b2s_error_code": "TOKEN",
"extra": {
"expired": 1
},
"post_id": 2
}
| Field | Type | Description |
|---|---|---|
error |
integer | 0 means success, 1 means the publication failed. |
b2s_error_code |
string | Machine-readable error code for failed publications. |
publish_url |
string | URL of the published post, if available. |
network_post_id |
string | ID returned by the social network, if available. |
post_id |
integer | Internal post reference. |
extra.expired |
integer | Returned with value 1 when the authorization has expired. |
| Code | Description | Recommended Action |
|---|---|---|
TOKEN |
Authorization expired | Reconnect the social media account. |
CONTENT |
Content rejected by the network | Adjust the post content and retry. |
RIGHT |
Missing permissions | Check account/page permissions and reconnect if needed. |
LOGIN |
Social account disconnected | Reconnect the social media account. |
LIMIT |
Daily limit reached | Retry later or reduce posting volume. |
RATE_LIMIT |
Network rate limit reached | Wait before retrying. |
NO_DATA |
Missing required data | Check required fields and request payload. |
When publishing to multiple networks, some publications may succeed while others fail.
Always loop through all response objects and handle failed publications separately.
foreach ($response as $result) {
if ((int) ($result['error'] ?? 1) === 0) {
// Published successfully
continue;
}
$error_code = $result['b2s_error_code'] ?? 'DEFAULT';
// Handle failed publication
}
Retry only when the error is temporary.
| Error Code | Retry? | Reason |
|---|---|---|
RATE_LIMIT |
Yes, later | The network rate limit may reset. |
LIMIT |
Yes, later | The daily limit may reset. |
TOKEN |
No | The account must be reconnected first. |
RIGHT |
No | Permissions must be fixed first. |
CONTENT |
No | The content must be changed first. |
NO_DATA |
No | Required data is missing. |
error for every result object.200 OK means every network published successfully.publish_url and network_post_id when available.b2s_error_code is TOKEN or extra.expired = 1.RATE_LIMIT or LIMIT.The API is accessed via HTTP requests to a specific version endpoint URL, in which POST variables contain the information you wish to access. Every endpoint is accessed via an SSL-enabled HTTPS (port 443).
Requests (methods, parameters, etc.) are related to a fixed version number, and every call must contain this version number. Different versions are available at different endpoint URLs. The latest version is version 1.0.0.
The stable HTTP endpoint for the latest version is:
https://api.blog2social.com/rest/v1.0
Previous versions can still be accessed if you use the API version number at the end of the default endpoint. However, these previous versions are no longer supported, so if you find a bug, we are going to ask that you move to the latest version.
Test the Blog2Social API directly from your browser and explore available endpoints, request parameters and responses.
Get an access_token for a new user
| service_token required | string The token for your service |
{- "service_token": "YOUR_SERVICE_TOKEN"
}{- "access_token": "YOUR_ACCESS_TOKEN",
- "refresh_token": "qwe111rtz222uio333",
- "expired_in": "YOUR_CLIENT_USER_NETWORK_ID"
}List existing and active OAuth user
| service_token required | string The token for your service |
{- "service_token": "YOUR_SERVICE_TOKEN"
}{- "users": [
- {
- "client_user_id": "1",
- "access_token": "b2s_abcdef123546",
- "refresh_token": "b2s_abcdef123546",
- "access_date_time": "2001-01-01 01:01:01",
- "refresh_date_time": "2001-01-01 01:01:01"
}
]
}Delete OAuth user from your service
| service_token required | string The token for your service |
| users required | Array of integers List of OAuth user IDs to delete. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "users": [
- 123,
- 456,
- 789
]
}{- "details": [
- {
- "client_user_id": "1",
- "deleted": "true | false",
- "error": "empty | error_message"
}
]
}List Networks
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN"
}[- {
- "name": "X",
- "url": "x.com",
- "network_id": 2,
- "profile": 1,
- "page": 0,
- "group": 0
}
]Get a link and session_token to redirect the user in order to authorize a network
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| network_id required | integer The ID of the social media network. |
| network_type_id required | integer The network type ID: 0 = Profile, 1 = Page, 2 = Group. |
| language required | string The language used for the authorization flow or form. |
| service_conditions_id required | integer The service conditions ID used when a custom application should be used instead of the default application. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "network_id": 1,
- "network_type_id": 1,
- "language": "en",
- "service_conditions_id": 123
}{- "session_token": "abc123defg456hij789klm",
- "expired_in": "YOUR_CLIENT_USER_NETWORK_ID"
}Get a link and session_token to redirect the user in order to re-authorize a network connection
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| client_user_network_id required | integer The ID of the user's connected social media account authorization. |
| network_id required | integer The ID of the social media network. |
| network_type_id required | integer The network type ID: 0 = Profile, 1 = Page, 2 = Group. |
| language required | string The language used for the authorization flow or form. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "network_id": 1,
- "network_type_id": 1,
- "language": "en"
}{- "session_token": "abc123defg456hij789klm",
- "expired_in": "YOUR_CLIENT_USER_NETWORK_ID"
}List categories/boards/subred/playlists a authorization can post to.
Only available for Pinterest, Reddit and YouTube.
Results are cached for 30 minutes.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| client_user_network_id required | integer The ID of the user's connected social media account authorization. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID"
}[- {
- "id": "string",
- "name": "string"
}
]Returns network-specific publishing properties such as supported content types, limits, instant sharing support, media capabilities, video requirements and network-specific constraints.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN"
}[- {
- "network_id": 1,
- "network_type": 1,
- "instant_sharing": 0,
- "image_format": "png,jpg,gif,webp",
- "reel_support": {
- "reel_format": "mp4,mov",
- "reel_max_length": 90,
- "reel_min_length": 4,
- "reel_min_framerate": 23,
- "reel_aspect_ratio_x": 9,
- "reel_aspect_ratio_y": 16,
- "reel_min_resolution_x": 540,
- "reel_min_resolution_y": 960
}, - "video_format": "mp4,mov",
- "emoji_support": 1,
- "html_support": null,
- "video_support": 1,
- "video_max_size": 256000,
- "character_limit": 60000,
- "video_max_length": 3600,
- "video_upload_type": 0,
- "character_limit_title": 0,
- "video_max_size_original": 10485760
}
]Get a list of all authorizations from a User
Results are cached for 30 minutes. (Cache will be cleared on any action to a authorization)
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN"
}[- {
- "client_user_id": 1,
- "client_user_network_id": 3241,
- "network_id": 2,
- "type": "profile",
- "type_kind": 0,
- "type_id": "3122312323378-8232312",
- "display_name": "string",
- "instant_sharing": 0,
- "expired_date": "2022-07-03 14:00:00",
- "last_user_update_date": "2021-07-03 14:00:00",
- "name": "X"
}
]Delete a authorization from a User
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| client_user_network_id required | integer The ID of the user's connected social media account authorization. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID"
}{- "error_code": 1002,
- "error_message": "required parameter missing {PARAMETER}"
}Get useful information on a post's performance such as likes, comments, reshares, impressions, mentions, profile views and/or video views
Results are cached for 20 hours.
Information needed to request insights from a network
| network_id | integer ID of the network |
| network_type | integer Enum: 0 1 2 type ID of the network (Profile: 0, Page: 1, Group: 2) |
| client_user_network_id | integer ID of the network authrization |
| extern_post_id | integer ID of the post given by the network |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "network_post_data": [
- {
- "network_id": 2,
- "network_type": 0,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "extern_post_id": "YOUR_CLIENT_USER_NETWORK_ID0"
}
]
}[- {
- "intern_post_id": 2,
- "extern_post_id": 13083961648621,
- "network_id": 1,
- "error": 0,
- "insights": {
- "likes": 50,
- "comments": 10,
- "reshares": 5,
- "impressions": 100,
- "mentions": 3,
- "profile_views": 7,
- "video_views": 15
}
}
]Get Insights information at different timesteps. This makes it easy to plot diagrams from your insights data.
Results are cached for 1 hour.
specific request data
Array of objects | |
object Timeframe to fetch data from. It defaults to the last 3 days |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "fields": [
- "likes",
- "comments"
], - "network_post_data": [
- {
- "network_id": 2,
- "network_type": 0,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "extern_post_id": "YOUR_CLIENT_USER_NETWORK_ID0"
}
], - "range": {
- "from": "2020-09-01 00:00:01",
- "to": "2020-09-05 00:00:01"
}
}[- {
- "intern_post_id": 2,
- "extern_post_id": 13083961648621,
- "network_id": 1,
- "error": 0,
- "insights": {
- "likes": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "comments": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "reshares": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "impressions": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "mentions": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "profile_views": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}, - "video_views": {
- "date": "2020-09-23 13:32:20",
- "value": 1
}
}
}
]Enable an existing Insights Entry
Information needed to request insights from a network
| network_id | integer ID of the network |
| network_type | integer Enum: 0 1 2 type ID of the network (Profile: 0, Page: 1, Group: 2) |
| client_user_network_id | integer ID of the network authrization |
| extern_post_id | integer ID of the post given by the network |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "network_post_data": [
- {
- "network_id": 2,
- "network_type": 0,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "extern_post_id": "YOUR_CLIENT_USER_NETWORK_ID0"
}
]
}{- "error_code": 1002,
- "error_message": "required parameter missing {PARAMETER}"
}Disable an existing Insights Entry
Information needed to request insights from a network
| network_id | integer ID of the network |
| network_type | integer Enum: 0 1 2 type ID of the network (Profile: 0, Page: 1, Group: 2) |
| client_user_network_id | integer ID of the network authrization |
| extern_post_id | integer ID of the post given by the network |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "network_post_data": [
- {
- "network_id": 2,
- "network_type": 0,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "extern_post_id": "YOUR_CLIENT_USER_NETWORK_ID0"
}
]
}{- "error_code": 1002,
- "error_message": "required parameter missing {PARAMETER}"
}Recieve a Video Token for a Video Post
A response of 200 OK only means, the progress of sending the post was successfully done by our API. Please check the result of the post, to see the result, from the network.
List of posts you want to create
| client_user_network_id | integer User network auth id to wich the post should go |
| title | string Set post title |
| message | string Set post message |
| postFormat | integer Value: 2 Set post format (Video: 2) |
| customUrl | string Set post url content |
| noCache | integer Enum: 0 1 If the link shoud get a no_cache parameter |
| tags | Array of strings Tags to post |
| board | string Pinterest board to post to |
Array of objects List of Media Objects to add to the post (For Facebook and X you can add up to 4 images, for Instagram up to 10 and for LinkedIn up to 9. Every other Network will only post the first image in the list) | |
| is_retweet | integer Enum: 0 1 Indicator, if the post should be a retweet |
| network_post_id | string The id of the post you want to retweet |
| post_id | integer Identifier that will be returned with the Post Result Object, so you can pair it up with your request. |
| make_threads | integer Default: 0 Enum: 0 1 The post message gets cut and added as comments to the post if a message exceeds the character limit (X only) |
| ignore_link | integer Default: 0 Enum: 0 1 If enabled, the link URL won't be added to the end of the post message |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "items": [
- {
- "client_user_network_id": 123,
- "title": "Post title",
- "message": "Hello from Blog2Social API!",
- "postFormat": 2,
- "noCache": 0,
- "tags": [
- "string"
], - "board": "string",
- "mediaObjects": [
- {
- "type": { },
- "url": { }
}
], - "is_retweet": 0,
- "network_post_id": "string",
- "post_id": 123,
- "make_threads": 0,
- "ignore_link": 0
}
]
}[- {
- "error": 0,
- "network_id": 32,
- "type": 0,
- "client_user_network_id": 1234567,
- "extra": [ ],
- "video_token": "abcedfghYOUR_CLIENT_USER_NETWORK_IDijklmnopq789012",
- "video_upload_type": 0
}
]Upload the video file to our Video Server
After recieving a video_token, you will be able to upload your video in chunks to our video server. Make sure that the bytesize of the single chunks can be divided by 8 and that all chunks must have the same size (Except for the last chunk).
| video_token | string The token you recieved for a video upload |
| max_count_chunks | integer The count of chunks you split your video in |
| current_chunk | integer The current chunk you want to upload |
| chunk | string <binary> The binary video chunk file. |
{ "video_token": "YOUR_VIDEO_TOKEN", "max_count_chunks": 1, "current_chunk": 1, "chunk": "@/path/to/file" }
{- "error": 0,
- "networks": [
- {
- "error": 1,
- "b2s_error_code": "VIDEO_NETWORK_LENGTH | VIDEO_NETWORK_SIZE | VIDEO_NETWORK_FORMAT",
- "network_id": 36,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "instant_sharing": 0,
- "post_id": 11
}
]
}Get the current states of your posts related to a video_token
| video_token required | string The video token received before uploading video chunks. |
{- "video_token": "YOUR_VIDEO_TOKEN"
}[- {
- "network_id": 12,
- "network_type": 1,
- "state": 0,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "publish_url": "https:\\/\\/www.instagram.com\\/p\\/Cjr5AnINUD5\\/",
- "post_id": 5
}, - {
- "network_id": 32,
- "network_type": 0,
- "state": 1,
- "client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "b2s_error_code": "VIDEO_NETWORK_FORMAT",
- "post_id": 6
}
]Add a User App for a specific network. That User App can be used for authorizations whithin these Networks.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| network_id required | integer The ID of the social media network. |
| app_key required | string |
| app_secret required | string The application secret. |
| app_name required | string |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "network_id": 1,
- "app_key": "YOUR_APP_KEY",
- "app_secret": "YOUR_APP_SECRET",
- "app_name": "Example App"
}{- "error": false,
- "user_app_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "service_conditions_id": 456789
}List all User Apps for a given access_token.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN"
}{- "error": false,
- "user_apps": [
- {
- "name": "Example App",
- "network_details_id": "YOUR_CLIENT_USER_NETWORK_ID",
- "network_id": 32,
- "app_key": "****abcd",
- "app_secret": "****abcd"
}
]
}Modify the details of a User Apps.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| user_app_id required | integer |
| app_name required | string |
| app_key required | string |
| app_secret required | string The application secret. |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "user_app_id": 1,
- "app_name": "Example App",
- "app_key": "YOUR_APP_KEY",
- "app_secret": "YOUR_APP_SECRET"
}{- "error": false
}Permamently delete a User Apps.
| service_token required | string The token for your service |
| access_token required | string The access token for the authenticated user. |
| user_app_id required | integer |
{- "service_token": "YOUR_SERVICE_TOKEN",
- "access_token": "YOUR_ACCESS_TOKEN",
- "user_app_id": 1
}{- "error": false,
- "inactive_auth_ids": [
- 123,
- 456,
- 789
]
}Blog2Social provides official PHP and Node.js SDKs, comprehensive cURL examples, and REST API access for any programming language. Pick the approach that best fits your workflow.
Use cURL for quick one-off requests, shell scripts, or automation workflows.
# Authenticate a user
curl -X POST https://api.blog2social.com/rest/v1.0/user/auth \
-H "Content-Type: application/json" \
-d '{
"service_token": "YOUR_SERVICE_TOKEN"
}'
# List available social media networks
curl -X POST https://api.blog2social.com/rest/v1.0/network/list \
-H "Content-Type: application/json" \
-d '{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "YOUR_ACCESS_TOKEN"
}'
# Connect a social media account
curl -X POST https://api.blog2social.com/rest/v1.0/network/add \
-H "Content-Type: application/json" \
-d '{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "YOUR_ACCESS_TOKEN",
"network_id": 1,
"network_type_id": 0,
"language": "en"
}'
# Publish a post
curl -X POST https://api.blog2social.com/rest/v1.0/network/post/create \
-H "Content-Type: application/json" \
-d '{
"service_token": "YOUR_SERVICE_TOKEN",
"access_token": "YOUR_ACCESS_TOKEN",
"client_user_network_id": "YOUR_CLIENT_USER_NETWORK_ID",
"b2s_posts": [
{
"message": "Hello from cURL!",
"postFormat": 0
}
]
}'
The official Blog2Social Node.js SDK provides a simple TypeScript-based interface for the Blog2Social API v1.0.
Use the SDK to authenticate users, connect social media accounts and publish content with just a few lines of JavaScript or TypeScript.
Install the SDK with npm:
npm install @adenion/blog2social-api-node-js-sdk
https://github.com/Adenion/blog2social-api-node-js-sdk
import { Blog2SocialClient } from '@adenion/blog2social-api-node-sdk';
const serviceToken = 'YOUR_SERVICE_TOKEN';
const client = new Blog2SocialClient({
serviceToken
});
Before calling most API endpoints, a user must be authenticated.
const response = await client.authentication.authenticateUser();
const accessToken = response.access_token;
Store the returned access_token and refresh_token securely.
Initialize the client using both tokens:
const client = new Blog2SocialClient({
serviceToken,
accessToken
});
List all users associated with the current service.
const users = await client.user.listUsers();
console.log(users);
This endpoint only requires the serviceToken.
const networks = await client.network.listNetwork();
console.log(networks);
Retrieve network-specific publishing limits, media capabilities and video requirements.
const properties = await client.network.listProperties();
console.log(properties);
The returned properties can include:
A video upload token is only generated when video_upload_type is 1.
Example: Connect a Facebook Page.
const response = await client.connection.addNetwork(
1,
1,
'en'
);
console.log(response.auth_link);
Redirect the user to the returned auth_link.
Network type values:
0 = Profile
1 = Page
2 = Group
const connections = await client.user.listUserAuthentications();
console.log(connections);
The returned client_user_network_id is required when publishing posts.
const clientUserNetworkId = YOUR_CLIENT_USER_NETWORK_ID;
const response = await client.share.createPost(
clientUserNetworkId,
[
{
client_user_network_id: clientUserNetworkId,
title: 'My first API post',
message: 'Hello from the Blog2Social Node.js SDK.',
postFormat: 0,
customUrl: 'https://example.com'
}
]
);
console.log(response);
Post format values:
0 = Link
1 = Image
2 = Video
const response = await client.share.createPost(
clientUserNetworkId,
[
{
client_user_network_id: clientUserNetworkId,
title: 'Image Post',
message: 'This is an image post.',
postFormat: 1,
mediaObjects: [
{
type: 'IMAGE',
url: 'https://example.com/image.jpg'
}
]
}
]
);
console.log(response);
Publish a video directly from a publicly accessible URL:
const response = await client.share.createPost(
clientUserNetworkId,
[
{
client_user_network_id: clientUserNetworkId,
title: 'Video Post',
message: 'This is a video post.',
postFormat: 2,
mediaObjects: [
{
type: 'VIDEO',
url: 'https://example.com/video.mp4'
}
]
}
]
);
console.log(response);
Before choosing the video workflow, retrieve the network properties and check video_upload_type.
A video upload token is only generated when video_upload_type is 1.
client.authentication;
client.network;
client.connection;
client.categories;
client.user;
client.share;
client.video;
client.videoUpload;
client.videoStatus;
client.app;
client.userApps;
The official Blog2Social PHP SDK provides a simple object-oriented interface for the Blog2Social API v1.0.
Use the SDK to authenticate users, connect social media accounts and publish content with just a few lines of PHP.
Install the SDK with Composer:
composer require adenion/blog2social-api-php-sdk
https://github.com/adenion/blog2social-api-php-sdk
<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
use Adenion\Blog2Social\Sdk\Client\Blog2SocialClient;
$service_token = 'YOUR_SERVICE_TOKEN';
$client = new Blog2SocialClient(
$service_token
);
Before calling most API endpoints, a user must be authenticated.
$response = $client
->authentication()
->authenticateUser();
$access_token = $response['access_token'];
Store the returned access_token and refresh_token securely.
Initialize the client using both tokens:
$client = new Blog2SocialClient(
$service_token,
$access_token
);
List all users associated with the current service.
$users = $client
->user()
->listUsers();
echo '<pre>';
print_r($users);
echo '</pre>';
This endpoint only requires the service_token.
$networks = $client
->network()
->listNetwork();
echo '<pre>';
print_r($networks);
echo '</pre>';
Retrieve network-specific publishing limits, media capabilities and video requirements.
$properties = $client
->network()
->listProperties();
echo '<pre>';
print_r($properties);
echo '</pre>';
The returned properties can include:
A video upload token is only generated when video_upload_type is 1.
Example: Connect a Facebook Page.
$response = $client
->connection()
->addNetwork(
1,
1,
'en'
);
header(
'Location: ' . urldecode(
$response['auth_link']
)
);
exit;
Network type values:
0 = Profile
1 = Page
2 = Group
$connections = $client
->user()
->listUserAuthentications();
echo '<pre>';
print_r($connections);
echo '</pre>';
The returned client_user_network_id is required when publishing posts.
$client_user_network_id = YOUR_CLIENT_USER_NETWORK_ID;
$response = $client
->share()
->createPost(
$client_user_network_id,
[
[
'client_user_network_id' => $client_user_network_id,
'title' => 'My first API post',
'message' => 'Hello from the Blog2Social PHP SDK.',
'postFormat' => 0,
'customUrl' => 'https://example.com'
]
]
);
echo '<pre>';
print_r($response);
echo '</pre>';
Post format values:
0 = Link
1 = Image
2 = Video
$response = $client
->share()
->createPost(
$client_user_network_id,
[
[
'client_user_network_id' => $client_user_network_id,
'title' => 'Image Post',
'message' => 'This is an image post.',
'postFormat' => 1,
'mediaObjects' => [
[
'type' => 'IMAGE',
'url' => 'https://example.com/image.jpg'
]
]
]
]
);
Publish a video directly from a publicly accessible URL:
$response = $client
->share()
->createPost(
$client_user_network_id,
[
[
'client_user_network_id' => $client_user_network_id,
'title' => 'Video Post',
'message' => 'This is a video post.',
'postFormat' => 2,
'mediaObjects' => [
[
'type' => 'VIDEO',
'url' => 'https://example.com/video.mp4'
]
]
]
]
);
Before choosing the video workflow, retrieve the network properties and check video_upload_type.
A video upload token is only generated when video_upload_type is 1.
$client->authentication();
$client->network();
$client->connection();
$client->categories();
$client->user();
$client->share();
$client->video();
$client->videoUpload();
$client->videoStatus();
$client->app();
$client->userApps();
The Blog2Social API can be integrated directly into AI agents, coding assistants, automation platforms, and custom applications.
To simplify AI-powered integrations, Blog2Social provides a machine-readable OpenAPI specification optimized for automated code generation and API understanding.
Use the following AI-optimized API specification to generate applications, SDKs, integrations, or custom tools with your preferred AI assistant.
https://docs.blog2social.com/api/ai-specification.json
The document contains the complete Blog2Social API description, including endpoints, request and response schemas, authentication, examples, and data models. It is optimized for AI coding assistants such as ChatGPT, Claude, Gemini, Cursor, GitHub Copilot, and similar developer tools, enabling them to understand the API and generate integrations more effectively.
The AI API specification is continuously updated alongside the Blog2Social API and should be used as the primary source for AI-assisted development.
Learn how to connect, manage and publish content on supported platforms using the Blog2Social API.
Each guide provides platform-specific information, supported content types, media requirements, publishing examples, best practices and API workflows.
The guides help you understand platform-specific capabilities, optimize content publishing and build efficient social media automation workflows.
Topics covered in each guide:
Use these guides to get the most out of each platform while working with a unified API experience.
Publish content to Band through the Blog2Social API.
Band is a community platform designed for groups, teams and organizations. Use the Blog2Social API to connect Band accounts, publish posts and automate group communication workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts.
Example:
{
"client_user_network_id": 3241,
"title": "Band Post",
"message": "Hello Band",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Blogger through the Blog2Social API.
Blogger is a blogging platform for publishing articles, updates and long-form content. Use the Blog2Social API to connect Blogger accounts, publish articles and automate blog content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 when publishing article content with images.
Example:
{
"client_user_network_id": 3241,
"title": "Blogger Article",
"message": "This is the article content for Blogger.",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Bloglovin through the Blog2Social API.
Bloglovin is a platform for discovering, following and sharing blog content. Use the Blog2Social API to connect Bloglovin accounts, publish blog posts and automate blog content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 when publishing blog content with images.
Example:
{
"client_user_network_id": 3241,
"title": "Bloglovin Post",
"message": "New blog content is available.",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Bluesky through the Blog2Social API.
Bluesky is a decentralized social media platform for public conversations, communities and real-time updates. Use the Blog2Social API to connect Bluesky accounts, publish posts and automate social media distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts or postFormat = 1 for image posts.
Example:
{
"client_user_network_id": 3241,
"title": "Bluesky Post",
"message": "Hello Bluesky",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to DEV.to through the Blog2Social API.
DEV.to is a publishing platform for developers, technical writers and software communities. Use the Blog2Social API to connect DEV.to accounts, publish articles and distribute technical content automatically.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image articles or postFormat = 2 when video media is included.
Example:
{
"client_user_network_id": 3241,
"title": "DEV.to Article",
"message": "This is the article content for DEV.to.",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Diigo through the Blog2Social API.
Diigo is a bookmarking and research platform for saving, organizing and sharing useful links. Use the Blog2Social API to connect Diigo accounts, publish bookmarks and automate link distribution workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 and provide a URL via customUrl.
Example:
{
"client_user_network_id": 3241,
"title": "Diigo Bookmark",
"message": "Useful resource",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Discord through the Blog2Social API.
Discord is a community platform for servers, channels and direct audience communication. Use the Blog2Social API to connect Discord accounts, publish messages and automate community updates.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image messages or postFormat = 2 for video messages.
Example:
{
"client_user_network_id": 3241,
"title": "Discord Message",
"message": "Hello Discord",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Facebook through the Blog2Social API.
Facebook remains one of the world's largest social media platforms for businesses, creators and communities. Use the Blog2Social API to connect Facebook profiles, pages and groups, publish content automatically and streamline social media workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts, postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Facebook Post",
"message": "Hello Facebook",
"postFormat": 0,
"customUrl": "https://example.com"
}
Use the Insights endpoints to retrieve engagement and performance metrics for published Facebook content.
Available endpoints:
/network/post/insights/total/network/post/insights/graphclient_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/network/post/insights/total/network/post/insights/graphPublish content to Flickr through the Blog2Social API.
Flickr is a media-focused platform for sharing photography, visual content and creative portfolios. Use the Blog2Social API to connect Flickr accounts, publish media posts and automate visual content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Flickr Media Post",
"message": "Hello Flickr",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Google Business Profile through the Blog2Social API.
Google Business Profile helps businesses publish updates, offers and announcements directly to their business presence on Google. Use the Blog2Social API to connect Google Business Profile accounts, publish business posts and automate local marketing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Business Update",
"message": "New update from our business",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/network/post/removePublish content to HumHub through the Blog2Social API.
HumHub is a social networking and collaboration platform for organizations, communities and teams. Use the Blog2Social API to connect HumHub accounts, publish posts and automate internal or community communication.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "HumHub Post",
"message": "Hello HumHub",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Instagram through the Blog2Social API.
Instagram is one of the world's leading social media platforms for visual content and audience engagement. Use the Blog2Social API to connect Instagram accounts, publish image and video content, and automate Instagram publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 and provide one or more image URLs in mediaObjects.
Example:
{
"client_user_network_id": 3241,
"title": "Instagram Image Post",
"message": "Hello Instagram",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
Use postFormat = 2 and provide a video URL.
Example:
{
"client_user_network_id": 3241,
"title": "Instagram Video Post",
"message": "Hello Instagram",
"postFormat": 2,
"mediaObjects": [
{
"type": "VIDEO",
"url": "https://example.com/video.mp4"
}
]
}
Use the Insights endpoints to retrieve engagement and performance metrics for published Instagram content.
Available endpoints:
/network/post/insights/total/network/post/insights/graphclient_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/network/post/insights/total/network/post/insights/graphPublish content to Instapaper through the Blog2Social API.
Instapaper is a platform for saving, organizing and reading web content. Use the Blog2Social API to connect Instapaper accounts, publish saved content and automate link-based content workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 and provide a URL via customUrl.
Example:
{
"client_user_network_id": 3241,
"title": "Instapaper Content",
"message": "Saved content for later reading",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to LinkedIn through the Blog2Social API.
LinkedIn is the world's leading professional networking platform for businesses, brands and professionals. Use the Blog2Social API to connect LinkedIn accounts, publish content automatically and streamline professional content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts, postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "LinkedIn Post",
"message": "Hello LinkedIn",
"postFormat": 0,
"customUrl": "https://example.com"
}
Use the Insights endpoints to retrieve engagement and performance metrics for published content.
Available endpoints:
/network/post/insights/total/network/post/insights/graphclient_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/network/post/insights/total/network/post/insights/graphPublish content to Mastodon through the Blog2Social API.
Mastodon is a decentralized social media platform for public conversations, communities and topic-based communication. Use the Blog2Social API to connect Mastodon accounts, publish posts and automate content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts, postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Mastodon Post",
"message": "Hello Mastodon",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Medium through the Blog2Social API.
Medium is a publishing platform for articles, stories and thought leadership content. Use the Blog2Social API to connect Medium accounts, publish articles and distribute long-form content automatically.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 with image content when media is included.
Example:
{
"client_user_network_id": 3241,
"title": "Medium Article",
"message": "This is the article content for Medium.",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Pinterest through the Blog2Social API.
Pinterest is a visual discovery platform for inspiration, products, ideas and long-term content visibility. Use the Blog2Social API to connect Pinterest accounts, publish pins and manage board-based publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse /network/categories to retrieve available Pinterest boards for a connected account.
Use postFormat = 1 for image pins or postFormat = 2 for video pins.
Example:
{
"client_user_network_id": 3241,
"title": "Pinterest Pin",
"message": "Discover more on our website",
"postFormat": 1,
"customUrl": "https://example.com",
"board": "BOARD_ID",
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/network/categories/user/auth/list/network/post/createPublish content to Ravelry through the Blog2Social API.
Ravelry is a community platform for fiber artists, designers and craft-related content. Use the Blog2Social API to connect Ravelry accounts, publish posts and automate content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts.
Example:
{
"client_user_network_id": 3241,
"title": "Ravelry Post",
"message": "Hello Ravelry",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Reddit through the Blog2Social API.
Reddit is a community-driven platform for discussions, niche communities and topic-based content distribution. Use the Blog2Social API to connect Reddit accounts, publish posts and manage subreddit-based publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse /network/categories to retrieve available subreddits for a connected account.
Use postFormat = 0 for link posts or postFormat = 1 for image posts.
Example:
{
"client_user_network_id": 3241,
"title": "Reddit Post",
"message": "Hello Reddit",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/network/categories/user/auth/list/network/post/createPublish content to Telegram through the Blog2Social API.
Telegram is a messaging and channel platform for fast content distribution, community updates and direct audience communication. Use the Blog2Social API to connect Telegram channels and publish messages automatically.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image messages or postFormat = 2 for video messages.
Example:
{
"client_user_network_id": 3241,
"title": "Telegram Message",
"message": "Hello Telegram",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Threads through the Blog2Social API.
Threads is a social platform for conversations, updates and community engagement. Use the Blog2Social API to connect Threads accounts, publish posts and automate social media publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Threads Post",
"message": "Hello Threads",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to TikTok through the Blog2Social API.
TikTok is a leading platform for short-form video content, trends and audience engagement. Use the Blog2Social API to connect TikTok accounts, publish image and video content, and automate TikTok publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "TikTok Post",
"message": "Hello TikTok",
"postFormat": 2,
"mediaObjects": [
{
"type": "VIDEO",
"url": "https://example.com/video.mp4"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Torial through the Blog2Social API.
Torial is a publishing platform for journalists, writers and professional content creators. Use the Blog2Social API to connect Torial accounts, publish articles and automate content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 when publishing article content with images.
Example:
{
"client_user_network_id": 3241,
"title": "Torial Article",
"message": "This is the article content for Torial.",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Tumblr through the Blog2Social API.
Tumblr is a blogging and social publishing platform for creative content, visual storytelling and community engagement. Use the Blog2Social API to connect Tumblr accounts, publish posts and automate content distribution.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts, postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "Tumblr Post",
"message": "Hello Tumblr",
"postFormat": 0,
"customUrl": "https://example.com"
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to Vimeo through the Blog2Social API.
Vimeo is a video hosting platform for professional video publishing, branded content and creative media distribution. Use the Blog2Social API to connect Vimeo accounts, publish videos and automate video publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 2 and provide a video URL.
Example:
{
"client_user_network_id": 3241,
"title": "Vimeo Video",
"message": "Video description for Vimeo",
"postFormat": 2,
"mediaObjects": [
{
"type": "VIDEO",
"url": "https://example.com/video.mp4"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/video/upload/video/checkPublish content to VK (VKontakte) through the Blog2Social API.
VK is a social networking platform for communities, brands and content distribution. Use the Blog2Social API to connect VK accounts, publish posts and automate social media publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "VK Post",
"message": "Hello VK",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to X through the Blog2Social API.
X is a leading platform for real-time communication, news distribution and audience engagement. Use the Blog2Social API to connect X accounts, publish content automatically and streamline social media publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 0 for link posts, postFormat = 1 for image posts or postFormat = 2 for video posts.
Example:
{
"client_user_network_id": 3241,
"title": "X Post",
"message": "Hello X",
"postFormat": 0,
"customUrl": "https://example.com"
}
Use the Insights endpoints to retrieve engagement and performance metrics for published content.
Available endpoints:
/network/post/insights/total/network/post/insights/graphclient_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/create/network/post/insights/total/network/post/insights/graphPublish content to Xing through the Blog2Social API.
Xing is a professional networking platform for business communication, employer branding and professional content distribution. Use the Blog2Social API to connect Xing accounts, publish posts and automate professional publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse postFormat = 1 for image posts.
Example:
{
"client_user_network_id": 3241,
"title": "Xing Post",
"message": "Hello Xing",
"postFormat": 1,
"mediaObjects": [
{
"type": "IMAGE",
"url": "https://example.com/image.jpg"
}
]
}
client_user_network_id for future publishing./network/list/network/add/user/auth/list/network/post/createPublish content to YouTube through the Blog2Social API.
YouTube is one of the world's largest video platforms for creators, brands and businesses. Use the Blog2Social API to connect YouTube channels, publish videos and Shorts, and manage playlist-based publishing workflows.
/network/listnetwork_id/network/addauth_link/user/auth/listUse /network/categories to retrieve available YouTube playlists for a connected account.
Use postFormat = 2 and provide a video URL.
Example:
{
"client_user_network_id": 3241,
"title": "YouTube Video",
"message": "Video description for YouTube",
"postFormat": 2,
"mediaObjects": [
{
"type": "VIDEO",
"url": "https://example.com/video.mp4"
}
]
}
client_user_network_id for future publishing./network/list/network/add/network/categories/user/auth/list/network/post/create/video/upload/video/check