Donate using PayPal

CycleStreets API (v2)

  • Details for:
  • API overview
  • Obtain API key
  • Usage policy
  • Uptime policy

Retrieve a specified gallery

The Galleries Get API retrieves a single Photo Gallery containing cycling-related infrastructure which has been submitted by a user.

Each Gallery has metadata attached to it, such as a title, a description, list of locations and more.

Note that each location has a license (e.g. Creative Commons, Public Domain, No reproduction permitted, etc.) as specified by the contributor. You are required to respect the specified license. Also, CycleStreets naturally has a database right in the collective dataset.


Example which returns the data of a user-created Photo Gallery


    "id": 300,
    "title": "Cambridge Station Cycle Parking",
    "description": "Photos of the new and improved cycling parking.",
    "photos": [
    "datetime": 1437336779

Request parameters - required

id int
The gallery ID.

Request parameters - optional

datetime int
Time (Unix timestamp) of last update of the gallery.
This can be given as friendly, friendlydate, sqldatetime or unixtime
If this parameter is not supplied, the default output will be in unixtime format, as shown in the example above.


GeoJSON object containing one Gallery

See example above.

Error response

JSON object containing an error key and a text string.

Example error (text string will vary):

    "error": "Invalid gallery ID recieved."

We welcome your feedback, especially to report bugs or give us route feedback.

My comments relate to: *

Your comments: *
URL of page: *
How did you find out about CycleStreets?:
Your name:
Our ref: Please leave blank - anti-spam measure

* Items marked with an asterisk [*] are required fields and must be fully completed.