TimesTags API
nytimes · Media
With the TimesTags API, you can mine the riches of the New York Times tag set. The TimesTags service matches your query to the controlled vocabularies that fuel NYTimes.com metadata. You supply a string of characters, and the service returns a ranked list of suggested terms.
Authentication
Sample Requests
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/nytimes.com/times_tags/1.0.0/timestags?max=10&query=test&filter=Des"
import requests
params = {
"max": "10",
"query": "test",
"filter": "Des"
}
response = requests.get(
"https://api.apis.guru/v2/specs/nytimes.com/times_tags/1.0.0/timestags",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/nytimes.com/times_tags/1.0.0/timestags');
url.searchParams.set('max', '10');
url.searchParams.set('query', 'test');
url.searchParams.set('filter', 'Des');
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/times_tags/1.0.0/timestags")
q := baseURL.Query()
q.Set("max", "10")
q.Set("query", "test")
q.Set("filter", "Des")
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/times_tags/1.0.0/timestags")
uri.query = URI.encode_www_form({
"max" => "10",
"query" => "test",
"filter" => "Des"
})
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/times_tags/1.0.0/timestags?" . http_build_query([
"max" => "10",
"query" => "test",
"filter" => "Des"
]);
$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
- See official documentation for authentication and setup.
What can you build with TimesTags API?
TimesTags 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. TimesTags API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?