Contents:
This API call returns a list of the Photo Galleries available.
Example which retrieves the data.
https://api.cyclestreets.net/v2/galleries.list?fields=id,title,description,photos,datetime,galleryHref
Result:
{ "galleries": { "317": { "id": 317, "title": "Cambridge Station Cycle Parking", "description": "Photos of the new and improved cycling parking.", "photos": [ 1, 2, 3, 4, 5, 6 ], "datetime": 1437335911, "galleryHref": "https://www.cyclestreets.net/galleries/317/" }, "318": { "id": 318, "title": "Abuse of Cycle Lanes at Stansted Airport", "description": "Motorists won't stay out of the cycle lanes.", "photos": [ 20, 25, 26, 27 ], "datetime": 1437336779, "galleryHref": "https://www.cyclestreets.net/galleries/318/" } } }
None.
Controls what information is returned; the fields id, title, description, photos and datetime are included by default.
Available fields are:
If specified, the datetime field (if requested in the fields list) will be converted from unixtime (the default output format) to a formatted version; the available output formats are:
date ('g:ia, jS F Y', $date)
in PHPdate ('jS F, Y', $date)
in PHPJSON structure as per example above.
If no galleries are found, the call will return an empty array.
None.