Find an API

Search public APIs with auth details & Postman guides

← All APIs

Archive API

nytimes · Media

Media No Auth Free & Open media open_data

The Archive API provides lists of NYT articles by month going back to 1851. You can use it to build your own local database of NYT article metadata.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Archive API

The Archive API provides lists of NYT articles by month going back to 1851. Simply pass in the year and month you want and it returns a JSON object with all articles for that month.

https://api.apis.guru/v2/specs/nytimes.com/archive/1.0.0/{year}/{month}.json

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/nytimes.com/archive/1.0.0/{year}/{month}.json"
import requests
response = requests.get(
    "https://api.apis.guru/v2/specs/nytimes.com/archive/1.0.0/{year}/{month}.json",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/nytimes.com/archive/1.0.0/{year}/{month}.json';

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

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

func main() {
	targetURL := "https://api.apis.guru/v2/specs/nytimes.com/archive/1.0.0/{year}/{month}.json"
	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/archive/1.0.0/{year}/{month}.json")

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/archive/1.0.0/{year}/{month}.json";
$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 Archive API?

Archive API 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. Archive API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗