API2 LABS / PROJECT 01

Mock APIs without the setup.

API2 Mock is a small, stateless HTTP utility for prototypes, demos and integration tests. Echo requests, generate JSON, test status handling and inspect headers — no account required.

curl https://api2.win/api/mock?status=200&body=%7B%22hello%22%3A%22world%22%7D
ZERO-CONFIG ENDPOINTS

Useful primitives. Predictable responses.

ANY

/api/echo

Returns method, headers, query parameters and request body.

POST /api/echo
GET

/api/mock

Choose a status code and response body directly in the URL.

?status=201&body={"ok":true}
GET

/api/status/:code

Return a chosen HTTP status for testing error handling.

/api/status/404
GET

/api/uuid

Generate a UUID using the runtime's cryptographic UUID generator.

/api/uuid
GET

/api/time

Return the current server-side ISO timestamp and Unix time.

/api/time
GET

/api/random

Generate a short array of random numbers for test fixtures.

/api/random?count=5&max=100
PLAYGROUND

Make a live request.

This calls the same API served from this domain.

Select an endpoint and run it.
ABOUT API2 LABS

Small developer tools with simple interfaces.

API2 Labs is an independent software project building practical developer utilities, experiments and open-source tools. API2 Mock is the first project.

API2 Mock has no application database and does not intentionally persist request payloads. Do not send secrets or sensitive personal data to public test endpoints.