Skip to content

Free APIs for mock and test data

9 of 9 APIs in this set passed their last check, all without a key. A prototype needs data that looks real and a server that answers. These APIs give you both, so you can design the screens before the backend exists.
  1. JSONPlaceholder

    Posts, comments, users and todos with REST verbs.

    jsonplaceholder.typicode.com

    Runs in the browserWorking

  2. DummyJSON

    Products, carts, recipes and auth flows.

    dummyjson.com

    Runs in the browserWorking

  3. Random User Generator

    People with names, addresses and photos.

    randomuser.me

    Runs in the browserWorking

  4. httpbin

    See exactly what your client sent.

    httpbin.org

    Runs in the browserWorking

  5. Postman Echo

    Echo with delay, auth and cookie endpoints.

    postman-echo.com

    Server onlyWorking

  6. Lorem Picsum

    Placeholder photos at any size.

    picsum.photos

    Runs in the browserWorking

  7. placehold.co

    Flat placeholder images with a size label.

    placehold.co

    Runs in the browserWorking

  8. DiceBear

    Avatars generated from a seed.

    api.dicebear.com

    Runs in the browserWorking

  9. UUID Tools

    UUIDs when you cannot generate them locally.

    www.uuidtools.com

    Runs in the browserWorking

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

How the pieces fit

  1. Point your data layer at the mock API through one base-URL constant.
  2. Build and test the screens, including empty, loading and error states.
  3. Replace the constant with your own API when it exists. Nothing else should change.

Questions

Can I use a mock API in production?

No. Mock APIs have no uptime promise and return the same public data to everyone. Use them for prototypes, demos and automated client tests.

How do I test error handling against a mock API?

httpbin has endpoints that return any status code you ask for and that delay the answer, which lets you exercise retry and timeout code.

Other collections

Keep exploring