Build
Fast

Applications with Mockup API

Are you a developer looking for a reliable source of dummy blog data for your projects? Look no further! Dummy Blog API provides realistic, high-quality dummy data to help you build, test, and perfect your applications.

Got tired of Lorem ipsum data?

By using the JSON Blog API, you gain access to a variety of REST Endpoints that provide JSON data. This allows you to easily build the frontend of your website using your preferred framework and library, without the need to create a backend from scratch

Example Code

Get By Id

Copy code

fetch('https://dummyblogapi.vercel.app/api/id/661b79f9afa98e5ea6cea585')
.then(res => res.json())
.then(json => console.log(json))

Get All the blogs

Method : GET

Get All Items

Copy code

fetch('https://dummyblogapi.vercel.app/api/all')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves a comprehensive list of all blog posts available in the Dummy JSON Blog API. It is designed to provide developers with an array of dummy blog data that can be used for testing and development purposes. The data returned by this endpoint includes various attributes of each blog post, such as the title, content, author, date, and other relevant metadata.

Get Single blogs

Method : GET

Get single

Copy code

fetch('https://dummyblogapi.vercel.app/api/id/661b79f9afa98e5ea6cea585')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves the details of a specific blog post identified by its unique ID from the Dummy JSON Blog API. It is designed to provide developers with a precise piece of dummy blog data that can be used for testing and development purposes. The data returned by this endpoint includes various attributes of the specified blog post, such as the title, content, author, date, and other relevant metadata.

Search Blogs

Method : GET

Search

Copy code

fetch('https://dummyblogapi.vercel.app/api/search/healthcare')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves a list of blog posts that match the specified title query from the Dummy JSON Blog API. It is designed to provide developers with a filtered array of dummy blog data based on the blog title, which can be used for testing and development purposes. The data returned by this endpoint includes various attributes of each matching blog post, such as the title, content, author, date, and other relevant metadata.

Get Blog by Category

Method : GET

Blog by category

Copy code

fetch('https://dummyblogapi.vercel.app/api/category/sport')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves a list of blog posts that belong to a specified category from the Dummy JSON Blog API. It is designed to provide developers with a filtered array of dummy blog data based on the blog category, which can be used for testing and development purposes. The data returned by this endpoint includes various attributes of each blog post within the specified category, such as the title, content, author, date, and other relevant metadata.

Get Blogs with Pagination

Method : GET

Pagination

Copy code

fetch('https://dummyblogapi.vercel.app/api/blog?page=1')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves a paginated list of blog posts from the Dummy JSON Blog API. It is designed to provide developers with a manageable subset of dummy blog data that can be used for testing and development purposes. The data returned by this endpoint includes various attributes of each blog post, such as the title, content, author, date, and other relevant metadata. Pagination helps in handling large datasets by dividing the results into pages.

Get Blogs with Pagination and limit

Method : GET

Pagination with Limit

Copy code

fetch('https://dummyblogapi.vercel.app/api/blog?page=1&limit=4')
.then(res => res.json())
.then(json => console.log(json))

This endpoint retrieves a paginated list of blog posts from the Dummy JSON Blog API. It allows developers to navigate through the collection of blog posts in a structured manner, enhancing user experience and optimizing resource consumption. By default, the endpoint returns a subset of blog posts with a limit of 8 posts per page. However, developers can specify the desired page number and the number of blog posts per page using optional query parameters.