# Streaming from APIs

For streaming data from APIs, you need to read data in your pipeline with the "[API call](https://docs.ylem.co/pipelines/tasks-ip/api-call)" task:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FBjCn8vpWKFtFcZ2YVnTc%2FScreenshot%202024-04-29%20at%2020.22.56.png?alt=media&#x26;token=1424a09a-7deb-4817-9dbb-4ed2ebd59a79" alt=""><figcaption></figcaption></figure>

When the pipeline is triggered, this task will make an API request to the API Endpoint, you have configured in your [API integration](https://docs.ylem.co/integrations/library-of-integrations/apis) and use the response data for the entire pipeline.

&#x20;Some examples of the streaming pipelines from the API:

## Streaming from API to a database

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FPFOwGyaArh5xga0Y6I2d%2FScreenshot%202024-05-09%20at%2020.09.12.png?alt=media&#x26;token=089944e0-1183-4d67-a75b-f5b35eeb4b20" alt=""><figcaption></figcaption></figure>

## Streaming from API to API

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F9N5ox4WtkA5rt4T4gQVu%2FScreenshot%202024-05-09%20at%2020.10.49.png?alt=media&#x26;token=0f72103b-e85f-4008-bc63-fce45852cd8d" alt=""><figcaption></figcaption></figure>

Of course, the pipelines above are just examples and your real pipelines will most probably be more complicated and will contain more transformation and processing of data:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F0unpQAi6OtwQrMv5gJh3%2FScreenshot%202024-05-09%20at%2020.16.13.png?alt=media&#x26;token=c88f8c7a-476a-4833-a1a5-0950f1a8af5a" alt=""><figcaption></figcaption></figure>
