code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Subscription.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/subscriptions",
    "has_more": false,
    "data": [
      {
        "id": "su_1JbiLB2eZvKYlo2CRmgET2WF",
        "object": "subscription",
        "application": null,
        "application_fee_percent": null,
        "automatic_tax": {
          "enabled": false
        },
        "billing_cycle_anchor": 1633337949,
        "billing_thresholds": null,
        "cancel_at": null,
        "cancel_at_period_end": false,
        "canceled_at": null,
        "collection_method": "charge_automatically",
        "created": 1632128349,
        "currency": "usd",
        "current_period_end": 1660553949,
        "current_period_start": 1658739549,
        "customer": "cus_KGEouBKGmh7mXW",
        "days_until_due": null,
        "default_payment_method": "pm_1JbiL92eZvKYlo2CuiUB2nL1",
        "default_source": null,
        "default_tax_rates": [],
        "description": null,
        "discount": null,
        "ended_at": null,
        "items": {
          "object": "list",
          "data": [
            {
              "id": "si_KGEo6oKuLzcuYw",
              "object": "subscription_item",
              "billing_thresholds": null,
              "created": 1632128350,
              "metadata": {},
              "price": {
                "id": "15",
                "object": "price",
                "active": true,
                "billing_scheme": "per_unit",
                "created": 1386685951,
                "currency": "usd",
                "custom_unit_amount": null,
                "livemode": false,
                "lookup_key": null,
                "metadata": {
                  "charset": "utf-8",
                  "content": "15"
                },
                "nickname": null,
                "product": "prod_BTdpcRLIUTfsFR",
                "recurring": {
                  "aggregate_usage": null,
                  "interval": "week",
                  "interval_count": 3,
                  "usage_type": "licensed"
                },
                "tax_behavior": "unspecified",
                "tiers_mode": null,
                "transform_quantity": null,
                "type": "recurring",
                "unit_amount": 444,
                "unit_amount_decimal": "444"
              },
              "quantity": 1,
              "subscription": "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
              "tax_rates": []
            }
          ],
          "has_more": false,
          "url": "/v1/subscription_items?subscription=sub_1JbiLB2eZvKYlo2CNHnqfMzf"
        },
        "latest_invoice": "in_1LPN8U2eZvKYlo2C2h002pSa",
        "livemode": false,
        "metadata": {},
        "next_pending_invoice_item_invoice": null,
        "pause_collection": null,
        "payment_settings": {
          "payment_method_options": null,
          "payment_method_types": null,
          "save_default_payment_method": null
        },
        "pending_invoice_item_interval": null,
        "pending_setup_intent": null,
        "pending_update": null,
        "schedule": null,
        "start_date": 1632128349,
        "status": "active",
        "test_clock": null,
        "transfer_data": null,
        "trial_end": 1633337949,
        "trial_start": 1632128349
      },
      {...},
      {...}
    ]
  }'''
nl: List subscriptionsBy default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.Parameters customer optional The ID of the customer whose subscriptions will be retrieved. price optional Filter for subscriptions that contain this recurring price ID. status optional enum The status of the subscriptions to retrieve. Passing in a value of canceled will return all canceled subscriptions, including those belonging to deleted customers. Pass ended to find subscriptions that are canceled and subscriptions that are expired due to incomplete payment. Passing in a value of all will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.Possible enum valuesactive past_due unpaid canceled incomplete incomplete_expired trialing all ended More parametersExpand all  collection_method optional   created optional dictionary   current_period_end optional dictionary   current_period_start optional dictionary   ending_before optional   limit optional   starting_after optional   test_clock optional ReturnsReturns a list of subscriptions