Subscription Endpoint: Check Credits and History

This guide explains how to use the Subscription endpoint to check your credits and history.

Checking Your Credit Balance

To check your current credit balance and subscription details, use the following URL:

https://api.shoppingscraper.com/subscription?api_key={api_key}

Response example:

{
    "api_key": "{api_key}",
    "connections": {
        "max": 100,
        "open": 5
    },
    "plan_credits": {
        "initial": 0,
        "remaining": 930
    },
    "marketplaces": {
        "total": 0,
        "reserved": []
    },
    "credit_bundles": [],
    "metadata": {}
}
            

Viewing Credits History

Access your credits history to review past transactions and adjustments. Use this URL:

https://api.shoppingscraper.com/subscription/history?api_key=e673814d-9e59-4975-9c2a-08e13deb94b6

Sample response:

[
    {
        "id": "9855fe9f-6d1d-43f3-a3ea-c165665a571a",
        "status": 200,
        "amount": 9000,
        "reason": "Set plan credits",
        "created_at": "2024-02-14T08:25:57.159506"
    },
    {
        "id": "d42d0a0c-c7be-4cc7-9f79-03075015f32d",
        "status": 200,
        "amount": 1,
        "reason": "Get info from shopping.google.nl",
        "created_at": "2024-02-15T13:17:24.065063"
    },
    {
        "id": "9c7efc35-52cf-4af2-9271-fd260ef34ade",
        "status": 200,
        "amount": 1,
        "reason": "Get info from shopping.google.nl",
        "created_at": "2024-02-15T13:16:55.015086"
    }
]