Find an API

Search public APIs with auth details & Postman guides

← All APIs

Geographic API

nytimes · Media

Media No Auth Free & Open media open_data

The Geographic API extends the Semantic API, using a linked data approach to enhance location concepts used in The New York Times' controlled vocabulary and data resources which combine them with the GeoNames database, an authoritative and free to use database of global geographical places, names and features.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Geographic API

Geographic API

https://api.apis.guru/v2/specs/nytimes.com/geo_api/1.0.0/query.json?sw=example&name=test&sort=desc&limit=20&query=test&facets=0&filter=example&offset=0&latitude=51.5074&elevation=1&longitude=-0.1278&date_range=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/nytimes.com/geo_api/1.0.0/query.json?sw=example&name=test&sort=desc&limit=20&query=test&facets=0&filter=example&offset=0&latitude=51.5074&elevation=1&longitude=-0.1278&date_range=example"
import requests
params = {
    "sw": "example",
    "name": "test",
    "sort": "desc",
    "limit": "20",
    "query": "test",
    "facets": "0",
    "filter": "example",
    "offset": "0",
    "latitude": "51.5074",
    "elevation": "1",
    "longitude": "-0.1278",
    "date_range": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/nytimes.com/geo_api/1.0.0/query.json",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/nytimes.com/geo_api/1.0.0/query.json');
url.searchParams.set('sw', 'example');
url.searchParams.set('name', 'test');
url.searchParams.set('sort', 'desc');
url.searchParams.set('limit', '20');
url.searchParams.set('query', 'test');
url.searchParams.set('facets', '0');
url.searchParams.set('filter', 'example');
url.searchParams.set('offset', '0');
url.searchParams.set('latitude', '51.5074');
url.searchParams.set('elevation', '1');
url.searchParams.set('longitude', '-0.1278');
url.searchParams.set('date_range', '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/geo_api/1.0.0/query.json")
	q := baseURL.Query()
	q.Set("sw", "example")
	q.Set("name", "test")
	q.Set("sort", "desc")
	q.Set("limit", "20")
	q.Set("query", "test")
	q.Set("facets", "0")
	q.Set("filter", "example")
	q.Set("offset", "0")
	q.Set("latitude", "51.5074")
	q.Set("elevation", "1")
	q.Set("longitude", "-0.1278")
	q.Set("date_range", "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/geo_api/1.0.0/query.json")
uri.query = URI.encode_www_form({
  "sw" => "example",
  "name" => "test",
  "sort" => "desc",
  "limit" => "20",
  "query" => "test",
  "facets" => "0",
  "filter" => "example",
  "offset" => "0",
  "latitude" => "51.5074",
  "elevation" => "1",
  "longitude" => "-0.1278",
  "date_range" => "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/geo_api/1.0.0/query.json?" . http_build_query([
    "sw" => "example",
    "name" => "test",
    "sort" => "desc",
    "limit" => "20",
    "query" => "test",
    "facets" => "0",
    "filter" => "example",
    "offset" => "0",
    "latitude" => "51.5074",
    "elevation" => "1",
    "longitude" => "-0.1278",
    "date_range" => "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 Geographic API?

Geographic 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. Geographic 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?

Open documentation ↗