Get One Blog
The Get One Blog API endpoint retrieves a single blog entry by its unique ID from the Blog CMS.
This endpoint is publicly accessible, but requires a valid API key in the request headers and the blog ID as part of the request body.
You can obtain your API key from the Settings → API Key page within your Blog CMS account.
Use this GET API to:
- Fetch details of a specific blog for viewing
1. cURL Example
curl --location 'https://api.jsonpress.in/api/v1/public/blog/YOUR_BLOG_ID' ,--header 'x-api-key: YOUR_API_KEY'2. Node.js (Axios) Example
const axios = require('axios');
let config = { method: 'get', maxBodyLength: Infinity, url: 'https://api.jsonpress.in/api/v1/public/blog/YOUR_BLOG_ID', headers: { 'x-api-key': 'YOUR_API_KEY' }};
axios.request(config).then((response) => { console.log(JSON.stringify(response.data));})
.catch((error) => { console.log(error);});