bradtraversy.dev — apimocker.mdx
home.md projects/ tools/ × devlog/ articles/ now.md about.md
tool · dev

# ApiMocker

free fake rest api with docs, realistic data, persistence, and daily resets

api
ApiMocker homepage with rocket branding, free API docs, endpoint examples, and dataset cards

a free, public fake rest api for development, tutorials, and client demos. like jsonplaceholder, but with real writes, pagination, filtering, sorting, search, error simulation, docs, and a daily reset so public data stays useful.

what’s in it

a realistic dataset out of the box:

  • 10 users
  • 100 posts
  • 200 todos
  • 500 comments

with relationship routes you can navigate, like /users/1/posts and /posts/1/comments.

what you can do

  • full crud: GET / POST / PUT / PATCH / DELETE on every resource
  • pagination: _page=1&_limit=10, with total counts for UI work
  • filtering + sorting: ?completed=true&_sort=title&_order=asc
  • text search: resource search endpoints and title_like filters
  • response delays: ?_delay=2000 to test loading states
  • error simulation: endpoints that return specific status codes on purpose
  • docs: examples and route notes at apimocker.com

how to use

no auth, no signup, no api key. just hit the API:

curl https://api.apimocker.com/users
curl "https://api.apimocker.com/posts?userId=1&_limit=5"
curl "https://api.apimocker.com/posts/search?q=react"

writes are real but reset daily, so your dev environment starts clean again. rate limits keep the shared public API polite.

why i built it

every tutorial that touches an api needs an api. ApiMocker keeps that part boring: real-ish data, normal REST behavior, docs, and no account wall.

the bigger product direction is isolated mock environments, but the public API stays free. for the broader build story, see the ApiMocker project page.

open apimocker.com

// EOF apimocker.mdx
main
apimocker.mdx
UTF-8
LF
Markdown
Ln 1, Col 1