> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rapidtopup.com.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Data Plans

> Fetch all active data networks and their available plans with reseller cost pricing, validity, and data type.

## Request

**Authorization** `string` *required*

Bearer token: `Bearer <api-key>`

```bash cURL theme={null}
curl --request GET \
  --url https://api.rapidtopup.com.ng/api/v2/b2b/services/data \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <api-key>'
```

```javascript JavaScript (Fetch) theme={null}
const response = await fetch('https://api.rapidtopup.com.ng/api/v2/b2b/services/data', {
  method: 'GET',
  headers: {
    'Accept': 'application/json',
    'Authorization': 'Bearer <api-key>',
  },
});

const data = await response.json();
// data.data = array of network objects with plans
```

```php PHP (Guzzle) theme={null}
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('GET', 'https://api.rapidtopup.com.ng/api/v2/b2b/services/data', [
    'headers' => [
        'Accept'        => 'application/json',
        'Authorization' => 'Bearer <api-key>',
    ],
]);

$data = json_decode($response->getBody(), true);
// $data['data'] = array of networks with plans
```

***

## Response

**status** `string`

`success`

**data** `array`

Array of network objects, each containing:

**Network object fields**

**network** `string`

Human-readable network name. E.g. `"MTN"`, `"Airtel"`, `"Glo"`, `"9mobile"`

**service\_id** `string`

Use this as `service_id` in your `/purchase` request. E.g. `"mtn-data"`

**plans** `array`

**Plan object fields**

**variation\_code** `string`

Use this as `variation_code` in your `/purchase` request. E.g. `"rapid_data_001"`

**name** `string`

Human-readable plan name. E.g. `"MTN 1GB"`

**variation\_amount** `number`

The discounted reseller cost price in NGN deducted from your wallet.

**validity** `string`

Plan validity period. E.g. `"30 DAYS"`, `"7 DAYS"`, `"1 DAY"`

**data\_type** `string`

Data distribution type. E.g. `"SME"`, `"CORPORATE GIFTING"`, `"GIFTING"`

**✅ Success `200`:**

```json theme={null}
{
  "status": "success",
  "data": [
    {
      "network": "MTN",
      "service_id": "mtn-data",
      "plans": [
        {
          "service_id": "mtn-data",
          "variation_code": "rapid_data_001",
          "name": "MTN 1GB",
          "variation_amount": 265.00,
          "validity": "30 DAYS",
          "data_type": "SME"
        },
        {
          "service_id": "mtn-data",
          "variation_code": "rapid_data_002",
          "name": "MTN 2GB",
          "variation_amount": 530.00,
          "validity": "30 DAYS",
          "data_type": "SME"
        }
      ]
    },
    {
      "network": "Airtel",
      "service_id": "airtel-data",
      "plans": [
        {
          "service_id": "airtel-data",
          "variation_code": "rapid_data_041",
          "name": "Airtel 1GB",
          "variation_amount": 250.00,
          "validity": "30 DAYS",
          "data_type": "CORPORATE GIFTING"
        }
      ]
    }
  ]
}
```

> [!NOTE]
>
> `variation_amount` is the exact reseller cost price deducted from your wallet when you purchase this bundle.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.