Skip to main content
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

X-API-Key
string
header
required

Your API key from the Studio Dashboard

Query Parameters

page
integer
default:1

Page number, 1-indexed.

Required range: x >= 1
page_size
integer
default:50

Items per page. Default 50, max 100.

Required range: 1 <= x <= 100
id
integer

Filter to a single offer.

Required range: x >= 1
marketer_uuid
string<uuid>

Filter to offers from a specific marketer.

partner_level
enum<string>
Available options:
new,
base,
pro,
expert
min_price
number
Required range: x >= 0
max_price
number
Required range: x >= 0
sort
enum<string>
default:recommendation

Sort order. recommendation (default) ranks by 14-day delivered clicks.

Available options:
recommendation,
added_desc,
added_asc,
price_asc,
price_desc

Response

Successful response

success
boolean
Example:

true

data
object[]
pagination
object

Page-based pagination, returned by every list endpoint that isn't a cursor feed.