List External demands

List External demands

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

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
      }
    },
    {
      "id": "321",
      "company_id": "6543210",
      "partner_id": "108",
      "name": "External demand 2",
      "settings": [
        {
          "label": "feed_id",
          "type": "string",
          "required": "1",
          "possible_values": null,
          "value": "5"
        }
      ],
      "bid_regulator": 70,
      "status": "active",
      "sync_status": "0",
      "ipv6_support": "1",
      "create_time": "2022-05-17 11:55:19"
    }
  ]
}
Responses
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.