Mock API Generator

Create custom mock REST APIs instantly. Generate fake endpoints with dynamic data, custom responses, and shareable URLs. Perfect for frontend development, testing, and prototyping.

Examples:
Tab, Enter = indent

💡 Syntax Help (Data will be randomized on each API call):

Placeholders:

  • {{uuid}} - UUID
  • {{faker.name}} - Random name
  • {{faker.email}} - Random email
  • {{datetime}} - ISO datetime
  • {{random.number}} - Random number

Multiply Array:

Input:

{
  "users{{x3}}": [
    { "id": "{{uuid}}" }
  ]
}

Output:

{
  "users": [
    { "id": "a1b2..." },
    { "id": "c3d4..." },
    { "id": "e5f6..." }
  ]
}
{
  "message": "Hello from Anytools, this is Mock API!",
  "timestamp": "{{datetime}}"
}

What is Mock API Generator?

Mock API Generator is a powerful free tool that allows developers to create custom mock APIs instantly. Perfect for frontend development, testing, prototyping, and demos without needing a real backend server.

Create REST API endpoints that return custom JSON responses, simulate delays, errors, and various HTTP status codes. Share your mock APIs with teammates or keep them private. All mock APIs are accessible via unique URLs that can be called from any application.

Key Features

  • Create custom REST API endpoints with any HTTP method (GET, POST, PUT, DELETE, PATCH)
  • Define custom response body in JSON format with dynamic data placeholders
  • Set custom HTTP status codes and response headers
  • Simulate network delays for realistic testing scenarios
  • Share mock APIs with unique URLs or keep them private
  • Dynamic data generation with Faker.js-like syntax (names, emails, UUIDs, etc.)
  • Authentication simulation with API keys or Bearer tokens
  • Rate limiting and request logging

How to Use Mock API Generator

  1. Enter a name and optional description for your mock API
  2. Choose the HTTP method (GET, POST, PUT, DELETE, PATCH)
  3. Define your custom endpoint path (e.g., /users, /products/:id)
  4. Write your JSON response body or use dynamic placeholders
  5. Set optional response delay, status code, and headers
  6. Click 'Create Mock API' to generate your endpoint
  7. Copy the generated URL and use it in your application

Common Use Cases

🎨 Frontend Development

Frontend development without backend - Build UI while APIs are being developed

🧪 API Testing

Testing API integrations - Simulate various response scenarios

📊 Prototyping

Prototyping and demos - Create quick mockups for presentations

❌ Error Handling

Error handling testing - Simulate 400, 404, 500 errors

⚡ Performance Testing

Performance testing - Test how your app handles slow responses

🔔 Webhooks

Webhook development - Create endpoints to receive webhook calls

Why Choose Mock API Generator?

🚀

Lightning Fast

Create mock APIs in seconds, no complex setup required

💰

100% Free

Unlimited mock APIs, no signup required

🔗

Easy Sharing

Share mock APIs with teammates via a single link

Frequently Asked Questions

How long do mock APIs last?

Free mock APIs are stored for 30 days from the last request. If not used for 30 days, they will be automatically deleted. Premium accounts have unlimited retention.

Can I use mock APIs in production?

Mock APIs are designed for development and testing. While they can be used in production for simple use cases, we recommend using a proper backend for production applications.

Is there a rate limit?

Free accounts have a limit of 1000 requests per day across all mock APIs. Premium accounts have higher limits. You can also set custom rate limits per mock API.

Can I create webhooks with mock APIs?

Yes! Create a mock API with POST method and use it as a webhook endpoint. You can view all received requests in the request logs.

How do dynamic placeholders work?

When your mock API is called, placeholders like {{uuid}} or {{faker.name}} are replaced with dynamically generated values. Each request returns different random data.

Related Tools