/api/echo
Returns method, headers, query parameters and request body.
POST /api/echo
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
Returns method, headers, query parameters and request body.
POST /api/echo
Choose a status code and response body directly in the URL.
?status=201&body={"ok":true}
Return a chosen HTTP status for testing error handling.
/api/status/404
Generate a UUID using the runtime's cryptographic UUID generator.
/api/uuid
Return the current server-side ISO timestamp and Unix time.
/api/time
Generate a short array of random numbers for test fixtures.
/api/random?count=5&max=100
This calls the same API served from this domain.
Select an endpoint and run it.
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.