Make API request
Fetch response from an API request
This transformation enables communicating with an external API. It's extremely valuable to gather extra context into your chain like getting search engine results and wikipedia pages. The response of the API request is then provided in the output to be used in other steps.

Screenshot of the API request transformation in the Notebook
Common errors
- API request failure
Schema
Inputs
Name | Description | Type | Required |
---|---|---|---|
URL | The URL endpoint to trigger | String | β |
Method | The fetch method to use | Enum | β |
Headers | The headers to send in the request | Object | οΌ |
Body | The body to send to the request | Object | οΌ |
Response type | The type to process the response with | Enum | οΌ |
Outputs
Name | Description | Type |
---|---|---|
Response body | The body of the API response | Undefined |
Status | The status code of the API response | Number |
Updated 4 months ago