Skip to main content
GET
/
inventory-sources
/
{sourceId}
/
modular
/
inventory
/
selectors
Search modular inventory selectors
curl --request GET \
  --url https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/inventory/selectors \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/inventory/selectors"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/inventory/selectors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "items": [
    {
      "externalId": "<string>",
      "name": "<string>",
      "path": [
        "<string>"
      ],
      "parentId": "<string>",
      "status": "<string>",
      "hasChildren": true,
      "metadata": {}
    }
  ],
  "nextCursor": "<string>",
  "count": 4503599627370495
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

sourceId
string
required

Inventory source ID

Minimum string length: 1

Query Parameters

selectorType
enum<string>
required
Available options:
site,
site_section,
site_group,
series,
video_group,
ad_unit_package,
standard_attribute
q
string
query
string
parentId
string
cursor
string
limit
integer
Required range: 1 <= x <= 100

Response

Search modular inventory selectors

items
object[]
required
nextCursor
string | null
required
count
integer
required
Required range: 0 <= x <= 9007199254740991