> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/model-functions/api-requests.md).

# External API Requests Data Models

Blocks for working with External API Requests data models.

{% hint style="info" %}
Read more about External API Requests [here](/docs/business-logic/external-api-requests.md).
{% endhint %}

Use these blocks to build up the various inputs to the [External API Requests block](/docs/business-logic/block/external-api-requests.md), and to expand its outputs. Additionally, there are blocks for working with the virtual models defined in the External API Requests. All the data models have their respective "make" and "expand" blocks. Below you will find the most commonly used blocks and their respective data models.

![](https://3563768697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MapxHzVskQ_27pNUTT4%2F-Miix6l90eQZCdAz56v1%2F-Mij17sT3Xk8Cva6oyBn%2Fimage.png?alt=media\&token=3afa1d27-e4a3-4762-8633-8885d194e3b8)

**Tip:** External API Requests data model blocks follow this naming convention: "Make/Expand APIRequestName DataModel In/Out(\_VirtualModel)", for example, "Expand AlphaVantage Body Model Out\_Realtime Currency Exchange Rate".

| Data Model      | API Block |                                                                                                                                                                                                                                                                                                                                        |
| --------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL Params      | Input     | [Make APIRequestName URL Params Model In](/docs/business-logic/block/model-functions/api-requests/make-apirequestname-url-params-model-in.md)                                                                                                                                                                                          |
| Body            | Input     | [Make APIRequestName Body Model In](/docs/business-logic/block/model-functions/api-requests/make-apirequestname-body-model-in.md)                                                                                                                                                                                                      |
| Headers         | Input     | [Make APIRequestName Headers Model In](/docs/business-logic/block/model-functions/api-requests/make-apirequestname-headers-model-in.md)                                                                                                                                                                                                |
| Query           | Input     | [Make APIRequestName Query Model In](/docs/business-logic/block/model-functions/api-requests/make-apirequestname-query-model-in.md)                                                                                                                                                                                                    |
| Headers         | Output    | [Expand APIRequestName Headers Model Out](/docs/business-logic/block/model-functions/api-requests/expand-apirequestname-headers-model-out.md)                                                                                                                                                                                          |
| Response Status | Output    | [Expand APIRequestName Response Status Model Out](/docs/business-logic/block/model-functions/api-requests/expand-apirequestname-response-status-model-out.md)                                                                                                                                                                          |
| Body            | Output    | [Expand APIRequestName Body Model Out](/docs/business-logic/block/model-functions/api-requests/expand-apirequestname-body-model-out.md)                                                                                                                                                                                                |
| Virtual Model   | Either    | <p><a href="/docs/business-logic/block/model-functions/virtual-data-models/make-virtual-data-model.md">Make APIRequestName DataModel In/Out\_VirtualModel</a></p><p><a href="/docs/business-logic/block/model-functions/virtual-data-models/expand-virtual-data-model.md">Expand APIRequestName DataModel In/Out\_VirtualModel</a></p> |
