---
title: "List media files attached to a single location (starred + unstarred)."
method: GET
path: "/api/v4/locations/{locationId}/photos"
tags: ["Locations"]
---

# List media files attached to a single location (starred + unstarred).

`GET /api/v4/locations/{locationId}/photos`

Returns all media files attached to a single location, including starred and unstarred photos.

## Path parameters

- `locationId` union, required
  - integer — Raw numeric ID
  - string, base64-or-int — Base64-encoded Relay ID

## Response `200`

Successful response

- MediaFileOfLocationType[]
  - `id` string, required
  - `url` string
  - `thumbnailUrl` string
  - `categoryName` string
  - `categoryId` string
  - `fileType` string
  - `starred` boolean
  - `viewsCount` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/listingsapi/apis/listings-api.md) · [All operations](https://skmtc.net/listingsapi/apis/listings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/listingsapi/listings-api/revisions/9274a1eac380/schema)
