# net.atchan.media.getImage

> Get the full-size image blob of a post embed, proxied from the author's PDS and cached. Only blobs atchan has indexed from a post embed are served.

- Kind: query
- Authority: media.atchan.net
- Lexicon: 1
- Published by [atchan.net](https://lexicon.garden/identity/did:plc:vshgahazzq7qwvp2xc6ai27o), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.media.getImage)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.media.getImage/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vshgahazzq7qwvp2xc6ai27o/net.atchan.media.getImage/analytics)

## Query (`net.atchan.media.getImage`)

Type: query · GET

### Parameters (query string)

- `cid` (string · cid, required): The CID of the blob.
- `did` (string · did, required): The DID of the account whose repo holds the blob.

### Output (image/*)


### Errors

- `BlobNotFound`: atchan has not indexed a post embedding this blob.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the full-size image blob of a post embed, proxied from the author's PDS and cached. Only blobs atchan has indexed from a post embed are served.",
      "errors": [
        {
          "description": "atchan has not indexed a post embedding this blob.",
          "name": "BlobNotFound"
        }
      ],
      "output": {
        "encoding": "image/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The CID of the blob.",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The DID of the account whose repo holds the blob.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "net.atchan.media.getImage",
  "lexicon": 1
}
```
