---
title: "Get Photos by Location IDs"
method: GET
path: "/locations/{locationId}/photos"
tags: ["Locations", "Photos"]
---

# Get Photos by Location IDs

`GET /locations/{locationId}/photos`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/locations/{locationId}/photos`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/locations/:locationId/photos/get.ts> (a function with typed inputs; its response is checked against the schema)

This API allows returns all media files of a specific location.

For more details, refer to `Photo specifications for your business location` markdown.

## Path parameters

- `locationId` string, required

## Headers

- `Authorization` string, required

## Response `200`

- object
  - `data` object, required
    - `mediaFilesOfLocation` object[], required
      - `id` string, required
      - `url` string, required
      - `uploadedBy` unknown, required
      - `fileName` string, required
      - `fileSize` string, required
      - `fileType` string, required
      - `fileExtension` string, required
      - `archived` boolean, required
      - `accountId` integer, required
      - `thumbnailUrl` string, required
      - `starred` boolean, required
      - `category` object, required
        - `name` string, required
        - `id` integer, nullable, required
      - `mediaLabels` string[], required
      - `fileDimensions` object, required
        - `height` integer, required
        - `width` integer, required
      - `uploadedAt` string, required
      - `locationId` string, required
      - `publisherOverride` string, required

## Other responses

- `400`
- `x-200:Example Response (Over 30 Photos)`

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
