Affiliate API
For affiliate users. Every call only returns your own data: the offers you are approved on and your own traffic.
Access. The Network approves each account. Ask for it at /my-profile/api-keys; until it is approved every call answers 403 access_not_approved. The Network chooses which groups below your keys can call. Identity, Reference and Parties are always included. GET /me returns token.scopes: what this key can really do right now. If the Network changes or revokes your access, it applies on the next call.
https://YOUR-NETWORK-DOMAIN/api/v1Use the domain of the network you work with. New here? Start with the quickstart.
All endpoints
- GET/meThe token owner, the account it acts for and what the token may do.
- GET/reference/currenciesList currencies.
- GET/reference/countriesList countries.
- GET/reference/payout-typesList active payout types (CPA / CPL / RevShare / …).
- GET/reference/statusesList the status catalog (shared across many tables).
- GET/reference/categoriesList categories (IAB).
- GET/reference/marketing-channelsList marketing channels (email, social, search, …).
- GET/reference/creative-typesList creative types (image banner, text link, HTML, …).
- GET/affiliatesList affiliates.
- GET/affiliates/{id}Fetch one affiliate.
- GET/advertisersList advertisers.
- GET/advertisers/{id}Fetch one advertiser.
- GET/traffic-sourcesList traffic sources.
- GET/traffic-sources/{id}Fetch one traffic source.
- GET/offersList live offers.
- GET/offers/availableList the offers an affiliate could ask for.
- GET/offers/{id}Fetch a single offer.
- GET/offers/{id}/urlsList the landing pages of an offer.
- GET/offers/{id}/creativesList the creatives of an offer.
- GET/offers/{id}/creatives/{creative_id}Fetch one creative, with its HTML.
- GET/offers/{id}/payoutsList what an offer pays.
- GET/creativesFind creatives across offers.
- GET/offers/{id}/eventsList the events of an offer.
- GET/tracking-linksBuild tracking links (click and impression) for an affiliate.
- GET/offers/{id}/access-requestYour access status for an offer.
- POST/offers/{id}/access-requestRequest access to an offer.
- GET/stats/generalRolled-up KPIs: clicks, conversions, money, CR, approval rate.
- GET/stats/clicksClick counts by day, offer, affiliate, country, device, creative or sub id.
- GET/stats/conversionsConversion counts and money by day, offer, affiliate, country, device, creative or sub id.
- GET/clicksPaginated per-click list.
- GET/clicks/{click_id}Fetch one click.
- GET/conversionsPaginated list of conversions.
- GET/conversions/{id}Fetch one conversion.
- GET/invoicesList invoices.
- GET/invoices/summaryTotals of invoices.
- GET/invoices/{id}Fetch one invoice, with its lines.
Identity
Who the token belongs to and what it may do. Open to every key.
The token owner, the account it acts for and what the token may do.
Call this first. token.scopes lists what this key can really do; affiliate_id / advertiser_id say which record it acts for (both null for Network keys).
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/me" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Reference
Small lookup lists (currencies, countries, payout types, statuses, categories, marketing channels, creative types). Open to every key.
List currencies.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/currencies" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List countries.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/countries" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List active payout types (CPA / CPL / RevShare / …).
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/payout-types" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List the status catalog (shared across many tables).
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/statuses" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List categories (IAB).
What offers and traffic sources are classified with.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/categories" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List marketing channels (email, social, search, …).
What a traffic source is, and what an offer accepts.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/marketing-channels" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List creative types (image banner, text link, HTML, …).
source says where the asset of that type is: a url or HTML code.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/creative-types" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Parties
Affiliates and advertisers, their users and traffic sources. Each role sees its own record in full and the other side without contact details.
List affiliates.
search looks in the company name (and, for Network keys, the email).
Returns your own record, with all fields.
Always included: no grant needed.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Fetch one affiliate.
Returns your own record, with all fields.
Always included: no grant needed.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List advertisers.
search looks in the company name (and, for Network keys, the email).
Returns the advertisers of the live offers you are approved on, when the offer names its advertiser. Fields for a company on the other side: id, company_name, country_id, status_id. Contact details stay with the Network.
Always included: no grant needed.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Fetch one advertiser.
Only the advertiser of an offer you are approved on that names its advertiser; anything else answers 404. Fields for a company on the other side: id, company_name, country_id, status_id. Contact details stay with the Network.
Always included: no grant needed.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList traffic sources.
Where an affiliate's traffic comes from (a site, a newsletter, a social account). country_ids and category_ids point at the Reference lists.
Only your own sources.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
marketing_channel_id | query | integer | See /reference/marketing-channels. |
status_id | query | integer | See /reference/statuses. |
search | query | string | Name or URL contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFetch one traffic source.
Only one of your own sources.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Offers
Offers, their landing pages, creatives and payouts, and tracking links.
read:offersList live offers.
Only the offers you are approved on. advertiser_id is null when the offer does not name its advertiser. The offers you could still ask for are on /offers/available.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Offer name contains. |
category_id | query | integer | See /reference/categories. |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
country_id | query | integer | Offers a visitor from this country can be sent to. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList the offers an affiliate could ask for.
The marketplace: live offers the affiliate is not running yet, that accept at least one marketing channel it has a traffic source for. can_request is false for private offers, which need an invite; ask for the others with POST /offers/{id}/access-request.
Empty until you have a traffic source.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Offer name contains. |
category_id | query | integer | See /reference/categories. |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
country_id | query | integer | Offers a visitor from this country can be sent to. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/available" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFetch a single offer.
Only a live offer you are approved on.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList the landing pages of an offer.
Each one comes with tracking_url, your own link to that landing page. redirect_url is not returned.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/urls" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList the creatives of an offer.
url is where the file is (or, for a text link, where it leads). has_code says there is HTML to fetch with the next endpoint. Types are in /reference/creative-types.
Each one comes with tracking_url, the link to run that creative with.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFetch one creative, with its HTML.
code is ready to publish: every link in it is already your own tracking link.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer | |
creative_idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList what an offer pays.
One row per event of the offer (offer_event_id is null for an offer with a single event). Types are in /reference/payout-types.
What you earn: your own rate where the Network gave you one (is_custom), the default otherwise. Revenue is never returned.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/payouts" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFind creatives across offers.
The same creatives the per-offer list returns, without having to know the offer. The HTML of one is on /offers/{id}/creatives/{creative_id}.
Only active creatives of the offers you are approved on, each with its tracking_url.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
offer_id | query | integer | |
type_id | query | integer | See /reference/creative-types. |
search | query | string | Creative name contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/creatives" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList the events of an offer.
What can be reported as a conversion on this offer (a lead, a sale, a deposit…). slug is what a postback sends as e=; id is the offer_event_id of payouts and conversions. Empty for an offer with a single kind of conversion.
With the base payout of each event. Revenue is never returned.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/events" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersBuild tracking links (click and impression) for an affiliate.
Uses the offer's custom tracking hostname when configured. Pass offer_id or offer_ids=1,2,3. subs 1-5 pass through.
A link has two shapes: full (/c?o=..&a=..) and short (/c/<code>). The impression pixel has the same two (/i?o=..&a=.. and /i/<code>). The Network chooses which ones are handed out, for clicks and impressions together: meta.link_format is short, full or both.
Per offer, url and impression_url are the links to use (the short ones whenever short links are handed out). short_url, full_url, impression_short_url and impression_full_url hold each shape and are null for a shape that is not handed out. A link keeps working once issued, in either shape, whatever is chosen later.
Always built for your own affiliate.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
offer_id | query | integer | |
offer_ids | query | string | Comma-separated ids. |
s1 | query | string | |
s2 | query | string | |
s3 | query | string | |
s4 | query | string | |
s5 | query | string |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/tracking-links" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Access
Which affiliate may run which offer.
read:offersYour access status for an offer.
status is one of none, pending, approved, revoked.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access-request" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
write:accessRequest access to an offer.
Only public offers can be self-requested: private offers need an invite.
Needs write:access, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access-request" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
201 | Pending created |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Reporting
Aggregated stats and raw click / conversion lists.
read:statsRolled-up KPIs: clicks, conversions, money, CR, approval rate.
Flat totals by default. Pass group_by=offer to split by offer, offer_id to look at one offer.
Only your own traffic. payout is what you earn; revenue is never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | One of: offer. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/general" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsClick counts by day, offer, affiliate, country, device, creative or sub id.
Only your own traffic.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/clicks" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsConversion counts and money by day, offer, affiliate, country, device, creative or sub id.
Only your own traffic. payout is what you earn; revenue is never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/conversions" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsPaginated per-click list.
Default window is the last 24 h because click rows are high-volume. Pass explicit dates to widen. status_id=4 lists the clicks that were refused, each with its rejection_reason.
Only your own traffic. advertiser_id is null when the offer does not name its advertiser. The fraud score and the rules a click tripped are not returned; a click refused by fraud detection has rejection_reason fraud.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
status_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsFetch one click.
click_id is the id handed to the advertiser on the redirect, the one a postback sends back.
Only your own clicks. advertiser_id is null when the offer does not name its advertiser. The fraud score and the rules a click tripped are not returned; a click refused by fraud detection has rejection_reason fraud.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
click_idrequired | path | string |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsPaginated list of conversions.
Pass tx_id or click_id to find one conversion by the advertiser's transaction id or by the click it came from. status_id=1 lists the conversions still waiting for approval.
Only your own traffic. payout is what you earn; revenue is never returned. advertiser_id is null when the offer does not name its advertiser.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
status_id | query | integer | One of: 1, 2, 4. |
tx_id | query | string | The advertiser's transaction id. |
click_id | query | string | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsFetch one conversion.
Only your own traffic. payout is what you earn; revenue is never returned. advertiser_id is null when the offer does not name its advertiser.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Invoices
Invoices of affiliates and advertisers.
read:invoicesList invoices.
An invoice is for an affiliate (what the Network pays it) or for an advertiser (what the Network charges it): type says which. status_id here is the invoice's own: 1 draft, 2 finalized, 3 cancelled.
Only your own invoices, once they are finalized.
Needs read:invoices, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:invoicesTotals of invoices.
One row per type, status and currency: how many invoices and the sums of subtotal, VAT and total. Takes the filters of the list. Amounts in different currencies are never added together.
Only your own finalized invoices.
Needs read:invoices, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
format | query | string | csv returns the same rows as a file to download. One of: json, csv. Default json. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/summary" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:invoicesFetch one invoice, with its lines.
Only one of your own finalized invoices.
Needs read:invoices, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |