Free Mock API
for Custom JSON Data

Need a free mock REST API for your own JSON data?
Enter your response body below and click "Generate Now" to instantly get your custom API URL.

// "response" body, what you expect from your custom API
Request method type:

Why use it

How it works

  1. 1

    Paste your JSON

    Enter the response body you want your mock API to return. Use Prettify to format messy JSON.

  2. 2

    Choose a method

    Select the HTTP method your client will call — GET for reads, POST for creates, and so on.

  3. 3

    Generate and call

    Click Generate Now, copy your unique URL, and start fetching real JSON from your custom endpoint.

FAQ

How long does a custom API URL last?

Your endpoint stays active for 90 days. Check the x-expires-on response header for the exact expiry date.

Which HTTP methods can I use?

GET, POST, PUT, PATCH, and DELETE — pick the method when you generate the URL.

Is there a payload size limit?

Yes. JSON response bodies can be up to 300 KB.

Can I update the response after creating a URL?

Each URL is tied to the JSON and method you submitted. To change the response, generate a new endpoint with updated data.

Do I need a backend?

No. DummyJSON hosts the endpoint for you. Share the URL with your frontend, mobile app, or API tests and it returns your JSON instantly.

Spin up a mock API in seconds

No server setup, no deploy step — just JSON in, working endpoint out.