Mock API in a couple of minutes

Paste your JSON —
get a working API.

Don't want to stand up a backend for a couple of endpoints? Upload your data and Mockly serves it as a real REST API: read and write, pages, filters, relations.

curl 'https://api.m0ckly.site/m/demo/users/1?_relations=posts'
A live demo project, no signup. It resets to the same data every hour.
Free
api.m0ckly.site/m/9f2c…/products200
GET/products?page=1&limit=2
{
  "items": [
    { "id": 1, "title": "Coffee" },
    { "id": 2, "title": "Tea" }
  ],
  "meta": {
    "total_items": 2,
    "current_page": 1
  }
}
200 OK< 40msno keys, no headers
How it works

Three steps to a live endpoint

01
Paste your JSON

An array or an object into a new collection. Any shape works, and JSON5 is accepted too — unquoted keys, trailing commas, comments.

[
  { "title": "Coffee" },
  { "title": "Tea" }
]
02
Get your endpoint

A hosted URL under your project id, instantly.

api.m0ckly.site/m/9f2c…
200 · live< 40ms
03
Query like production

CRUD, pagination, filters, relations — the contract never drifts.

GET /products?page=1
{
  "items": [ … ],
  "meta": { "total_items": 2 }
}
Features

Everything a real API gives you

Without standing up a backend.

CRUD

Full read & write

GET, POST, PATCH, PUT, DELETE — records echo their id back.

POST /products → 201
PAGINATION

page & limit

Structured meta: total_items, total_pages, current_page, per_page.

?page=2&limit=20
FILTERING

Substring, wildcard, range

Only matching records come back: substring match, wildcards, numeric range. And q searches every field at once.

?price_gte=100
SORTING

sortBy & order

Sorting happens server-side — clicking a table column actually works. Numbers compare as numbers.

?sortBy=price&order=desc
RELATIONS

Related records in one request

Got a userId? Mockly attaches the record from users under user. Nested data without a second round trip.

?_relations=user
SCOPES

Your project endpoint

Every collection is served under the project public id, isolated and shareable.

/m/9f2c…/products
mockly