> ## Documentation Index
> Fetch the complete documentation index at: https://skulabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Querying Data

> How to query data with the SKULabs API

The SKULabs API presents MongoDB-like querying capabilities. This allows you to filter and sort data to retrieve only the information you need.

## Required Parameters

<Note>To query against SKULabs collections, 4 parameters are required. We've included them below.</Note>

* selector
* sort
* limit
* skip

### Example

```json theme={null}
{
  "selector": {
    "status": {
      "$in": ["shipped"]
    }
  },
  "sort": {
    "end_date": -1
  },
  "skip": 0,
  "limit": 10
}
```

## Selector

<Note>Use the selector field to help filter queries. Commonly available fields are included below.</Note>

### Common Fields

* name
* sku
* email
* upc
* start\_date
* end\_date
* items
* listings
* custom\_fields
* barcodes
* listing\_sku
* tags
* fulfillment\_sku
* variants
* status
* type
* batch\_number
* provider
* order\_number
* service
* tracking\_number

### Example

```json theme={null}
{
    "sku": "red-shirt-001"
}
```

## Sort

<Note>Use the sort field to help sort returned documents. Commonly available fields are included below.</Note>

### Common Fields

* name
* email
* sku
* upc
* type
* store\_id
* listing\_sku
* fulfillment\_sku
* order\_number
* status
* batch\_number
* date

### Example

```json theme={null}
{
    "end_date": 1,
}
```

## Limit

<Note>Limit represents an integer that is used to limit the number of documents returned. By default, it is 10.</Note>

### Example

```json theme={null}
{
    "limit": 10
}
```

## Skip

<Note>Skip represents an integer that is used to aid in pagination. By default, it is 0.</Note>

### Example

```json theme={null}
{
    "skip": 0
}
```
