List External demands

List External demands

GET https://api.ocamba.com/v2/adex/external-demands
Returns a list of External demands

Tip

Searchable field is name. Sortable fields are: id, name, bid_regulator, create_time and update_time.

Filterable fields are: id, name, partner_id, status, create_time and update_time.

Rate limits:

  • Burst: 10/s
  • Steady: 150/m

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/external-demands" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/external-demands';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/adex/external-demands");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 314,
  "items": [
    {
      "id": "123",
      "company_id": "6543210",
      "partner_id": "74",
      "name": "External demand 1",
      "settings": [
        {
          "label": "feed_id",
          "type": "string",
          "required": "1",
          "possible_values": null,
          "value": "5"
        }
      ],
      "bid_regulator": 100,
      "status": "active",
      "sync_status": "0",
      "ipv6_support": "1",
      "create_time": "2022-05-15 11:16:50",
      "qps": {
        "am": 250000,
        "ny": 1000
      }
    }
  ]
}

400 Bad Request

{
  "code": 400,
  "title": "Bad request.",
  "message": "The request is not valid.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}

500 Internal Server Error

{
  "code": 500,
  "title": "Internal server error.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
Responses