// Docs
Integrations.
Connect WillItTrack to your AI tools and automation workflows. Setup guides for Claude, ChatGPT, N8N, Lovable, and the REST API.
Claude (MCP)
WillItTrack is available as an MCP server for Claude Desktop, Claude Code, Cursor, and Windsurf. MCP gives Claude direct access to affiliate link checking tools.
Claude Desktop / Cursor / Windsurf
Add this to your MCP config file:
{
"mcpServers": {
"willittrack": {
"url": "https://api.willittrack.com/mcp",
"headers": {
"Authorization": "Bearer pg_live_your_key_here"
}
}
}
}Replace the key with your API key from the Settings page. Or remove the headers object for anonymous access (3 checks/week per type).
Claude Code
Use the WillItTrack plugin for Claude Code:
claude plugin add willittrack --url https://github.com/revenuestack/pathguard/tree/main/plugins/will-it-trackThen use /will-it-track https://your-link.com to check links directly from the terminal.
Claude.ai (Projects)
Claude.ai supports remote MCP servers in Projects. Add https://api.willittrack.com/mcp as a remote MCP server in your Project settings with your API key for authentication.
ChatGPT (Custom GPT with Actions)
Create a Custom GPT that can check affiliate links using ChatGPT Actions.
- 1Go to ChatGPT → Explore GPTs → Create
- 2In the Configure tab, click Create new action
- 3Click Import from URL and paste:https://api.willittrack.com/v1/openapi-actions.json
- 4Set authentication:
- Type: API Key
- Auth Type: Bearer
- Paste your
pg_live_...key
- 5Save and start using your GPT to check affiliate links in conversation.
Suggested conversation starters
- “Check if this affiliate link tracks: [paste URL]”
- “What's my credit balance?”
- “Get the dispute evidence for check abc123”
N8N
Use the HTTP Request node to call the WillItTrack API from N8N workflows. Build automated link health monitoring with alerts.
Setup credentials
- 1.In N8N, go to Credentials → Add Credential → Header Auth
- 2.Name:
Authorization, Value:Bearer pg_live_your_key
Example workflow: daily link check with alert
Schedule → HTTP Request (check link) → IF (willTrack = false) → Slack/Email alert
{
"nodes": [
{
"name": "Schedule",
"type": "n8n-nodes-base.scheduleTrigger",
"parameters": { "rule": { "interval": [{ "field": "days", "daysInterval": 1 }] } },
"position": [250, 300]
},
{
"name": "Check Link",
"type": "n8n-nodes-base.httpRequest",
"parameters": {
"method": "POST",
"url": "https://api.willittrack.com/v1/checks",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "url", "value": "https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678" }
]
}
},
"position": [470, 300]
},
{
"name": "Alert if broken",
"type": "n8n-nodes-base.if",
"parameters": {
"conditions": {
"boolean": [{ "value1": "={{ $json.data.willTrack }}", "value2": false }]
}
},
"position": [690, 300]
}
]
}Import this JSON into N8N via Workflow → Import from JSON. Add your credential to the HTTP Request node and connect a Slack or Email node to the IF output.
OpenAPI import (alternative)
N8N can import OpenAPI specs as custom HTTP nodes. Use the Actions-compatible spec:
Lovable
Lovable generates full-stack apps from prompts. Give it the API details and it will build the integration for you.
Example prompt for Lovable
Build a dashboard that checks affiliate links using the WillItTrack API.
API base: https://api.willittrack.com
Auth: Bearer token in Authorization header (API key format: pg_live_<uuid>)
Key endpoints:
- POST /v1/checks — body: { url, check_type: "link" | "cmp" }
- GET /v1/checks/{slug} — get a check result
- GET /v1/credits/balance — check credit balance
Response format: { data: { slug, healthScore, willTrack, network, issues[] } }TypeScript fetch example
If you need to show Lovable how to call the API:
const response = await fetch("https://api.willittrack.com/v1/checks", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer pg_live_your_key_here"
},
body: JSON.stringify({
url: "https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678"
})
});
const { data } = await response.json();
console.log(data.healthScore, data.willTrack);REST API (any language)
The WillItTrack API works with any HTTP client. Use the OpenAPI spec to generate client libraries in your preferred language.
| Resource | URL |
|---|---|
| Base URL | https://api.willittrack.com |
| OpenAPI Spec | https://api.willittrack.com/v1/openapi.json |
| Actions Spec (slim) | https://api.willittrack.com/v1/openapi-actions.json |
| Interactive Docs | https://api.willittrack.com/docs |
| MCP Endpoint | https://api.willittrack.com/mcp |
See the Getting Started guide for authentication, error handling, and rate limits.