Introduction to Awin's APIs

Next

Plan availability

Advertiser APIs are available only for Awin Accelerate and Advanced customers.

Welcome to our API documentation. This guide explains how to connect to Awin’s APIs so you can automate tasks and get more out of your affiliate marketing work.

What is an API?

An API (Application Programming Interface) lets two different computer systems share information automatically, without anyone typing data in by hand.

If you want to connect your own systems to Awin, or automate tasks you currently do by hand, an API can help.

What can you do with our APIs?

Awin’s APIs let advertisers and publishers pull data, such as transactions and reports, and create items on our platform, such as promotions.

Why are there two API documentation sections?

We’re introducing a new generation of public APIs. Most new endpoints add functionality that wasn’t available before. Over time, they will replace our Legacy APIs.

When a newer version of a legacy endpoint is available, we’ll link to it at the top of that endpoint’s documentation.

Don’t have a developer? Try Zapier

You don’t need a developer to use most of our APIs. Zapier offers an easy, user-friendly way to connect to Awin without writing any code.

Learn more in our guide to integrating APIs with Zapier.

Getting started: the basics

Base URLs

With the introduction of a new generation of public APIs, we have two version of base URLs.

You will also be able to find the full URL for each endpoint inside their respective article.

Base URL for the most recent APIs

This should be used on any APIs under the Our APIs section.

https://api.awin.com/public/

Base URL for the legacy APIs

This should be used on any APIs under the Legacy APIs section.

https://api.awin.com

Getting access

Before you can use our APIs, you need a token. You can get yours from the Awin platform.

Most APIs use a method called Bearer token authentication. A few use an API key instead. Each API’s documentation page tells you which method it uses.

Visit our authentication page for step-by-step instructions on setting up either method.

Using “Try it”

Our documentation includes a “Try it” feature so you can test API calls yourself. To use it, you’ll need a token (see above). Read our guide to creating a token if you need help.

For developers

Our APIs follow REST principles and return data in JSON format by default. Most use OAuth2 for authentication; some use API keys instead, as noted on each API’s page.

See our authentication page for more details.

Limits to be aware of

Our APIs: The default rate limit is 5 requests per second, per user. Spread your requests out rather than sending them all at once. For example, 20 requests should go out over about 4 seconds.

If you go over the limit, the API returns a 429 Too Many Requests response with a Retry-After header showing how many seconds to wait. Wait that long, then send the request again. See our [response codes](link to response codes article).

Legacy APIs: The default rate limit is 20 API calls per minute, per user. Limits for Our APIs and Legacy APIs are counted separately.

HTTPS only: We only support secure HTTPS connections. HTTP requests won’t work.