Skip to main content

Get a team key

As a team owner, open Settings → API keys in Shoplist and select Create key. Grant stores:read and usage:read. Copy the key when Shoplist shows it and set the SHOPLIST_API_KEY environment variable from your secret store. See authentication for key management. Run each JavaScript example in its own Node.js .mjs file. For Python, use Python 3 and install requests with python3 -m pip install requests.

Check the caller

Check that data.team is your team and data.scopes contains both scopes. The example shows the response shape.
GET /v1/me 200

Enrich one domain

Replace shop.example with the domain of the Shopify store you want to enrich. The request requires stores:read.
The API returns one item in data. An outcome of found includes the store record. An outcome of not_found has a null store and uses none of the team’s allowance.

Read your usage

The request requires usage:read.
Read data.unique_stores for the team’s limit, used, and remaining stores. data.period gives the billing period. See usage and billing for how store reads count, or use the enrichment recipe to process a list of domains with retries.