This page documents the available REST endpoints for fetching blog post data from the Restmancer API.
/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.
limit – Number of blogs to return.field – Comma-separated list of fields (e.g.,
title,content).
idtitleslugauthor (object with id, name,
email)
contenttagscreateAtlikescomments (array of objects with id,
author, content, postedAt)
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"