Public API Documentation

Integrate your articles into your own systems. Easy access with REST API.

Quick Start

1

Create Account

Sign in with your FatBotter account or register for free.

2

Get API Token

Create a new token from Settings > Public API tab.

3

Integrate

Send requests to the API with your token and fetch your articles.

Authentication

All API requests require authentication using a Bearer token.

Base URL

https://fatbotter.com/api/v1/public

Authorization Header

Authorization: Bearer YOUR_API_TOKEN

Token Security

Never share your API token. Each token is valid for 6 months and only provides access to your own articles.

Rate Limiting

100

Requests / Minute

1

Minute

6

Month Token Validity

Response Headers:

X-RateLimit-Limit: 100

X-RateLimit-Remaining: 99

API Endpoints

GET/articles

Lists all your articles with pagination.

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (max: 100, default: 10)
statusstringdraft, published, archived, pending
languagestringtr, en, de, fr...
sortstringcreated_at, updated_at, title, word_count
orderstringasc, desc
searchstringSearch in title and content
GET/articles/{id}

Returns the article with the specified ID with all details. Images included.

GET/articles/{id}/images

Lists all images belonging to the article.

Response Format

Example Response (JSON)
{
  "success": true,
  "data": {
    "id": 123,
    "title": "Makale Başlığı",
    "slug": "makale-basligi",
    "content": "<p>HTML içerik...</p>",
    "excerpt": "Kısa özet...",
    "featured_image": "https://fatbotter.com/storage/...",
    "images": [
      {
        "id": 1,
        "url": "https://fatbotter.com/storage/...",
        "alt_text": "Görsel açıklaması",
        "is_featured": true
      }
    ],
    "meta": {
      "description": "Meta açıklama",
      "keywords": ["anahtar", "kelimeler"]
    },
    "word_count": 1500,
    "language": "tr",
    "status": "published",
    "published_at": "2026-01-01T12:00:00Z"
  },
  "meta": {
    "current_page": 1,
    "last_page": 10,
    "per_page": 10,
    "total": 100
  }
}

Code Examples

cURL
curl -X GET "https://fatbotter.com/api/v1/public/articles" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
JavaScript (Fetch API)
const API_TOKEN = 'YOUR_API_TOKEN';

const response = await fetch(
  'https://fatbotter.com/api/v1/public/articles',
  {
    headers: {
      'Authorization': `Bearer ${API_TOKEN}`,
      'Content-Type': 'application/json'
    }
  }
);

const data = await response.json();
console.log(data);
PHP (cURL)
<?php

$apiToken = 'YOUR_API_TOKEN';

$ch = curl_init();

curl_setopt_array($ch, [
    CURLOPT_URL => 'https://fatbotter.com/api/v1/public/articles',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . $apiToken,
        'Content-Type: application/json'
    ]
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);
Python (requests)
import requests

API_TOKEN = 'YOUR_API_TOKEN'

headers = {
    'Authorization': f'Bearer {API_TOKEN}',
    'Content-Type': 'application/json'
}

response = requests.get(
    'https://fatbotter.com/api/v1/public/articles',
    headers=headers
)

data = response.json()
print(data)
Node.js (axios)
const axios = require('axios');

const API_TOKEN = 'YOUR_API_TOKEN';

async function getArticles() {
  try {
    const response = await axios.get(
      'https://fatbotter.com/api/v1/public/articles',
      {
        headers: {
          'Authorization': `Bearer ${API_TOKEN}`
        }
      }
    );

    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

getArticles();

Error Codes

HTTP CodeDescription
401Invalid or missing API token. Check your token.
404Article not found or doesn't belong to you.
429Rate limit exceeded. Please wait a minute.
500Server error. Please try again later.

Start Using the API

Create an API token from the panel and integrate your articles into your own systems.

Create Token