Sample API Response Generator
Generate realistic REST, JSON:API, GraphQL and error-envelope responses with pagination.
A sample API response generator builds realistic JSON payloads in the shapes real APIs use: a paginated REST collection, a single resource, a success envelope, JSON:API, a GraphQL data response, cursor pagination, an error object, or RFC 9457 problem details — complete with links, meta blocks and request identifiers.
Runs in your browser- Response styles
- Eight — REST collection and single, success envelope, JSON:API, GraphQL, cursor pagination, error object and RFC 9457 problem details
- Pagination
- Page numbers, totals, page counts and next/previous links are all computed consistently
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
What is RFC 9457?
Why does the generator compute page links?
How to use the sample api response generator
- 1Choose the response style.
- 2Choose the resource.
- 3Set the items in this page.
- 4Set the current page.
- 5Set the page size.
- 6Set the total records.
- 7Choose the http status.
- 8Turn "Include links and meta" on or off as needed.
- 9Turn "Pretty-print" on or off as needed.
- 10Enter or paste your seed.
- 11The result appears immediately — copy or download it.
Embed this tool
Put the working sample api response generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Sample JSON GeneratorTurn a JSON Schema into realistic sample documents, respecting types, enums, formats and constraints.API Request BuilderBuild an HTTP request visually and get it as curl, fetch, axios, Python, Go or PHP code.GraphQL FormatterFormat or minify a GraphQL query, mutation or schema, and inspect its depth.HTTP Status Code ReferenceLook up what any HTTP status code means and when to use it.JSON Schema GeneratorInfer a JSON Schema from example data, detecting types, string formats and required keys.Mock Data GeneratorGenerate realistic fake test data in 14 formats from 100+ field types, with reproducible seeds.
Last updated
More samples & mock data