API

You are here:
< Back

1) Get started.

Api token can be retrieved on “Account->Api Settings” page.

You can add token in two ways:

– through get parameter ?token=yourtoken

– through Authorization header Bearer yourtoken

2) Routes
The main route of all requests:

https://app.indoleads.com/api


2.1. Get offers

Route: /search_offers

Type: GET

Parameters:

NameValuesDescription
domainFilter offers by website url.
urlDeep link that will be added to tracking link
p1Custom parameter #1 that will be added to tracking link
p2Custom parameter #2 that will be added to tracking link
p3Custom parameter #3 that will be added to tracking link
p4Custom parameter #4 that will be added to tracking link
publisherIdOnly for network and advertiser roles. Sets publisher for offer tracking link

 

Fields:

NameValuesDescription
idOffer id
titleOffer title
preview_urlOffer website preview link
logoOffer logo link
typecps, cpa, cpiOffer types
tracking_linkOffer tracking link, that should be placed for traffic generating
geoCountry codesCountries, in which this offer is available

 

2.2. Get conversions report

Route: /conversions

Type: GET

Parameters:

NameValuesDescriptionExampleRequired
startDateStart date filter

format 2018-07-27

startDate=2018-07-27Yes
endDateEnd date filter

format 2018-07-27

endDate=2018-07-27Yes
limitConversion limit for one request

Default limit is 1000 conversions

max limit is 1000

min limit is 1

limit=300No
pageif count of conversions are more than your Limit use pagepage=2No
ConversionIdGet only by this parameterNo
ClickIdGet only by this parameterNo
statuspending, declined, approved, overagedNo
offerFilter by offers,

set offer ides by comma

offer=1,2,3No

 

Fields:

NameValuesDescription
conversion_idconversion id
offer_idoffer id
dateconversion date
statusconversion status
createdconversion created in timestamp
currencyconversion currency
payoutpayout
payout_usdpayout usd
sale_amountsale amount
offer_titleoffer title
click_timeclick time

 

2.3. Get offers

Route: /getOffers

Type: GET

Parameters:

NameValuesDescriptionExampleRequired
typecps, cpa, cpitype=cpsNo
categoryfilter by category namecategory=nameOfCategoryNo
statusinactive, all, activeOffer status. Default value is active No
searchsearch by offer title, offer description and offer url.No
geogeo of ISO 3166-1 alpha-2 format

https://gist.github.com/vxnick/380904

Set geos by comma

geo=AI,AFNo

 

Fields:

NameValuesDescription
idoffer id
statusoffer status
website_urlOffer website preview link
statusOffer status
categoryOffer category
geoCountries, in which this offer is available
tracking_linkIf publisher send request

get publisher’s tracking_link

typeOffer types
deeplinktrue/falseoffer deeplink
hold_periodhold period
cookie_lifetimecookie lifetime
traffic_restrictionstraffic names
logoOffer logo link
bannersbanners
landing_pageslanding pages

 

2.4. Get offer

Route: /getOffer/{id}

Type: GET

Parameters:

NameValuesDescriptionExampleRequired
idOffer idYes

 

Fields:

NameValuesDescription
idoffer id
statusoffer status
website_urlOffer website preview link
statusOffer status
categoryOffer category
geoCountries, in which this offer is available
tracking_linkIf publisher send request

get publisher’s tracking_link

typeOffer types
deeplinktrue/falseoffer deeplink
hold_periodhold period
cookie_lifetimecookie lifetime
traffic_restrictionstraffic names
logoOffer logo link
bannersbanners
landing_pageslanding pages