Find an API

Search public APIs with auth details & Postman guides

← All APIs

Top Stories

nytimes · Media

Media No Auth Free & Open media open_data

The Top Stories API provides lists of articles and associated images by section.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Top Stories

The Top Stories API returns a list of articles and associated images currently on the specified section. Support JSON and JSONP.

https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}?callback=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}?callback=example"
import requests
params = {
    "callback": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}');
url.searchParams.set('callback', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}")
	q := baseURL.Query()
	q.Set("callback", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}")
uri.query = URI.encode_www_form({
  "callback" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/nytimes.com/top_stories/2.0.0/{section}.{format}?" . http_build_query([
    "callback" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Top Stories?

Top Stories is a Media API. Developers commonly use media APIs for:

  • storing and delivering images, video, and audio
  • building digital asset management and media libraries
  • transcoding and optimising media for the web
  • adding video streaming and playback to your app
  • automating content tagging and metadata extraction

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Top Stories is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗