---
title: "OpenSea API: Collections Ids | Perceptlayer"
description: "Collections Ids from OpenSea as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/opensea/collections-ids
---

[APIs](https://perceptlayer.com/apis) / [OpenSea](https://perceptlayer.com/apis/opensea) / Collections Ids

# OpenSea: Collections Ids

Collections Ids from OpenSea as JSON. 1 credit per successful call.

GET `/v1/opensea/collections-ids`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `type` | string | Optional | collections |

## Example request

OpenSea

GET /v1/opensea/collections-ids 

```
{
  "success": true,
  "data": {
    "type": "collections",
    "count": 100,
    "ids": [
      {
        "type": "collection",
        "slug": "foolsgold-vittoria"
      },
      {
        "type": "collection",
        "slug": "doodletime"
      },
      {
        "type": "collection",
        "slug": "abnormal-mfers-official"
      }
    ]
  },
  "meta": {
    "endpoint_family": "discovery_sitemaps",
    "source": "opensea",
    "request_id": "req_5ee48f5ed88645818c6c128236410154",
    "credits_charged": 1,
    "credits_remaining": 4822
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/opensea?try=collections-ids#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.ids` has these 2 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `type` | string |
| `slug` | string |
