API documentation GET /offers
Get the list of offers with optional filters.
GET https://demo.trafficmanager.com/api/v1/offers
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key
: Your API key, found in the Security pagex-user-id
: Your User ID, found in the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
GET Parameters:
- Optional:
mainCategory
: offer's main category IDcountries
: countries selected for the offer (country codes)accessGranted
: if set, only the offers where the affiliate has access to will be returned (in other words, the offers with "apply needed" will be excluded unless the user has applied and the application has been accepted)ids
: comma-separated list of offer IDs
Returned values:
id
: offer IDname
: offer namedescription
: offer full HTML description as it appears in the Marketplaceimage
: offer imagecategory
: the main category of the offercountries
: Array of country codes for which the offer accepts trafficvisibility
: offer visibility (1: public, 2: apply needed, 3: private)is_featured
: whether the offer is featured or nottags
: offer tagspayout_mode
: offer payout modepayout
: offer payout (numeric)url
: offer tracking links-
all
: for all the landing pageslp
: for each lp (in case the offer has more than one)lpNames
: lp names
Request example
GET https://demo.trafficmanager.com/api/v1/offers?countries[1]=AD&countries[2]=RO&mainCategory=1&accessGranted=1
Response example
{ "offers": [ { "id": 9, "name": "New offer", "description": "Description1", "image": "https://static.trafficmanager.com/offers/screenshots/5f7f0308c89da.jpeg", "category": "Adult", "countries": [ "US" ], "visibility": 1, "is_featured": 0, "tags": "", "payout_mode": "CPA", "payout": 12, "url": { "all": "https://offers.trafficman.io/?offer=9&uid=6672616e-6365-7363-6f2d-6c6f6b6b6100", "lp": { "9": "https://offers.trafficman.io/?offer=9&uid=6672616e-6365-7363-6f2d-6c6f6b6b6100&lp=9" }, "lpNames": { "9": "Default" } } }, { "id": 8, "name": "Offer XYZ", "description": "Full description of the offer", "image": "", "category": "Adult", "countries": [ "RO" ], "visibility": 2, "is_featured": 0, "tags": "", "payout_mode": "CPA", "payout": 0, "url": { "all": "https://offers.trafficman.io/?offer=8&uid=6672616e-6365-7363-6f2d-6c6f6b6b6100", "lp": { "8": "https://offers.trafficman.io/?offer=8&uid=6672616e-6365-7363-6f2d-6c6f6b6b6100&lp=8" }, "lpNames": { "8": "Default" } } } ], "status": 200 }