Example Data Service

Get started building your data-driven app without having to create a backend.

What are the use cases?

This data is a great way to get started building your app without having the backend figured out. Using real (or real-looking) data can help you make better design decisions along the way.

Types of apps you can build:
Crypto
Dating
Directory
List
Media
People
Photos
Podcasts
Reading
Real Estate
Reviews
Shopping
Social
Stocks
Tasks

How do I start using this data?

Just use this service as REST API's in your favorite tool (like Draftbit). To use the API, simply append the resource you want to get.

GET https://example-data.draftbit.com/:resource
For example:
GET https://example-data.draftbit.com/products
Will return a list of products like the following:
{
"id": 3,
"sku": "pp5005630198",
"name": "NikeĀ® Dri-FIT Rivalry Jacket",
"description": "Breathable, full-zip basketball jacket from Nike offers lightweight warmth while keeping you nice and dry, thanks to mesh Dri-FIT panels on the arms and body.",
"list_price": 70.62,
"sale_price": 52.96,
"category": "",
"average_product_rating": 5,
"brand": "Nike",
"num_reviews": 2
}

How do I get a single record?

Add the id of the resource as a parameter, like this:
https://example-data.draftbit.com/:resource/:id
For example:
https://example-data.draftbit.com/products/3
https://example-data.draftbit.com/books/13
https://example-data.draftbit.com/people/99

How do I get a paginate of the data?

You generally won't want to get all of the records for a particular resource, especially those with thousands of records. So use _page and optionally _limit to paginate returned data.

Examples:
https://example-data.draftbit.com/:resource?_page=3&_limit=10
/podcast_episodes?_limit=10
/restaurants?_page=2&_limit=20

Are there relationships between these tables?

Yes! Many of these tables have relationships that let you link them together. For example, there is a relationship between cars, cars_saved, and users. More specifically, cars_saved have both a userId and a carId.

To include children resources, add _embed
/products?_embed=product_reviews
To include parent resource, add _expand
/people?_expand=team
You can also use paths, like
/todo_lists/3/todos
And you can even go 1 step further with two relationships:
/users/1/matchmaking?_expand=people

What else can I do?

A Lot! You can filter using field names, sort using _sort and _order, slice using _start and _end, and search through records using q.

Filter products by a category:
/products?category=jeans
Sort properties to show the cheapest ones first:
/properties?_sort=sell_price&_order=asc
Search for a particular book:
/books?q=Cristo

What HTTP methods are available?

GET, POST, PUT, PATCH, DELETE, and OPTIONS

Remember, this data is just for testing purposes, so any changes you make will not be saved for very long.

What software is behind this example data?

We're using JSON-Server to host this data. Big thanks to them for making this possible. Check out their docs for even more features.

Can you add some additional data?

Sure! Just make a request with the chat button in the lower right or in our community.

Where is this data from?

Some of this data was generated randomly, including anything related to users, people, or holdings. Other parts of the data, like articles, posts, podcasts, restaurants, etc contain data from open source or creative commons databases.