n8n Integration
Use Mock66 to generate realistic test data for your automation workflows without hitting production databases.
Prerequisites
Before you begin, ensure you have:
- An active n8n instance(opens in a new tab) (Cloud or Self-hosted).
- A Mock66 project with at least one endpoint (e.g.,
/orders). - Optional: Your Mock66 API Key (if your project is protected).
Configuration Steps
Get your Endpoint URL
Go to your Mock66 Dashboard, find the endpoint you want to use, and copy the full URL.
https://proj_abc123.mock66.dev/ordersAdd HTTP Request Node
In your n8n canvas, search for the HTTP Request node and drag it into your workflow.
Configure the Request
Double-click the node to open settings. Fill in the following fields:
- Method:
GET - URL:Paste your Mock66 URL
- Auth:If protected, (the simplest option would be to) toggle Send Headers then in the Name field add
x-mock66-api-keyand in the Value field add your project's API Key.
- Method:
Execute Node
Click Execute Node. You should see the generated JSON data appear in the Output panel.
Workflow Tip: You can now map this data to subsequent nodes (like Google Sheets or Slack) to test your automation logic safely.