The Shopify Products API allows users to retrieve product information from a Shopify store using the provided URL, with options to limit the results and filter by collection.
Get Your API Key
Sign in at hasdata.com, go to your account settings, and copy your API key.
All requests must include your key in the x-api-key header.
Request Cost and API Credits
Each request to the Shopify Products API consumes API Credits from your account balance.
- Cost per request: 5 API Credits
- Credits are deducted only for successful requests.
- Your total available credits depend on your active plan.
You can use your credits across all HasData APIs. The same credit balance is shared platform-wide.
Unused credits do not roll over. Any remaining credits expire at the end of the current billing period.
To monitor your credit usage and remaining balance, sign in to your account dashboard at app.hasdata.com.
Make Your First Request
curl --request GET \
--url 'https://api.hasdata.com/scrape/shopify/products?url=https%3A%2F%2Fb2bdemoexperience.myshopify.com&limit=1' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>'
API Parameters
| Parameter | Default Value | Required | Description |
|---|
url | https://b2bdemoexperience.myshopify.com | Yes | The URL of the Shopify store. For example, ‘https://b2bdemoexperience.myshopify.com’. |
limit | 1 | No | The maximum number of products to retrieve. Must be between 1 and 250. |
page | - | No | The page number of the results to retrieve. Must be a positive integer. |
collection | - | No | The handle of the collection to filter the products. Provide the collection handle as a string. |