The request gateway for external APIs is:https://api.sellersprite.com
Demo code cloud address for external API access:https://gitee.com/cdyunya/sellersprite-api-demo
Under the same query conditions, only the TOP 2K data can be retrieved. This is a limitation of the underlying service and is consistent with the restriction on the web side. When pulling data, you may consider segmenting the requests by ranking, BSR, search volume, or sales to work around this limitation.
| # | Parameter | Parameter Name |
| 1 | secret-key | Your secret key |
| 2 | Content-Type | application/json;charset=utf-8 |
| 3 | x-request-id | A unique identifier generated for each request |
| # | Parameter | Parameter Name |
| 1 | code | String |
| 2 | message | String |
| 3 | data | Object |
| # | Parameter | Parameter Name |
| 1 | OK | success |
| 2 | ERROR_URL_NOT_FOUND | url not found |
| 3 | ERROR_SERVER_INTERNAL | server internal error |
| 4 | ERROR_PARAM | parameter error |
| 5 | ERROR_SECRET_KEY | secret key error |
| 6 | ERROR_SECRET_KEY_OVERDUE | secret key expired |
| 7 | ERROR_VISIT_MAX | visits exceeded |
| 8 | ERROR_SECRET_KEY_INVALID | secret key invalid |
The value returned represents the available quota for the current month. The used quota is calculated as: Used quota = Total quota − Available quota. The concurrency limit is 40 requests per minute, so please avoid making requests too frequently. Note that each module must be initialized with one request before performing the query.
curl --location --request GET 'https://api.sellersprite.com/v1/visits' \
--header 'secret-key: Your Secret' \
--header 'content-type: application/json;charset=UTF-8'