# Get Data Plans

You can get data plans for each networks in one easy step:

### Get data plans per network:

| Verb  | URL                                             |
| ----- | ----------------------------------------------- |
| `GET` | `{{baseUlr}}/api/bills/data/plans?provider=MTN` |

{% tabs %}
{% tab title="Get data plans" %}

<pre class="language-javascript"><code class="lang-javascript">curl --location 'https://api.smarthivesms.com/api/bills/data/plans?provider=MTN' \
--header 'Content-Type: application/json' \
<strong>--header 'x-api-key: &#x3C;API KEY>' \
</strong></code></pre>

{% endtab %}

{% tab title="200 OK Response" %}

```python
{
    "status": "ok",
    "description": "The request has succeeded",
    "data": {
        "provider": "MTN",
        "vendCode": "M302",
        "plans": [
            {
                "subCode": "165GB",
                "description": "35,000 - 165GB (valid for 30 days)",
                "amount": 35000
            },
            {
                "subCode": "10GB+10mins",
                "description": "4,500 - 10GB+10mins (valid for 30 days)",
                "amount": 4500
            },
            {
                "subCode": "2GB",
                "description": "750 - 2GB (valid for 2 days)",
                "amount": 750
            },
            {
                "subCode": "2.5GB",
                "description": "900 - 2.5GB (valid for 2 days)",
                "amount": 900
            },
            {
                "subCode": "11GB",
                "description": "3500 - 11GB (valid for 7 days)",
                "amount": 3500
            },
            {
                "subCode": "2.5GB",
                "description": "750 - 2.5GB (valid for 1 day)",
                "amount": 750
            },
            {
                "subCode": "1.5GB+1GB",
                "description": "1,000 - 1.5GB+1GB (valid for 7 days)",
                "amount": 1000
            },
            {
                "subCode": "5.5GB+8Mins+7 Sms",
                "description": "3,000 - 5.5GB+8Mins+7 Sms (valid for 30 days)",
                "amount": 3000
            },
            {
                "subCode": "20GB",
                "description": "5,000 - 20GB (valid for 7 days)",
                "amount": 5000
            },
            {
                "subCode": "2GB+2Mins",
                "description": "1,500 - 2GB+2mins (valid for 30 days)",
                "amount": 1500
            },
            {
                "subCode": "600MB+2Mins",
                "description": "500 - 600MB+2Mins   (valid for 7 days)",
                "amount": 500
            },
            {
                "subCode": "12.5GB+2GB",
                "description": "5500 - 12.5GB+2GB (valid for 30 days)",
                "amount": 5500
            },
            {
                "subCode": "7GB",
                "description": "1800 - 7GB (valid for 2 days)",
                "amount": 1800
            },
            {
                "subCode": "75GB",
                "description": "18,000 - 75GB (valid for 30 days)",
                "amount": 18000
            },
            {
                "subCode": "14.5GB",
                "description": "5,000 - 14.5GB (valid for 30 days)",
                "amount": 5000
            },
            {
                "subCode": "1GB+100MB",
                "description": "500 - 1GB+100MB (valid for 1 days)",
                "amount": 500
            },
            {
                "subCode": "2.7GB+2mins",
                "description": "2000 - 2.7GB+2mins (valid for 30 days)",
                "amount": 2000
            },
            {
                "subCode": "20GB",
                "description": "7,500 - 20GB (valid for 30 days)",
                "amount": 7500
            },
            {
                "subCode": "1.5GB+100MB",
                "description": "600 - 1.5GB+100MB (valid for 2 days)",
                "amount": 600
            },
            {
                "subCode": "110MB",
                "description": "100 - 110MB (valid for 1 day)",
                "amount": 100
            },
            {
                "subCode": "480GB",
                "description": "90,000 - 480GB (valid for 90 days)",
                "amount": 90000
            },
            {
                "subCode": "7GB+2GB",
                "description": "3,500 - 7GB+2GB (valid for 30 days)",
                "amount": 3500
            },
            {
                "subCode": "12.5GB+36Mins+15SMS",
                "description": "5,500 - 12.5GB+36Mins+15SMS (valid for 30 days)",
                "amount": 5500
            },
            {
                "subCode": "500MB",
                "description": "350 - 500MB (valid for 1 day)",
                "amount": 350
            },
            {
                "subCode": "65GB",
                "description": "16,000 - 65GB (valid for 30 days)",
                "amount": 16000
            },
            {
                "subCode": "16.5GB",
                "description": "6,500 - 16.5GB (valid for 30 days)",
                "amount": 6500
            },
            {
                "subCode": "6GB",
                "description": "2,500 - 6GB (valid for 7 days)",
                "amount": 2500
            },
            {
                "subCode": "25GB",
                "description": "9,000 - 25GB (valid for 30 days)",
                "amount": 9000
            },
            {
                "subCode": "3.5GB+5mins",
                "description": "2,500 - 3.5GB+5mins (valid for 30 days)",
                "amount": 2500
            },
            {
                "subCode": "1GB+1GB",
                "description": "800 - 1GB+1GB (valid for 7 days)",
                "amount": 800
            },
            {
                "subCode": "230MB",
                "description": "200 - 230MB (valid for 1 day)",
                "amount": 200
            },
            {
                "subCode": "500MB+1GB YOUTUBE",
                "description": "500 - 500MB+1GB YOUTUBE (valid for 7 days)",
                "amount": 500
            },
            {
                "subCode": "3.5GB",
                "description": "1,500 - 3.5GB (valid for 7 days)",
                "amount": 1500
            },
            {
                "subCode": "150GB",
                "description": "40000 - 150GB (valid for 60 days)",
                "amount": 40000
            },
            {
                "subCode": "3.2GB",
                "description": "1000 - 3.2GB (valid for 2 days)",
                "amount": 1000
            },
            {
                "subCode": "36GB",
                "description": "11,000 - 36GB (valid for 30 days)",
                "amount": 11000
            },
            {
                "subCode": "6.75GB",
                "description": "3,000 - 6.75GB (valid for 30 days)",
                "amount": 3000
            },
            {
                "subCode": "1.8GB+6mins+5 Sms",
                "description": "1,500 - 1.8GB+6mins+5 Sms (valid for 30 days)",
                "amount": 1500
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smarthive-tech-solution.gitbook.io/smarthive-tech-solution-api/bills-payment/get-data-plans.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
