Articles API
RESTful API for accessing published articles, categories, and content data
Get API Key
Contact support to receive your API key
Make Request
Include X-API-Key header in requests
Get Data
Receive JSON responses instantly
Secure
API key authentication
Rate Limited
60-100 req/min
JSON Format
Standard responses
Fast
Sub-second responses
API Endpoints
/articlesAPIFetch published articles with optional filtering and pagination
Query Parameters
categoryFilter by category (e.g., web_development, seo)
startDateFilter articles published after this date (ISO format)
endDateFilter articles published before this date (ISO format)
limitNumber of articles to return (default: 50, max: 100)
offsetPagination offset (default: 0)
sortBySort field: published_date, views, created_date (default: published_date)
sortOrderSort order: asc or desc (default: desc)
Example Request
curl -X GET "https://your-domain.com/articlesAPI?limit=10&category=web_development" \
-H "X-API-Key: your_api_key_here"Example Response
{
"success": true,
"data": [
{
"id": "abc123",
"title": "Getting Started with React",
"subtitle": "A comprehensive guide for beginners",
"excerpt": "Learn the basics of React...",
"category": "web_development",
"categories": ["web_development", "tutorials"],
"tags": ["react", "javascript"],
"author": "John Doe",
"readTime": 5,
"views": 1234,
"featuredImage": "https://...",
"publishedDate": "2024-01-15",
"slug": "getting-started-with-react"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 45,
"hasMore": true,
"nextOffset": 10
},
"timestamp": "2024-01-20T10:30:00Z"
}/articleByIdAPIFetch a specific article by its ID
Query Parameters
idArticle ID
Example Request
curl -X GET "https://your-domain.com/articleByIdAPI?id=abc123" \
-H "X-API-Key: your_api_key_here"Example Response
{
"success": true,
"data": {
"id": "abc123",
"title": "Getting Started with React",
"subtitle": "A comprehensive guide",
"content": "<p>Full article content...</p>",
"category": "web_development",
"categories": ["web_development", "tutorials"],
"tags": ["react", "javascript"],
"author": "John Doe",
"readTime": 5,
"views": 1234,
"featuredImage": "https://...",
"publishedDate": "2024-01-15",
"slug": "getting-started-with-react",
"metaTitle": "Getting Started with React - Complete Guide",
"metaDescription": "Learn React from scratch...",
"metaKeywords": ["react", "tutorial", "beginner"],
"ogImage": "https://...",
"ogTitle": "Getting Started with React",
"ogDescription": "A comprehensive guide..."
},
"timestamp": "2024-01-20T10:30:00Z"
}/articlesBySlugAPIFetch a specific article by its URL slug
Query Parameters
slugArticle URL slug
Example Request
curl -X GET "https://your-domain.com/articlesBySlugAPI?slug=getting-started-with-react" \
-H "X-API-Key: your_api_key_here"Example Response
{
"success": true,
"data": {
"id": "abc123",
"title": "Getting Started with React",
"slug": "getting-started-with-react",
...
},
"timestamp": "2024-01-20T10:30:00Z"
}/categoriesAPIGet all article categories with article counts
Example Request
curl -X GET "https://your-domain.com/categoriesAPI" \
-H "X-API-Key: your_api_key_here"Example Response
{
"success": true,
"data": [
{
"name": "web_development",
"displayName": "Web Development",
"description": "Web development tutorials and best practices",
"articleCount": 12
},
{
"name": "seo",
"displayName": "SEO",
"description": "Search engine optimization guides",
"articleCount": 8
}
],
"total": 2,
"timestamp": "2024-01-20T10:30:00Z"
}Code Examples
// JavaScript / Node.js Example
const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://your-domain.com';
async function fetchArticles(options = {}) {
const params = new URLSearchParams(options);
const response = await fetch(`${BASE_URL}/articlesAPI?${params}`, {
headers: {
'X-API-Key': API_KEY
}
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
return data;
}
// Usage
fetchArticles({
category: 'web_development',
limit: 10
})
.then(data => console.log(data))
.catch(error => console.error('Error:', error));All API requests require authentication using an API key passed in the request header:
X-API-Key: your_api_key_hereAPI requests are rate limited to ensure fair usage:
Rate limit information is included in response headers:
Need Help?
Contact our support team to get your API key or assistance with integration