Classic Fake REST API

A familiar fake REST API — users, posts, comments, todos, products, carts and quotes — with search, sort, select and page/skip paging. Unlike most, writes persist in your sandbox, carry ETags and validate per field.

Base URL: https://funapi.dev/api/classic/v1 · 43 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

users

full CRUD

posts

full CRUD

comments

full CRUD

todos

full CRUD

products

full CRUD

carts

full CRUD

quotes

read-only

The Classic Fake REST API has the shape most tutorials assume — users, posts, comments, todos, products, carts and quotes — so an existing test suite or front-end demo can point at it with little more than a new base URL. The difference is underneath: a POST really creates a record in your sandbox, a DELETE really removes it, every record carries an ETag, and a bad body comes back as a 422 that names each failing field instead of a generic error.

What you can practise here

Example request and response

GET https://funapi.dev/api/classic/v1/users — List users — search, filter, sort, select and paginate. No token, no signup:

curl -i https://funapi.dev/api/classic/v1/users

Response: 200 OK

{
  "data": [
    {
      "id": 1,
      "firstName": "Ava",
      "lastName": "Stone",
      "username": "avastone",
      "email": "ava.stone@example.com",
      "phone": "+1-555-0110",
      "age": 22,
      "role": "admin",
      "company": "Northwind Labs",
      "address": {
        "city": "Austin",
        "zip": "73301"
      }
    },
    {
      "id": 2,
      "firstName": "Liam",
      "lastName": "Rivera",
      "username": "liamrivera",
      "email": "liam.rivera@example.com",
      "phone": "+1-555-0111",
      "age": 29,
      "role": "user",
      "company": "Blue Harbor",
      "address": {
        "city": "Denver",
        "zip": "80014"
      }
    },
    {
      "id": 3,
      "firstName": "Maya",
      "lastName": "Okafor",
      "username": "mayaokafor",
      "email": "maya.okafor@example.com",
      "phone": "+1-555-0112",
      "age": 36,
      "role": "user",
      "company": "Quietloop",
      "address": {
        "city": "Lisbon",
        "zip": "1100-148"
      }
    },
    {
      "id": 4,
      "firstName": "Noah",
      "lastName": "Lindqvist",

(truncated — the full response comes back when you run it)

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

How this differs from JSONPlaceholder

Last updated