JSONPlaceholder alternative
A JSONPlaceholder Alternative for Your Own API Responses
JSONPlaceholder is a great way to get sample data on the screen. When your app needs its own data shapes, error states or headers, host endpoints that return exactly what your frontend expects.
No account needed to try. A free account keeps your project.
When to switch
Signs that JSONPlaceholder is no longer enough
JSONPlaceholder serves the same fake posts, users and todos to everyone. That stops working when:
- Your components expect your real field names and nesting, not
userId,titleandbody. - You need to see what the UI does with a 401, 404, 429 or 500 response.
- Your client reads response headers, such as a rate-limit or pagination header.
- You want to see loading states with a slow response.
- Teammates, preview deployments or a mobile app need the same endpoints as you.
Comparison
JSONPlaceholder and Forge API side by side
Both are hosted, both allow cross-origin requests from the browser, and neither stores data you send. The difference is whose data comes back.
| JSONPlaceholder | Forge API | |
|---|---|---|
| Data | Six fixed resources: 100 posts, 500 comments, 100 albums, 5,000 photos, 200 todos and 10 users | The endpoints and JSON you define, or a ready-made Starter Kit |
| Routes | Fixed routes, plus one level of nesting such as /posts/1/comments | Any path you create. Each path matches exactly |
| Query filtering | Basic filtering, such as /posts?userId=1 | Not supported. Query strings do not change the response |
| Writes | POST, PUT, PATCH and DELETE return faked responses. Nothing is stored | Each method returns the response you configured. Nothing is stored |
| Status codes | No option to choose one | Any status code from 100 to 599 for each endpoint |
| Response headers | No option to set them | Custom response headers on every plan |
| Response delays | No option to set them | Configurable delays on paid plans |
| Account | None. No signup and no API key | None to try (a 12-hour demo). A free account keeps your project |
| Usage limits | No per-client limit stated | A monthly request allowance that depends on your plan |
JSONPlaceholder details are from its own home page and guide. For Forge API plan limits, see API limits and pricing.
Fair comparison
When JSONPlaceholder is the better choice
If generic data is enough, JSONPlaceholder is hard to beat. It needs no setup, no account and no API key, and its filtering and nested routes are already there. It is a good fit for:
- Tutorials and code samples that only need some posts or users.
- Quick prototypes where the data shape does not matter yet.
- Trying out a fetch library, a data grid or a state manager.
Forge API is the better fit once the responses have to match your app, including the failures.
Moving across
Point your fetch calls at your own endpoints
Create the endpoints your screens call, with the JSON your components expect. For a blog list, GET /posts could return:
[
{
"id": 1,
"slug": "designing-empty-states",
"title": "Designing empty states",
"author": { "id": 7, "name": "Priya Shah" },
"tags": ["ux", "frontend"],
"publishedAt": "2026-11-20T09:30:00Z"
},
{
"id": 2,
"slug": "caching-api-responses",
"title": "Caching API responses",
"author": { "id": 3, "name": "Tom Okafor" },
"tags": ["performance"],
"publishedAt": "2026-11-24T14:00:00Z"
}
]Your request code stays the same apart from the base URL and the type:
// Before: JSONPlaceholder's fixed post shape
const API_BASE_URL = "https://jsonplaceholder.typicode.com";
type Post = { userId: number; id: number; title: string; body: string };// After: your own endpoint and your own post shape
const API_BASE_URL = "https://apis.getforgeapi.com/YOUR_PROJECT_KEY";
type Post = {
id: number;
slug: string;
title: string;
author: { id: number; name: string };
tags: string[];
publishedAt: string;
};
export async function getPosts(): Promise<Post[]> {
const response = await fetch(`${API_BASE_URL}/posts`);
if (!response.ok) {
throw new Error(`Request failed with status ${response.status}`);
}
return response.json();
}Check the endpoint from a terminal:
curl -i https://apis.getforgeapi.com/YOUR_PROJECT_KEY/postsJSONPlaceholder routes map to endpoints like this. Each Forge API endpoint returns one configured response, so routes that depend on an ID or a filter become separate endpoints:
| JSONPlaceholder | Forge API endpoint | Notes |
|---|---|---|
| GET /posts | GET /posts | Returns your list of posts, with your field names |
| GET /posts/1 | GET /posts/1 | Create one endpoint for each record your screens open |
| GET /posts?userId=1 | GET /users/1/posts | Put the filter in the path, because query strings are ignored |
| POST /posts | POST /posts | Status 201 and the created object you want the UI to receive |
Beyond sample data
Test the responses JSONPlaceholder cannot return
Give an endpoint any status code and body. For example, GET /posts/999 with status 404 and this body lets you build the not-found screen before the backend exists:
{
"error": {
"code": "post_not_found",
"message": "This post does not exist or has been removed."
}
}See how to test API error responses for 401, 422, 429 and 500 examples, and how to simulate slow API responses for loading states.
What is the same
Forge API endpoints are static, like JSONPlaceholder's writes: a POST does not add an item to a later GET. Use them to build and test your interface, not to store data.
Ready-made data
Start from a Starter Kit instead of an empty project
If you liked having data ready to call, a Starter Kit creates a set of related endpoints in one step that you can then edit. The Blog kit is the closest match to JSONPlaceholder's posts, comments and users, and needs a free account. The E-Commerce kit can be tried without an account. See all mock APIs.
Frequently asked questions
JSONPlaceholder alternative
Is Forge API a drop-in replacement for JSONPlaceholder?
No. Forge API does not come with JSONPlaceholder's posts, comments, albums, photos, todos and users. You create the endpoints your app needs, or launch a Starter Kit. If you recreate the same paths, your fetch code only needs a new base URL.
Does Forge API save data sent with POST or PUT?
No. Like JSONPlaceholder, it does not store writes. Each endpoint returns the response you configured for it, so a POST can return 201 and the created object, but a later GET does not change.
Can I filter with query parameters such as ?userId=1?
No. Query strings do not change a Forge API response. Create a separate path instead, for example GET /users/1/posts, and return the filtered list from it.
Do I need an account to try Forge API?
No. Generate an endpoint from the homepage and you get a temporary demo project that lasts 12 hours. Create a free account within that time to keep it.
When should I keep using JSONPlaceholder?
When generic posts, users or todos are enough: quick prototypes, tutorials, code samples and demos that only need some data on the screen. It needs no setup and no account.
Return your own JSON from a hosted endpoint
Generate an endpoint from the homepage in seconds. No account needed to try it.