# Affiliate network API for developers

> One REST API for the sales, clicks, programs and payouts of every affiliate network. Webhooks, MCP, BigQuery and a test mode on every plan.

Page: https://www.afffast.com/for/developers

For developers and data teams

# Every affiliate network, one API

Stop writing a client for each network API. Read every sale, click and payout in one shape, and get a webhook for each change. Make your first call in 5 minutes, with no network account.

[Read the docs](https://docs.afffast.com/docs)

Free for 14 days. No card needed. Cancel any time.

trailnotes.example· November

Sample data

[All networks](https://www.afffast.com/for/developers?demo=overview)

[By page](https://www.afffast.com/for/developers?demo=pages)

[Live events](https://www.afffast.com/for/developers?demo=events)

[Ask AI](https://www.afffast.com/for/developers?demo=ai)

[API](https://www.afffast.com/for/developers)

GET /v1/stats

Request

```
curl -g "https://api.afffast.com/v1/stats?group_by=network\
&date[gte]=2026-11-01&date[lte]=2026-11-30" \
  -H "Authorization: Bearer $AFFFAST_API_KEY"
```

Response · sample data

```
{
  "object": "stats",
  "group_by": ["network"],
  "currency": "EUR",
  "rows": [
    {
      "keys": { "network": "awin" },
      "conversions": 88,
      "commission": "1204.10"
    },
    {
      "keys": { "network": "adtraction" },
      "conversions": 61,
      "commission": "862.40"
    },
    ...
  ]
}
```

GET /v1/stats

## Works with the networks you already use

- 
- 
- 
- 
- 
- 
- 
- 
- 

Networks in one data model

9

Test mode with the Sandbox Network

Free

API, webhooks and MCP

All plans

01 / How it works

## Three steps to your data.

1. Make a test keyMake an API key in the dashboard. A test key starts with sk_test_ and reads test data only.
2. Connect the Sandbox NetworkIt makes fake sales and clicks, and it needs no credentials. Call the API and see the data.
3. Go liveConnect a real network and use a live key. The same calls read live data. Add a webhook endpoint for events.

Free for 14 days. No card needed. Cancel any time.

02 / What you get

## What matters to you.

- An API with clear rulesPrefixed IDs, cursor pagination, an Idempotency-Key header, a dated Api-Version header, rate-limit headers and typed errors.
  - [REST API](https://www.afffast.com/features/api)
  - [API reference](https://docs.afffast.com/reference)
- Signed webhooksGet an event when a sale arrives or changes. Each request follows the Standard Webhooks signature.
  - [Webhooks](https://www.afffast.com/features/webhooks)
  - [Guide: sales in seconds](https://www.afffast.com/guides/sales-in-seconds-postbacks)
- MCP serverEach API operation is a tool for your AI client. The key decides what the client can read and write.
  - [MCP server](https://www.afffast.com/features/mcp)
  - [Guide: ask your data in Claude](https://www.afffast.com/guides/ask-affiliate-data-in-claude)
- Test mode and the Sandbox NetworkBuild against fake data with a test key. Test data is never counted or billed. Test helpers make conversions on demand.
  - [Test mode](https://docs.afffast.com/docs/test-mode)
- BigQuery and Google SheetsSend each change of a conversion, a payout and a program to BigQuery. Or send them to a sheet.
  - [Destinations](https://www.afffast.com/features/destinations)
- CSV export that streamsSend Accept: text/csv to get all matching conversions or stats rows. The file streams from the database, so a large export needs little memory.
  - [API reference](https://docs.afffast.com/reference)

03 / The API

## Real calls, real data.

The paths and the parameters below are in the API reference. Use a test key to try them.

Two calls

Revenue by page, one month

```
curl -g "https://api.afffast.com/v1/stats?group_by=page\
&date[gte]=2026-11-01&date[lte]=2026-11-30" \
  -H "Authorization: Bearer $AFFFAST_API_KEY"
```

All conversions as a CSV file

```
curl -g "https://api.afffast.com/v1/conversions?bom=true" \
  -H "Accept: text/csv" \
  -H "Authorization: Bearer $AFFFAST_API_KEY" \
  -o conversions.csv
```

Use a test key first. A test key reads test data only. The amounts come in the currency of your workspace.

## Plans from €15 a month.

Every plan has the API, webhooks and MCP. Start with a free trial of 14-day.

[See the plans](https://www.afffast.com/pricing)

Questions

## Questions that you may have.

- **Is there a free plan for the API?** No. AffFast has no free plan. Every plan has the API, webhooks and MCP. Test mode is free and needs no plan. Each user also gets one trial of 14-day.
- **How do I check the signature of a webhook?** Each request follows the Standard Webhooks specification. Use a Standard Webhooks library, or the code in the docs. The webhook-signature header holds an HMAC-SHA256 signature of the ID, the time and the body.
- **Can I test without a real network account?** Yes. Use a test key and connect the Sandbox Network. It makes fake programs, clicks and conversions, and it needs no credentials. A test key can also make test conversions with POST /v1/test/conversions.
- **How do I use it with my AI tools?** The API has a hosted MCP server. Claude, ChatGPT, VS Code and Cursor connect with a sign-in. A script or another client can use an API key. A read-only key gets no write tools, and a test key reads test data only.
- **How large can a CSV export be?** A CSV export streams from the database. It starts at once and needs little memory, also for a large export. Use the filters of the endpoint to narrow it.
- **Will the API change under my code?** The URL has a major version, /v1. You can set a dated version with the Api-Version header. The changelog lists each dated version.

## Build on one API.

Start with a test key and the Sandbox Network.

[See pricing](https://www.afffast.com/pricing)

Free for 14 days. No card needed. Cancel any time.
