Skip to content
Convertto

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?

The successor to RFC 7807, it standardises a machine-readable error body with type, title, status, detail and instance members, served as application/problem+json. Using it means clients can handle your errors without bespoke parsing.

Why does the generator compute page links?

Because off-by-one errors in pagination links are one of the most common API bugs. Generating consistent next, previous, first and last links gives you a correct reference to test your own implementation against.

How to use the sample api response generator

  1. 1Choose the response style.
  2. 2Choose the resource.
  3. 3Set the items in this page.
  4. 4Set the current page.
  5. 5Set the page size.
  6. 6Set the total records.
  7. 7Choose the http status.
  8. 8Turn "Include links and meta" on or off as needed.
  9. 9Turn "Pretty-print" on or off as needed.
  10. 10Enter or paste your seed.
  11. 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

Last updated

More samples & mock data