Restmancer API - Blogs
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:
limit– Number of blogs to return.fields– Comma-separated list of fields (e.g.,title,content).
Examples:
Fields Available
idtitleslugauthor(object withid,name,email)contenttagscreateAtlikescomments(array of objects withid,author,content,postedAt)
You can control the number of blogs returned and which fields are included using query parameters
like ?limit=3 and ?fields=title,slug.
Example: GET /api/blogs?limit=3&fields=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"