# Other functional use cases

## Using API as a data source

Ylem not only easily supports any modern database, data warehouse, or any other kind of data storage as a data source but is also very easy to use any API endpoint that returns JSON data as a data source.

To do that just configure an [API integration](/integrations/library-of-integrations/apis.md) first:

<figure><img src="/files/2OFObSMVcCMdTowv963i" alt=""><figcaption><p>API integration example</p></figcaption></figure>

And then use it as a first task in the pipeline. The rest works the same way as with any other SQL-based data source.

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

## Merge data from several sources

Often you don't have all necessary data stored in one storage but rather in a few ones. For example, the ones you have in your production database that are produced by your applications and the ones stored in your CRM.

Therefore before taking any action with data, you need to use [Merge](/pipelines/tasks-ip/merge.md) task:

<figure><img src="/files/0XNBfQHil3tMEnIa4yyc" alt=""><figcaption><p>Potential pipeline</p></figcaption></figure>

<figure><img src="/files/ofh1FafCbcyKjy1Ua0zn" alt=""><figcaption><p>How to configure merge task</p></figcaption></figure>

## Merge data from several sources consequently

<figure><img src="/files/VDydidCVcDn0QWjW3fIt" alt=""><figcaption><p>Possible pipeline</p></figcaption></figure>

## Data to CSV report

<figure><img src="/files/NhlS5nyGDYDQFzZRe6wn" alt=""><figcaption><p>Possible pipeline</p></figcaption></figure>

<figure><img src="/files/R6LVP4SXXwBI4EjjFfkq" alt=""><figcaption><p>Transforming data to CSV report</p></figcaption></figure>

## Calling API for each entity in the dataset

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


---

# 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.ylem.co/use-cases/functional-use-cases/other-functional-use-cases.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.
