Search Photos
GET
/api/v1/photos/search
const url = 'https://example.com/api/v1/photos/search';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/photos/search \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It returns Photos that match the text query and any camera, lens, place, date, ISO or aperture filters. It returns 400 when a filter or the result limit is invalid. Route: /api/v1/photos/search. Inputs: q, camera, lens, place, date, iso, aperture, limit. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”q
string
camera
string
lens
string
place
string
date
string
iso
integer format: int64
aperture
number format: double
limit
integer
Responses
Section titled “Responses”Media typeapplication/json
object
results
required
Array<object>
object
aperture
number | null format: double
camera
string | null
capture_day
required
string
capture_seconds
required
integer format: int64
href
required
string
iso
integer | null format: int64
item_id
required
string
latitude
number | null format: double
lens
string | null
longitude
number | null format: double
owner_id
required
string
path
required
string
place_name
string | null
score
number | null format: float
thumbnail_url
required
string
title
required
string
Examplegenerated
{ "results": [ { "aperture": 1, "camera": "example", "capture_day": "example", "capture_seconds": 1, "href": "example", "iso": 1, "item_id": "example", "latitude": 1, "lens": "example", "longitude": 1, "owner_id": "example", "path": "example", "place_name": "example", "score": 1, "thumbnail_url": "example", "title": "example" } ]}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}