Developer API
Use Dounia News headlines and short summaries in your site or app, with a personal key and a daily quota.
Getting started
Send the key in the Authorization header. The X-Quota-Limit and X-Quota-Remaining headers tell you what is left.
curl -H "Authorization: Bearer dnk_…" \
"https://news.dounia.net/partners/v1/articles?lang=fr"import requests
r = requests.get(
"https://news.dounia.net/partners/v1/articles",
headers={"Authorization": "Bearer dnk_…"},
params={"lang": "fr"},
timeout=10,
)
print(r.headers["X-Quota-Remaining"], r.json()["attribution"])const r = await fetch("https://news.dounia.net/partners/v1/articles?lang=fr", {
headers: { Authorization: "Bearer dnk_…" },
});
console.log(r.headers.get("X-Quota-Remaining"), (await r.json()).attribution);Calls made too close together may be slowed down. Full reference: OpenAPI
What’s new
Version 1: articles, stories, categories, tags, sources and trends.