🧙‍♂️ Restmancer API – Blog Endpoints

🔙 Back to Homepage

This page documents the available REST endpoints for fetching blog post data from the Restmancer API.


GET /api/blogs

Returns a list of blog posts. If the limit is greater than initial data length (10), more will be generated on the fly.

Optional Query Parameters:
Examples:

Fields Available

You can control the number of blogs returned and which fields are included using query parameters like ?limit=3 and ?field=title,slug.

Example: GET /api/blogs?limit=3&field=title,slug

import requests

url = "https://restmancer.vercel.app/api/blogs"
response = requests.get(url)
print(response.json())
fetch("https://restmancer.vercel.app/api/blogs")
  .then(res => res.json())
  .then(data => console.log(data));
const axios = require("axios");

axios.get("https://restmancer.vercel.app/api/blogs")
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });
curl "https://restmancer.vercel.app/api/blogs"