API reference
The API is included in the Pro and Scale plans. Create a key on your account page and send it as a bearer token.
List stores
curl -H "Authorization: Bearer sk_your_key" \ "https://storeleadindex.com/api/v1/stores?country=US&type=repair&limit=50"
Filters are the same as on the search page: q, type (store or repair), country (two-letter code), category, segment, tech, theme, currency, lang, region, city, min_products, max_products, has_email=1, has_phone=1.
limit is 1 to 100 (default 50). Results come in a stable order; pass the next_after value from one response as after in the next call to continue. Each store returned counts as one row of your monthly allowance.
{
"data": [ { "domain": "example-shop.com", "name": "Example Shop", ... } ],
"next_after": 1042,
"allowance": { "used": 50, "allowance": 10000, "remaining": 9950 }
}
Account
curl -H "Authorization: Bearer sk_your_key" "https://storeleadindex.com/api/v1/account"
Errors
401 missing or wrong key. 402 the plan has no API access or the monthly allowance is used up. 429 more than 120 requests a minute.