---
title: "Retrieve subject data for a specific piece of metadata info for a collection"
method: GET
path: "/collections/{collection_id}/collected_metadata/{cgm_id}/subjects/"
tags: ["Collections"]
---

# Retrieve subject data for a specific piece of metadata info for a collection

`GET /collections/{collection_id}/collected_metadata/{cgm_id}/subjects/`

## Request

- Base URL: `https://api.test.osf.io/v2`
- URL: `https://api.test.osf.io/v2/collections/{collection_id}/collected_metadata/{cgm_id}/subjects/`
- Auth: none declared

#### Permissions
In order to view these subject it must be a public collection or a user must have read permissions for collection.

#### Returns
Returns a JSON object containing `data` and `links` keys.

The `data` key contains an array of nodes ids.
The `links` key contains a dictionary of links that can be used for [pagination](#tag/Pagination).
#### Errors
This request should never return an error, other then permissions errors.

## Path parameters

- `collection_id` string, required
- `cgm_id` string, required

## Response `200`

OK

---

[API](https://skmtc.dev/osf/apis/osf-apiv2-documentation.md) - [All operations](https://skmtc.dev/osf/apis/osf-apiv2-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/osf/apis/osf-apiv2-documentation/revisions/3c5164c707eb?raw)
