Skip to main content
Every request to the Affiliate.com API must include an API token. You create and manage tokens at app.affiliate.com. Tokens are scoped to your team account, so all members of your team share the same rate limits.

Pass your token

Include your token in the Authorization header as a Bearer token:
For example, a complete request looks like this:
Keep your API token secure. Never expose it in client-side code, browser-accessible JavaScript, or public code repositories. If a token is compromised, rotate it immediately from app.affiliate.com.

Authentication errors

If your token is missing, malformed, or invalid, the API returns:
Check that you’re including the Authorization header and that the token value is correct.

Rate limit errors

Rate limits are measured per API key. Your per-minute limit depends on your subscription. If you receive a 429, wait before retrying. If you receive a 422, you’ve exhausted your plan’s request quota.

Network-specific credentials

Some affiliate networks require additional parameters beyond your API token to return affiliate links. You supply these inside the networks object when calling the product search endpoint. If you provide a network object but omit required fields, the API returns a 422 error listing the missing items. Here’s how to supply network credentials in a product search request:
For most other networks, you only need to supply affiliate_id and optionally sub_id.