API Documentation

Build powerful integrations with our comprehensive REST API. Automate your content workflow and scale your distribution.

RESTful API

Simple, predictable REST API with JSON responses

Secure

API key authentication with rate limiting and HTTPS

Global CDN

Fast response times worldwide with 99.9% uptime

Get Started in Minutes

javascript Example

// Initialize the SDK
import { UniversalBlog } from '@universalblog/sdk';

const client = new UniversalBlog({
  apiKey: 'your-api-key',
  baseUrl: 'https://api.universalblog.com'
});

// Create a new post
const post = await client.posts.create({
  title: 'My Amazing Blog Post',
  content: 'This is the content of my post...',
  platforms: ['twitter', 'linkedin', 'medium'],
  scheduledAt: '2024-01-01T12:00:00Z'
});

console.log('Post created:', post.id);

API Endpoints

GET
/api/v1/posts
Auth Required

Retrieve all posts

POST
/api/v1/posts
Auth Required

Create a new post

PUT
/api/v1/posts/{id}
Auth Required

Update an existing post

DELETE
/api/v1/posts/{id}
Auth Required

Delete a post

POST
/api/v1/posts/{id}/publish
Auth Required

Publish post to platforms

GET
/api/v1/analytics
Auth Required

Get analytics data

Official SDKs

JavaScript/Node.js

Official SDK for JavaScript and Node.js applications

Installation:

npm install @universalblog/sdk
View Documentation

Python

Official SDK for Python applications

Installation:

pip install universalblog-sdk
View Documentation

PHP

Official SDK for PHP applications

Installation:

composer require universalblog/sdk
View Documentation

Ruby

Official SDK for Ruby applications

Installation:

gem install universalblog-sdk
View Documentation

Ready to Build Something Amazing?

Get your API key and start integrating with Universal Blog Platform today.