# Geograph Britain and Ireland API reference

> 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…

Source: https://osinttools.io/apis/geograph/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/geograph/

- Base URL: https://api.geograph.org.uk
- Authentication: No key needed. 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: Not stated in the docs; searches reach only the first 1,000 matches
- Vendor docs: https://www.geograph.org.uk/help/api

## Overview

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](https://www.geograph.org.uk/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.

## Search

### Search or list Geograph images as a feed.

`GET /syndicator.php`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | yes | Your API key Example: YOUR_API_KEY |
| `q` | query | string | no | Query, for example a place near a grid reference Example: bridge near TQ7054 |
| `text` | query | string | no | Text search Example: bridge |
| `location` | query | string | no | Location, such as a grid reference Example: TQ7054 |
| `u` | query | integer | no | Geograph user id Example: 3 |
| `i` | query | integer | no | Predefined search id Example: 12345 |
| `distance` | query | integer | no | Distance in km, maximum 20 Example: 10 |
| `perpage` | query | integer | no | Results per page, maximum 100 Example: 15 |
| `page` | query | integer | no | Page number Example: 2 |
| `format` | query | string | no | Output format Example: RSS2.0 One of: RSS0.91, RSS1.0, RSS2.0, GeoRSS, GeoPhotoRSS, GPX, OPML, HTML, JS, PHP, KML, JSON |
| `expand` | query | boolean | no | Include thumbnail HTML Example: 1 |

```bash
curl 'https://api.geograph.org.uk/syndicator.php?key=YOUR_API_KEY'
```

Example response (200):

```
<?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}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `photoId` | path | integer | yes | Geograph photo id Example: 1234 |
| `apikey` | path | string | yes | Your API key Example: YOUR_API_KEY |
| `output` | query | string | no | json for JSON instead of XML Example: json One of: json |

Response fields:

- `status` (string): Status; state attribute is ok on success
- `title` (string): Photo title
- `gridref` (string): Grid reference
- `user` (string): Photographer name; profile attribute holds the profile URL
- `img` (string): Image element with src, width and height attributes

```bash
curl 'https://api.geograph.org.uk/api/photo/1234/YOUR_API_KEY'
```

Example response (200):

```
<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>
```

### Details of one grid square from a four-figure grid reference.

`GET /api/Gridref/{gridref}/{apikey}`

- Footprint: 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).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `gridref` | path | string | yes | Four-figure grid reference Example: SD1234 |
| `apikey` | path | string | yes | Your API key Example: YOUR_API_KEY |

Response fields:

- `status` (string): Status; state and count attributes
- `image.title` (string): Photo title
- `image.user` (string): Photographer; profile attribute
- `image.img` (string): Image element with src, width, height
- `image.location` (string): Location element with grid, eastings, northings attributes

```bash
curl 'https://api.geograph.org.uk/api/Gridref/SD1234/YOUR_API_KEY'
```

Example response (200):

```
<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>
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
