# Fetch data bundles

## Fetch data bundles

<mark style="color:blue;">`GET`</mark> `https://sagecloud.ng/api/v2/internet/data/lookup`

This endpoint allows you to fetch data bundles for a data provider

#### Query Parameters

| Name     | Type   | Description          |
| -------- | ------ | -------------------- |
| provider | string | The network provider |

#### Headers

| Name           | Type   | Description             |
| -------------- | ------ | ----------------------- |
| Authentication | string | Check the Headers page. |

{% tabs %}
{% tab title="200 This is a sample response for AIRTEL." %}

```
{    
    "success": true,
    "data": {
        "status": 1,
        "error": false,
        "data": [
            {
                "type": "AIRTELDATA",
                "code": "002",
                "description": "40MB 1Day",
                "amount": "50",
                "price": "50",
                "value": "40MB",
                "duration": "1Day"
            },
            {
                "type": "AIRTELDATA",
                "code": "003",
                "description": "200MB 3Days",
                "amount": "200",
                "price": "200",
                "value": "200MB",
                "duration": "3Days"
            },
            {
                "type": "AIRTELDATA",
                "code": "004",
                "description": "350MB 7Days",
                "amount": "300",
                "price": "300",
                "value": "350MB",
                "duration": "7Days"
            },
            ...
        ],
        "date": "2020-11-23T14:45:40.606853Z",
        "message": "Data lookup successful"
}
```

{% 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://capitalsage.gitbook.io/sagecloud/data/data-lookup.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.
