---
title: "Get NFTs by collection"
method: GET
path: "/api/v2/collection/{slug}/nfts"
tags: ["NFT Endpoints"]
---

# Get NFTs by collection

`GET /api/v2/collection/{slug}/nfts`

Get NFTs in a specific collection. Optionally filter by traits using the 'traits' query parameter with a JSON array of trait filters. Multiple traits are AND-combined (items must match all specified traits). Example: ?traits=[{"traitType":"Background","value":"Red"},{"traitType":"Eyes","value":"Blue"}]

## Path parameters

- `slug` string, required

## Query parameters

- `traits` string
- `has_agent_binding` boolean
- `limit` integer — Number of items to return per page
- `next` string

## Response `200`

OK

## Other responses

- `400` — For error reasons, review the response data.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found
- `409` — Conflict
- `500` — Internal server error. Please open a support ticket so OpenSea can investigate.

---

[API](https://skmtc.dev/opensea/apis/opensea-api.md) · [All operations](https://skmtc.dev/opensea/apis/opensea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opensea/opensea-api/revisions/acee8835f2ae/schema)
