# com.hikeratlas.temp.getPhoto

> A photo of a track or review (com.hikeratlas.temp.defs#photo), as an image: a thumbnail, or the photo itself, from its author's PDS through a cache. Only photos of records the indexer has, and hasn't hidden. Served by Hiker Atlas's indexer (https://github.com/hikeratlas/atproto-indexer). In beta: may change.

- Kind: query
- Authority: temp.hikeratlas.com
- Lexicon: 1
- Published by [hikeratlas.com](https://lexicon.garden/identity/did:plc:7onixtzlmdjijmp7ympxedte), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getPhoto)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getPhoto/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getPhoto/analytics)

## Query (`com.hikeratlas.temp.getPhoto`)

Type: query · GET

### Parameters (query string)

- `cid` (string · cid, required): The photo's image blob (its ref).
- `did` (string · did, required): The photo's author.
- `size` (string): thumbnail: at most 640 pixels a side; fullsize: the photo as uploaded.
  - Constraints: default: "thumbnail", knownValues: thumbnail | fullsize

### Output (*/*)


### Errors

- `NotFound`: Not a photo of a record the indexer has, or hidden.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A photo of a track or review (com.hikeratlas.temp.defs#photo), as an image: a thumbnail, or the photo itself, from its author's PDS through a cache. Only photos of records the indexer has, and hasn't hidden. Served by Hiker Atlas's indexer (https://github.com/hikeratlas/atproto-indexer). In beta: may change.",
      "errors": [
        {
          "description": "Not a photo of a record the indexer has, or hidden.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The photo's image blob (its ref).",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The photo's author.",
            "format": "did",
            "type": "string"
          },
          "size": {
            "default": "thumbnail",
            "description": "thumbnail: at most 640 pixels a side; fullsize: the photo as uploaded.",
            "knownValues": [
              "thumbnail",
              "fullsize"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.hikeratlas.temp.getPhoto",
  "lexicon": 1
}
```
