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/postsAuth Required
Retrieve all posts
POST
/api/v1/postsAuth 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}/publishAuth Required
Publish post to platforms
GET
/api/v1/analyticsAuth Required
Get analytics data
Official SDKs
JavaScript/Node.js
Official SDK for JavaScript and Node.js applications
Installation:
npm install @universalblog/sdkPython
Official SDK for Python applications
Installation:
pip install universalblog-sdkPHP
Official SDK for PHP applications
Installation:
composer require universalblog/sdkRuby
Official SDK for Ruby applications
Installation:
gem install universalblog-sdkReady to Build Something Amazing?
Get your API key and start integrating with Universal Blog Platform today.