Skip to content
OSINTtools.io

Geograph Britain and Ireland API

Volunteer archive of over 8 million geolocated photos aiming to cover every square kilometre of Britain and Ireland.

Base URL
https://api.geograph.org.uk
Sign-in
No key
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from geograph.org.uk · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Geograph's API returns photographs of Great Britain and Ireland with their grid references, titles and photographers. An investigator can use it to find geotagged ground-level photos of a place by grid reference, text or user.

Calls go to https://api.geograph.org.uk/. You must request your own key at get-api-key.php; public web projects should use their domain name as the key. The photo and grid square endpoints take the key in the path and return XML by default; the syndicator takes it as a key query parameter and returns several feed formats.

The docs forbid scraping Geograph pages and ask bulk or training use to go through the database dumps at data.geograph.org.uk. Most searches return only the first 1,000 matching images. Photos are Creative Commons licensed: credit the photographer and link to the photo page. The CSV export, deprecated nearby endpoint and .rdf/.kml files are not listed here.

Quick start

  1. No key needed

    The Geograph Britain and Ireland API answers without an account or key.

  2. Make your first request

    Search or list Geograph images as a feed.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.geograph.org.uk/syndicator.php?key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    <?xml version="1.0"?><rss version="2.0"><channel><title>Example feed</title></channel></rss>

Authentication

No key or account: every endpoint answers without one.

A key is required but goes in the path (photo, Gridref) or in the key query parameter (syndicator.php); see the apikey and key params.

Rate limits and pricing

Not stated in the docs; searches reach only the first 1,000 matches

  • Passive: the target is not contacted

Returns the latest 15 submissions by default. Filter by predefined search id, user, query, location or text. Supported formats are RSS0.91, RSS1.0, RSS2.0, GeoRSS (default), GeoPhotoRSS, GPX, OPML, HTML, JS, PHP, KML and JSON.

Query parameters

keystringrequired

Your API key

Example: YOUR_API_KEY
qstring

Query, for example a place near a grid reference

Example: bridge near TQ7054
textstring

Text search

Example: bridge
locationstring

Location, such as a grid reference

Example: TQ7054
uinteger

Geograph user id

Example: 3
iinteger

Predefined search id

Example: 12345
distanceinteger

Distance in km, maximum 20

Example: 10Default: 10
perpageinteger

Results per page, maximum 100

Example: 15Default: 15
pageinteger

Page number

Example: 2
formatstring

Output format

Example: RSS2.0Default: GeoRSSOne of: RSS0.91, RSS1.0, RSS2.0, GeoRSS, GeoPhotoRSS, GPX, OPML, HTML, JS, PHP, KML, JSON
expandboolean

Include thumbnail HTML

Example: 1
curl 'https://api.geograph.org.uk/syndicator.php?key=YOUR_API_KEY'
No key needed
Response
<?xml version="1.0"?><rss version="2.0"><channel><title>Example feed</title></channel></rss>

Details

Details of one image, as XML or JSON.

GET/api/photo/{photoId}/{apikey}

  • Passive: the target is not contacted

XML by default; add output=json for JSON. The XML contains status, title, gridref, user (with a profile URL) and img (src, width, height). The JSON field names are not documented.

Path parameters

photoIdintegerrequired

Geograph photo id

Example: 1234
apikeystringrequired

Your API key

Example: YOUR_API_KEY

Query parameters

outputstring

json for JSON instead of XML

Example: jsonOne of: json
Response fields · 5Show

statusstring

Status; state attribute is ok on success

titlestring

Photo title

gridrefstring

Grid reference

userstring

Photographer name; profile attribute holds the profile URL

imgstring

Image element with src, width and height attributes

curl 'https://api.geograph.org.uk/api/photo/1234/YOUR_API_KEY'
No key needed
Response
<geograph><status state="ok"/><title>Example bridge</title><gridref>SD1234</gridref><user profile="https://example.org/profile/1">Example Photographer</user><img src="https://example.org/photo.jpg" width="640" height="480"/></geograph>
  • Passive: the target is not contacted

Returns XML with status (state, count) and an image element holding title, user, img and location (grid, eastings, northings).

Path parameters

gridrefstringrequired

Four-figure grid reference

Example: SD1234
apikeystringrequired

Your API key

Example: YOUR_API_KEY
Response fields · 5Show

statusstring

Status; state and count attributes

titlestring

Photo title

userstring

Photographer; profile attribute

imgstring

Image element with src, width, height

locationstring

Location element with grid, eastings, northings attributes

curl 'https://api.geograph.org.uk/api/Gridref/SD1234/YOUR_API_KEY'
No key needed
Response
<geograph><status state="ok" count="1"/><image url="https://example.org/photo/1"><title>Example view</title><user profile="https://example.org/profile/1">Example Photographer</user><img src="https://example.org/photo.jpg" width="640" height="480"/><location grid="1" eastings="312000" northings="434000"/></image></geograph>