Offers
curl --request GET \
--url https://studio-api.onlytraffic.com/api/external/v1/cpc/offers \
--header 'X-API-Key: <api-key>'import requests
url = "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://studio-api.onlytraffic.com/api/external/v1/cpc/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://studio-api.onlytraffic.com/api/external/v1/cpc/offers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://studio-api.onlytraffic.com/api/external/v1/cpc/offers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 123,
"name": "<string>",
"marketer": {
"uuid": "27f029f3-3e07-42a6-82d3-e5fa3ef81880",
"display_name": "<string>",
"display_emoji": "<string>",
"registered_ago_days": 123,
"online": {
"ago": "<string>"
}
},
"description": "<string>",
"price": {
"min": 123,
"max": 123
},
"min_quantity": 123,
"max_quantity": 123,
"stats": {
"waiting": 123,
"active": 123,
"done": 123,
"rejected": 123
},
"speed": {
"total_per_day": 123
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 1,
"page_size": 50,
"total": 150,
"total_pages": 3,
"has_next": true
}
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}CPC
Offers List
Active CPC offers from partners.
GET
/
cpc
/
offers
Offers
curl --request GET \
--url https://studio-api.onlytraffic.com/api/external/v1/cpc/offers \
--header 'X-API-Key: <api-key>'import requests
url = "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://studio-api.onlytraffic.com/api/external/v1/cpc/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://studio-api.onlytraffic.com/api/external/v1/cpc/offers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://studio-api.onlytraffic.com/api/external/v1/cpc/offers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://studio-api.onlytraffic.com/api/external/v1/cpc/offers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": 123,
"name": "<string>",
"marketer": {
"uuid": "27f029f3-3e07-42a6-82d3-e5fa3ef81880",
"display_name": "<string>",
"display_emoji": "<string>",
"registered_ago_days": 123,
"online": {
"ago": "<string>"
}
},
"description": "<string>",
"price": {
"min": 123,
"max": 123
},
"min_quantity": 123,
"max_quantity": 123,
"stats": {
"waiting": 123,
"active": 123,
"done": 123,
"rejected": 123
},
"speed": {
"total_per_day": 123
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 1,
"page_size": 50,
"total": 150,
"total_pages": 3,
"has_next": true
}
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}{
"success": false,
"error": "validation_failed",
"message": "<string>",
"details": {},
"retry_after": 123
}Authorizations
Your API key from the Studio Dashboard
Query Parameters
Page number, 1-indexed.
Required range:
x >= 1Items per page. Default 50, max 100.
Required range:
1 <= x <= 100Filter to a single offer.
Required range:
x >= 1Filter to offers from a specific marketer.
Available options:
new, base, pro, expert Required range:
x >= 0Required range:
x >= 0Sort order. recommendation (default) ranks by 14-day delivered clicks.
Available options:
recommendation, added_desc, added_asc, price_asc, price_desc Was this page helpful?
⌘I