List subscriptions - Platform API

GET /subscriptions returns your current subscriptions: the plan and any request packages. Each is its own record, told apart by product_type.

GET https://public-api.getblock.io/api/v1/subscriptions

This lists current commitments, not history: expired subscriptions are not returned. Dedicated and Limitless Nodes are not listed here; use GET /dedicated and GET /limitless. For the plan's limits, use GET /subscription.

Parameters

ParameterTypeRequiredDescription
limitintegerNoQuery parameter. Page size. Default 20, at most 100.
offsetintegerNoQuery parameter. Items to skip. Default 0.
product_typestringNoQuery parameter. plan, enterprise_plan, or request_package.
statusstringNoQuery parameter. Such as active.

Request Example

bashcurl 'https://public-api.getblock.io/api/v1/subscriptions?status=active' \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst response = await fetch('https://public-api.getblock.io/api/v1/subscriptions?status=active', {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const body = await response.json();

console.log(body.subscriptions.map((s) => `${s.product_type}: ${s.product_id}`));
pythonimport os
import requests

body = requests.get(
    "https://public-api.getblock.io/api/v1/subscriptions",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
    params={"status": "active"},
).json()

print([(s["product_type"], s["product_id"]) for s in body["subscriptions"]])

Response Example

json{
  "total": 2,
  "limit": 20,
  "offset": 0,
  "subscriptions": [
    {
      "id": "s-plan",
      "product_type": "plan",
      "product_id": "pro",
      "status": "active",
      "period": "1m",
      "type": "regular",
      "started_at": "2026-09-01T00:00:00Z",
      "paid_until": "2026-11-01T00:00:00Z",
      "current_period_end": "2026-11-01T00:00:00Z"
    },
    {
      "id": "s-package",
      "product_type": "request_package",
      "product_id": "cu-100m",
      "status": "active",
      "period": "1m",
      "type": "regular",
      "started_at": "2026-10-03T12:00:00Z",
      "paid_until": "2026-11-01T00:00:00Z",
      "current_period_end": "2026-11-01T00:00:00Z"
    }
  ]
}

Response Parameters

FieldTypeDescription
totalintegerSubscriptions matching the filters, before limit and offset.
limitintegerPage size applied.
offsetintegerItems skipped.
subscriptionsarray of objectsThe subscriptions on this page. See The subscription object.

Use Cases

  • List request packages bought on top of the plan
  • Check renewal dates across all subscriptions

Error Handling

HTTPCause
401Missing or invalid API key.
502A GetBlock service behind the API did not answer. Retry later.

Error bodies carry an error message and a request_id. See Errors.