---
title: "GET /rest?method=flickr.photos.getContext"
method: GET
path: "/rest?method=flickr.photos.getContext"
tags: ["Public"]
---

# GET /rest?method=flickr.photos.getContext

`GET /rest?method=flickr.photos.getContext`

Returns next and previous photos for a photo in a photostream

## Query parameters

- `api_key` string, required
- `photo_id` string, required

## Response `200`

OK

- object
  - `count` object
    - `_content` string
  - `prevphoto` ContextPhoto
    - `id` string
    - `secret` string
    - `server` string
    - `farm` string
    - `title` string
    - `url` string
    - `thumb` string
    - `media` string
    - `owner` string
    - `license` integer
    - `safe` boolean
    - `is_faved` boolean
  - `nextphoto` ContextPhoto
    - `id` string
    - `secret` string
    - `server` string
    - `farm` string
    - `title` string
    - `url` string
    - `thumb` string
    - `media` string
    - `owner` string
    - `license` integer
    - `safe` boolean
    - `is_faved` boolean
  - `stat` string

## Changes

- **2016-07-11** `2a3188bde21c` — 1 info
  - endpoint added
- **2016-07-07** `10d4b5f8cc49` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/flickr/apis/flickr-api-schema/changes/rest?method=flickr.photos.getContext/get.md)

---

[API](https://skmtc.dev/flickr/apis/flickr-api-schema.md) · [All operations](https://skmtc.dev/flickr/apis/flickr-api-schema/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flickr/flickr-api-schema/revisions/0bb9aa5f48a7/schema)
