Quick Start Tutorial
Get started with FakeURL in just 5 minutes
The simplest way to use FakeURL is to request a status code:
GET https://fakeurl.dev/200
This returns a 200 OK response with an empty JSON object {}
Try it yourself:
curl https://fakeurl.dev/200
Simulate slow networks by adding a delay parameter (in milliseconds):
GET https://fakeurl.dev/200?delay=2000
This waits 2 seconds before responding. Perfect for testing loading states!
Use case:
Test your loading spinners, skeleton screens, or timeout handling
Return your own JSON data using the json parameter:
GET https://fakeurl.dev/200?json={"userId":1,"name":"John","email":"john@example.com"}
The response will contain exactly the JSON you specified
💡 Tip:
Use the web UI at fakeurl.dev to generate URLs automatically without worrying about encoding!
Add custom HTTP headers to the response:
GET https://fakeurl.dev/200?headers=X-Rate-Limit:100,X-Rate-Remaining:95
Headers are comma-separated key:value pairs
Common use cases:
- • Test rate limiting headers
- • Mock authentication tokens
- • Simulate CORS headers
Combine status code, delay, JSON, and headers in one URL:
GET https://fakeurl.dev/201?delay=1000&json={"created":true,"id":42}&headers=X-Request-ID:abc123
This simulates creating a resource: 201 status, 1s delay, success JSON, and tracking header
FakeURL works with all HTTP methods:
POST https://fakeurl.dev/201
PUT https://fakeurl.dev/200
DELETE https://fakeurl.dev/204
All methods use the same URL configuration - just change the HTTP method in your request
Now you know how to use FakeURL for API mocking. Here's what to explore next: