View List

View List

GET https://api.ocamba.com/v2/adex/lists/{id}

Retrieves the details of a List that has previously been created if a valid identifier was provided

Path parameters

parameters

Query parameters

parameters

Response schemas

GET https://api.ocamba.com/v2/adex/lists/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/adex/lists/{id}" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/adex/lists/{id}", {
  method: "GET",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/lists/{id}");
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

HTTP/1.1 200 OK
Content-Type: application/json

{
  "total": 10,
  "items": [
    {
      "id": "2345",
      "company_id": "1234123",
      "account_id": "1234123",
      "name": "demo_list",
      "type": "country",
      "items": {
        "country": "RS,DE,JP,GB",
        "category": "IAB1,IAB11,IAB3",
        "domain": "example.domain.com,another.example.com",
        "ip": "192.168.0.1,1.1.1.1,192.168.0.15/28,1.2.3.4,2001:0db8:85a3:33a1:ff12:8a2e:0370:7334/23,2301:0db2:84a3:34a1:ff42:8a1e:0270:7324",
        "keyword": "keyword01!\\|keyword02_%,example_keyword|another_example",
        "subid": "subid_1,subid2,sub_id_3",
        "zone": "1314550,1445589,1332565",
        "region": "292969,3183560,7581800"
      },
      "campaign_count": 13,
      "zone_count": 10,
      "create_time": "2021-10-29 12:47:00",
      "update_time": "2021-10-30 14:27:26"
    }
  ]
}
Responses
Tip
1
If you don’t know the list id, list the lists to find it.