---
title: "Return the data for a photo including comments."
method: GET
path: "/Ams/{ClientID}/CommunityPhotos/{PhotoId}"
tags: ["Ams"]
---

# Return the data for a photo including comments.

`GET /Ams/{ClientID}/CommunityPhotos/{PhotoId}`

## Request

- Base URL: `https://ws.yourmembership.com`
- URL: `https://ws.yourmembership.com/Ams/{ClientID}/CommunityPhotos/{PhotoId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/yourmembership/apis/ym-rest-services/docs/Ams/:ClientID/CommunityPhotos/:PhotoId/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the data for a photo including comments.

## Path parameters

- `PhotoId` integer, required
- `ClientID` integer, required

## Query parameters

- `Caption` string
- `PostedBy` string
- `UsingRedis` boolean
- `AppInitTime` string, date-time
- `ServerID` string
- `ResponseStatus` string
- `BypassCache` boolean
- `DateCached` string, date-time
- `Device` string

## Response `200`

Success

- CommunityPhotosResponse: CommunityPhotosResponse
  - `PostedUTC` string, date-time
  - `PostedByMugshot` string
  - `ShareCount` integer
  - `LikeCount` integer
  - `CommentCount` integer
  - `PhotoCommentList` PhotoComment[]
    - `CommentID` integer
    - `CdbID` integer
    - `Posted` string, date-time
    - `PostedUTC` string, date-time
    - `GalleryItemID` integer
    - `SchoolID` integer
    - `Comment` string
    - `PostedBy` string
    - `PostedByMugshot` string
    - `PostedDate` string
    - `GroupID` integer
    - `IsOwner` boolean
    - `LikeID` integer
    - `LikedComment` boolean
    - `LikeCount` integer
    - `SkipCrossPost` boolean
  - `PhotoId` integer
  - `Caption` string
  - `PostedBy` string
  - `UsingRedis` boolean
  - `AppInitTime` string, date-time
  - `ServerID` string
  - `ClientID` integer
  - `ResponseStatus` ResponseStatus: ResponseStatus
    - `ErrorCode` string
    - `Message` string
    - `StackTrace` string
    - `Errors` ResponseError[]
      - `ErrorCode` string
      - `FieldName` string
      - `Message` string
      - `Meta` DictionaryStringString: Dictionary<String,String>
    - `Meta` DictionaryStringString: Dictionary<String,String>
  - `BypassCache` boolean
  - `DateCached` string, date-time
  - `Device` string

---

[API](https://skmtc.dev/yourmembership/apis/ym-rest-services.md) - [All operations](https://skmtc.dev/yourmembership/apis/ym-rest-services/llms.txt) - [OpenAPI document](https://skmtc.dev/yourmembership/apis/ym-rest-services/revisions/8d8a2e7e7d56?raw)
