Skip to main content
GET
/
data
/
news
/
articles
List news articles
curl --request GET \
  --url https://api.lava.so/v1/data/news/articles \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.lava.so/v1/data/news/articles"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.lava.so/v1/data/news/articles', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.lava.so/v1/data/news/articles",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.lava.so/v1/data/news/articles"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.lava.so/v1/data/news/articles")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.lava.so/v1/data/news/articles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "articles": [
    {
      "publication": "<string>",
      "isPaywalled": true,
      "title": "<string>",
      "summary": "<string>",
      "tags": [
        "<string>"
      ],
      "author": "<string>",
      "originalUrl": "<string>",
      "archiveUrl": "<string>",
      "publishedAt": "2023-11-07T05:31:56Z",
      "source": "<string>"
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123
}
{
  "error": {
    "message": "Invalid authentication credentials",
    "code": "forward_token_json_invalid",
    "status": 400,
    "issues": [
      {
        "path": [
          "model"
        ],
        "message": "Missing required field: model"
      },
      {
        "path": [
          "messages",
          "0",
          "content"
        ],
        "message": "Invalid message content format"
      }
    ]
  }
}
{
  "error": {
    "message": "Invalid authentication credentials",
    "code": "forward_token_json_invalid",
    "status": 400,
    "issues": [
      {
        "path": [
          "model"
        ],
        "message": "Missing required field: model"
      },
      {
        "path": [
          "messages",
          "0",
          "content"
        ],
        "message": "Invalid message content format"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'

Query Parameters

publication
string

Comma-separated publication slugs to filter by (e.g. nytimes,wsj)

tag
string

Comma-separated tags to filter by (e.g. technology,business)

q
string

Case-insensitive keyword search across article title and summary. Tokens are split on whitespace and every token must appear in the title or summary (order-independent). Wildcards and operators are not supported — each token is matched literally.

Maximum string length: 200
since
string<date-time>

ISO 8601 date string. Only articles published after this date are returned. Defaults to 24 hours ago.

limit
integer
default:50

Page size (default 50, max 200)

Required range: 1 <= x <= 200
offset
integer
default:0

Pagination offset (default 0)

Required range: x >= 0

Response

Paginated list of articles

articles
object[]
total
integer
limit
integer
offset
integer