fetch_api
Make REST API requests using HTTP methods like GET, POST, PUT, and DELETE with custom headers, body content, and timeout settings.
Instructions
Make a REST API request with various methods, headers, and body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL for the API endpoint. | |
| method | Yes | HTTP method for the request. | |
| headers | No | Request headers (e.g., for authorization). | |
| body | No | Request body (JSON object, string, etc.). | |
| timeout | No | Request timeout in milliseconds (default: 60000). | |
| limit | Yes | Maximum number of characters to return in the response body (required). | |
| redirect | No | Redirect mode for the request (default: follow). |