A library that does exactly this is hypothesis-jsonschema

Hypothesis is a library that can generate arbitrary data that conforms to a given specification.

hypothesis-jsonschema makes it possible to convert JSON Schema into specifications that can be used by Hypothesis.

Here is an example showing a unit test written using Hypothesis and hypothesis-jsonschema:

from hypothesis import given

from hypothesis_jsonschema import from_schema


@given(from_schema({"type": "integer", "minimum": 1, "exclusiveMaximum": 10}))
def test_integers(value):
    assert isinstance(value, int)
    assert 1 <= value < 10
Answer from Alice Heaton on Stack Overflow
๐ŸŒ
JSONPlaceholder
jsonplaceholder.typicode.com
JSONPlaceholder - Free Fake REST API
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data.
๐ŸŒ
DummyJSON
dummyjson.com
DummyJSON - Free Fake REST API for Placeholder JSON Data
DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
๐ŸŒ
Mocki
mocki.io โ€บ fake-json-api
Fake API - Dummy User and Todo API - Create Your Own
Access ready to use fake and dummy APIs with JSON data such as users and todos. Create your own fake API using Mockis interactive API editor.
๐ŸŒ
Beeceptor
app.beeceptor.com โ€บ mock-server โ€บ dummy-json
Dummy JSON Rest API - Mock API
Transition to Beeceptor and enjoy ... testing. This mock server offers various REST Endpoints filled with JSON data or entities, perfect for frontend or app development using your preferred frameworks and libraries....
๐ŸŒ
Reddit
reddit.com โ€บ r/golang โ€บ create a dummy rest api from a json file with zero coding in seconds
r/golang on Reddit: Create a dummy REST API from a json file with zero coding in seconds
August 6, 2020 -

Hello guys, long time lurker on this sub but never posted before.

I created json-server, a CLI tool to create a dummy REST API from a provided json file with zero coding in seconds. For each provided resource 6 full functional endpoints are created (GET x2, POST, PUT, PATCH, DELETE), that you can use right away.

Inspired by the javascript package json-server that's where the name comes from.

The next step is to create the first release, which will include binary files for Windows, Linux and macOS. Any comments/suggestions are really welcomed. You can find more info at README file.

https://github.com/chanioxaris/json-server

๐ŸŒ
GitHub
github.com โ€บ Ovi โ€บ DummyJSON
GitHub - Ovi/DummyJSON: DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend. ยท GitHub
Give it a spin at DummyJSON and make your development process smoother. No Sign-up/Registration: Dive in and start using it hassle-free. Zero-configuration: Enjoy a seamless experience without the need for setup. Basic and Advanced API: Covering everything from simple to sophisticated data.
Starred by 2.7K users
Forked by 282 users
Languages ย  EJS 46.4% | JavaScript 43.6% | SCSS 9.8% | Dockerfile 0.2%
Find elsewhere
๐ŸŒ
GitHub
github.com โ€บ typicode โ€บ json-server
GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) ยท GitHub
Get a full fake REST API with zero coding in less than 30 seconds (seriously) - typicode/json-server
Starred by 75.6K users
Forked by 7.3K users
Languages ย  JavaScript 91.7% | HTML 8.3%
๐ŸŒ
PublicAPI
publicapi.dev โ€บ dummy-json-api
DummyJSON API - PublicAPI
DummyJSON API provides Generate dummy data in JSON format
๐ŸŒ
fake api
fake-json.json-format.com โ€บ home โ€บ uncategorized โ€บ what is dummy api json? (beginner-friendly explanation)
What Is Dummy API JSON? (Beginner-Friendly Explanation) - fake api
December 18, 2025 - Dummy API JSON refers to fake or sample JSON data returned by a dummy (mock) API. It is used by developers to test, learn, and build applications without connecting to a real backend or database. Dummy API JSON behaves like a real API response, but the data is not real. It is mainly used during
๐ŸŒ
Beeceptor
beeceptor.com โ€บ mock-api
JSON & XML Mock Server - Free
Simulate errors, edge cases, and negative scenarios. ... Tired of the backend server hassle at project kick-off? We've got the solution. Beeceptor gives no-code dummy APIs and JSON data hosting for your apps.
๐ŸŒ
DummyJSON
dummyjson.com โ€บ docs
Docs - DummyJSON - Free Fake REST API for Placeholder JSON Data
DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
๐ŸŒ
Dadroit
dadroit.com โ€บ blog โ€บ json-generator
JSON Generator: How To Create Dummy JSON Data
October 15, 2023 - For example, some APIs and libraries in programming languages like Faker JSON in Python can create mock JSON data.
๐ŸŒ
DummyJSON
dummyjson.com โ€บ docs โ€บ users
Users - DummyJSON - Free Fake REST API for Placeholder JSON Data
REST Endpoints filled with Users JSON data, DummyJSON provides a free fake REST API with placeholder JSON data for development, testing, and prototyping. Access realistic data quickly for your projects.
๐ŸŒ
Microsoft Edge
microsoftedge.github.io โ€บ Demos โ€บ json-dummy-data
JSON dummy data | Demos
This is a collection of dummy JSON files in various sizes to use as test data for the JSON viewer.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ build-a-simple-json-api-in-python
How to build a JSON API with Python
July 30, 2019 - Here, you can learn how to create a basic JSON API using Python and Flask.
๐ŸŒ
Pypi
docs.pypi.org โ€บ api โ€บ json
JSON API - PyPI Docs
This page documents the PyPI-specific JSON API. If all you need is a JSON index API (e.g.
๐ŸŒ
JSON API
discuss.jsonapi.org โ€บ t โ€บ generating-dummy-json-data โ€บ 1425
Generating dummy JSON data - JSON API
September 15, 2018 - Hi All, Iโ€™m just wondering if someone could advise the format for creating JSON data under the following: 1 owner has 100 farms and each farm has 20 paddocks. For argument sake if you could add two dummy values per obโ€ฆ