Algeria news

FREEMIUM
By zecide | Updated a month ago | News, Media
Health Check

0%

README

Algeria News API Documentation

Overview

The Algeria News API is a dynamic source for the latest news related to Algeria, updated within minutes of new developments. It offers content in various categories and supports both Arabic and French languages, catering to a diverse audience.

Main Endpoint

  • Endpoint: /dz
  • Method: GET

Parameters

  • category (string, optional): Selects the news category. Defaults to “algerie” if not specified.
    • algerie: Algerian politics news
    • monde: Global news from an Algerian perspective
    • sport: Algerian sports news
    • societe: News about Algerian society
    • culture: Cultural news from Algeria
    • regions: News from different regions of Algeria
    • science: Scientific, health, and technology news from Algeria
  • lang (string, optional): The language of the news content. Can be either ar for Arabic or fr for French. Defaults to fr.

Response Details

  • Status Code: 200 OK
  • Content Type: application/json

The API response includes CORS headers to ensure wide accessibility:

  • Access-Control-Allow-Origin: “*”
  • Access-Control-Allow-Methods
  • Access-Control-Allow-Headers

Example Request

  • Fetching sports news in French: /dz?category=sport&lang=fr

Example Response

{
    "entries": [
        {
            "title": "Ligue des champions d'Afrique (4e J): début de la phase retour, le Gr A le plus indécis",
            "link": "https://www.aps.dz/sport/164165-ligue-des-champions-d-afrique-4e-j-debut-de-la-phase-retour-le-gr-a-le-plus-indecis",
            "published": "Mon, 18 Dec 2023 18:14:51 +0100",
            "summary": "..."
        },
        ...
    ]
},
Response headers:
{
  "Access-Control-Allow-Origin": "*",
  "Content-Type": "application/json",
  "X-Amzn-Trace-Id": "Root=1-6580973f-cce828b032cc9cfb2498eba5;Sampled=0;lineage=72af3d12:0"
}
Followers: 0
API Creator:
Rapid account: Zecide
zecide
zecide
Log In to Rate API
Rating: 5 - Votes: 1