API
Properties and placements
A property is one of your sites, apps or channels. A placement is one ad spot inside it — each has its own key (pk_live_…).
List placements
GET /reports/placements
Scope read (publisher key). Newest first, each with its property. format=csv gives CSV.
curl "https://api.halaladz.com/api/v1/reports/placements?limit=100" \
-H "Authorization: Bearer $HALALADZ_KEY"const res = await fetch("https://api.halaladz.com/api/v1/reports/placements?limit=100", {
headers: { Authorization: `Bearer ${process.env.HALALADZ_KEY}` },
});
const { items, nextCursor } = await res.json();<?php
$ch = curl_init('https://api.halaladz.com/api/v1/reports/placements?limit=100');
curl_setopt_array($ch, [CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('HALALADZ_KEY')], CURLOPT_RETURNTRANSFER => true]);
$page = json_decode(curl_exec($ch), true);
// $page['items'], $page['nextCursor']import os
import requests
r = requests.get(
"https://api.halaladz.com/api/v1/reports/placements",
params={"limit": 100},
headers={"Authorization": f"Bearer {os.environ['HALALADZ_KEY']}"},
timeout=30,
)
page = r.json() # page["items"], page["nextCursor"]{
"items": [
{ "id": 310, "name": "Under the article", "format": "banner_300x250", "status": "active",
"createdAt": "2026-11-20T09:12:00.000Z",
"property": { "id": 77, "name": "Dhaka Tech Blog", "kind": "website", "status": "approved" } }
],
"nextCursor": null
}Earnings by property and placement
GET /reports/earnings?propertyId=77
Each row is one day and one placement. Filter with propertyId or placementId. Reports API.
Where placement keys are
Dashboard → Placements & ad code. A placement key (pk_live_…) is not secret — it sits in your page code. An API key (hz_live_…) is secret — they are different things. Placing the code.