Learn how to use ApiGenerator endpoints, query parameters, and code snippets in your projects.
ApiGenerator is a mock REST API generator. Pick any keyword as a path segment, send a GET request, and receive realistic JSON arrays instantly. Use the home page generator, browse examples, or open the playground for full control over query parameters.
https://free-api-backend.vercel.app/users?count=5
https://free-api-backend.vercel.app
GET /:keyword
GET /:keyword/:id
List endpoints return an array in data. Detail endpoints return a single object in data for the matching id.
id, then request that single record — the same pattern real frontends use for master/detail screens.Every list item includes a stable id. Use GET /:keyword/:id to retrieve the matching record. IDs are deterministic when you use the same seed (or omit it — the server applies a default seed of default).
1. List items
https://free-api-backend.vercel.app/recipes?count=10&seed=demo
2. Fetch one item by id
https://free-api-backend.vercel.app/recipes/{id-from-list}?seed=demoIf the id does not exist for that keyword and seed, the API returns 404. In the Playground, use the optional Item ID field to paste an id from your list response, or click Use on an id chip below the JSON preview.
Not supported in v1: cross-resource nesting (e.g. /posts/:id/comments) or different field schemas for list vs detail.
count→number10 · 1–100page→number1 · ≥ 1limit→number10 · 1–100fields→stringsort→stringorder→enumasc · asc | descsearch→stringseed→stringdefaultdelay→numberpretty→booleanfields query parameter or the field picker in the Playground.For local keywords (e.g. users, posts), available fields are known upfront. For AI keywords, generate once to discover fields, then filter the preview instantly without re-generating.
https://free-api-backend.vercel.app/users?count=5&fields=id,firstName,email
In the Playground, use the Response Fields dropdown after generating to toggle fields — the JSON preview updates immediately without another request.
curl "https://free-api-backend.vercel.app/users?count=10"
const res = await fetch("https://free-api-backend.vercel.app/users?count=10");
const data = await res.json();import axios from "axios";
const { data } = await axios.get("https://free-api-backend.vercel.app/users", {
params: { count: 10 },
});import { useEffect, useState } from "react";
export function ProductGrid() {
const [products, setProducts] = useState([]);
useEffect(() => {
fetch("https://free-api-backend.vercel.app/products?count=12")
.then((res) => res.json())
.then((json) => setProducts(json.data ?? []));
}, []);
return products.map((p) => <div key={p.id}>{p.name}</div>);
}A mock API (also called a fake JSON API or API placeholder) returns realistic JSON over HTTP so you can build and test frontends without a real backend. ApiGenerator creates free mock REST endpoints from any keyword instantly.
Yes. ApiGenerator is a free mock API with no signup. Use it as a free fake REST API for prototypes, tutorials, and tests — including query parameters and field filtering on built-in endpoints.
Append query parameters to any endpoint URL — for example, ?count=10&page=1&limit=5 controls how many records are returned and paginates results. See the documentation for the full list.
Use query parameters for count, pagination, sorting, and field filtering. For custom domains, AI-powered endpoints generate tailored JSON schemas from any English keyword.
Yes. Use API Groups in the Playground to save related endpoints, apply templates, and export or import your configurations as JSON.