news

Get News

Retrieve a paginated list of Islamic finance and market news articles.

Returns news articles from all configured sources, optionally filtered by source, category, or free-text search query. Results are sorted by publication date (most recent first) and include sentiment scores.

curl example:

curl -X GET "http://localhost:8000/api/news?category=islamic_finance&page=1&page_size=10"

Python requests example:

import requests

resp = requests.get(
    "http://localhost:8000/api/news",
    params={"category": "islamic_finance", "page": 1, "page_size": 10},
)
data = resp.json()
for article in data["articles"]:
    print(article["title"], article["sentiment"])
get/api/news

Request

  • Base URL: https://api.halalterminal.com
  • URL: https://api.halalterminal.com/api/news
  • Auth: API key in header X-API-Key

Query parameters

sourcestring nullable

Filter by news source name.

categorystring nullable

Filter by article category.

qstring nullable

Free-text search query.

pageinteger

Page number, 1-indexed.

page_sizeinteger

Number of articles per page.

Response

Paginated list of news articles matching the filters

countinteger required

Number of articles in the current page

pageinteger required

Current page number (1-indexed)

page_sizeinteger required

Maximum number of articles per page

totalinteger required

Total number of articles matching the query

Example response

{
  "articles": [
    {
      "category": "islamic_finance",
      "link": "https://example.com/articles/aaoifi-sukuk-update",
      "published": "2026-03-20T14:30:00Z",
      "sentiment": "positive",
      "sentiment_score": 0.72,
      "source_id": "islamic_finance_news",
      "source_name": "Islamic Finance News",
      "summary": "Revised standards for Sukuk structuring released.",
      "title": "AAOIFI Updates Shariah Standards for Sukuk Issuance"
    }
  ],
  "count": 2,
  "page": 1,
  "page_size": 20,
  "total": 2
}

Changes

No recorded changes to this operation across all 1 revision of this API.