# Data as API

{% hint style="success" %}
*Check out the given walk-through on how to publish Data as an API using the Data Center module.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIctE5LjGWDD6zEdW4vpJ%2Fuploads%2F0wp9NimwLm1zKMVFjgrC%2FData%20as%20API.mp4?alt=media&token=3de107af-0c6b-4d6c-a462-be24019d6fec>" %}
***Publishing Data as an API***
{% endembed %}

Data as API is an approach that allows exposing data as Application Programming Interfaces (APIs) for easy access and integration by other systems, applications, or developers. It allows data providers to make their data available and consumable by external parties in a programmatic manner.

Data as API shifts the traditional concept of sharing data by encapsulating the data and its operations within a well-defined API. This enables developers to interact with the data using standard API protocols without getting worried about the underlying storage or implementation details.

* Navigate to the ***Data Center*** homepage.
* Click the ***New*** option.
* Select the ***Data As API*** option from the ***New*** menu.

<figure><img src="/files/QEo584Q2cnnIpYjFH2cX" alt=""><figcaption><p><em><strong>Data As API option under the New menu</strong></em></p></figcaption></figure>

* The user gets redirected to the ***Data as API*** page displaying the available Data sets (data).
* Select a ***Data Set*** from the displayed list.
* Click on the ***Publish As Data Service*** icon.

<figure><img src="/files/6Rq8X1ossB1jXi3Xl195" alt=""><figcaption><p><em><strong>Accessing the Publish as Data Service option</strong></em></p></figcaption></figure>

* The ***Publish As Data Service*** form opens.
* Provide the following information:
  * Service Name
  * Select a category or create a new Category.
  * Description
  * Parameters
  * Limit (You can specify the no. of records you want in the Limit field).
* Click the ***Save*** option.

<figure><img src="/files/qyzfAGCtAi7vIM5001yq" alt=""><figcaption><p><em><strong>The Publish As Data Service form</strong></em></p></figcaption></figure>

* A confirmation message notifies the users that the selected data source has been published as a service.
* The published data gets listed under the Data as API list.

<figure><img src="/files/vrRpgat9PvXckrQWdeJS" alt=""><figcaption><p><em><strong>The newly published Data as API gets listed at the top of the list</strong></em></p></figcaption></figure>

* *The Data Set published as a data service appears under the drop-down menu of the **API Client Registration** form (as displayed in the below-given image).*

<figure><img src="/files/VowwPQKyfm6vuxSsmtSe" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

* *The user can add filter(s) to the data set as a service.*
* The user needs to register a new client to access the newly published data as an API.
* Once the data is exported as API, the user can consume it using the [**API Ingestion** ](https://docs.bdb.ai/data-pipeline-3/components/consumers/api-ingestion-and-webhook-listener)component under the Data Pipeline module.
  {% endhint %}

<table data-header-hidden><thead><tr><th width="121.33333333333331"></th><th width="143"></th><th></th></tr></thead><tbody><tr><td><strong>Icon</strong></td><td><strong>Name</strong></td><td><strong>Action</strong></td></tr><tr><td>​​<img src="/files/1DA5Myo135nW6FQ2I1Af" alt=""></td><td>Push to VCS</td><td>Pushes a version of the Data as API to VCS</td></tr><tr><td>​​<img src="/files/KB200625Ys8isHKK9swD" alt=""></td><td>Pull from VCS</td><td>Pulls a version from the VCS</td></tr><tr><td>​<img src="/files/jyOkl1b083nwlSpkP0la" alt="">​</td><td>Edit</td><td>Opens the Publish as Data Service form for the selected Data as API to modify the information.</td></tr><tr><td>​<img src="/files/Ow5P4v8rCJEw6x9F8aYy" alt="">​</td><td>No data message configuration</td><td>A dialog box appears to configure the message that gets displayed when no data is shown under the Published API.</td></tr><tr><td>​​<img src="/files/Lbj3FhknJVJNKU7eSLn4" alt=""></td><td>Delete</td><td>Deletes the selected Data as API service from the list.</td></tr></tbody></table>


---

# 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://docs.bdb.ai/data-center-4/data-center/data-as-api.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.
