HTTP Request Actor avatar
HTTP Request Actor

Under maintenance

Pricing

Pay per usage

Go to Store
HTTP Request Actor

HTTP Request Actor

Under maintenance

Developed by

Christos Papaventsis

Christos Papaventsis

Maintained by Community

0.0 (0)

Pricing

Pay per usage

0

Total users

3

Monthly users

3

Runs succeeded

57%

Last modified

2 days ago

Generic HTTP Request Actor

This Apify actor makes a configurable HTTP request to a specified URL. It is designed to be a flexible, reusable tool that can be run directly or, more commonly, as the target of a schedule created by the "Generic Scheduler Actor".

Purpose

This actor serves as a bridge between the Apify scheduling system and any HTTP-based API or webhook. Instead of writing custom code for every simple API call, you can use this actor and configure its behavior through its input.

Input

The actor is configured using a JSON object with the following properties:

FieldTypeDescription
urlStringRequired. The full URL to which the request will be sent.
methodStringRequired. The HTTP method to use. Supported values: GET, POST, PUT, DELETE, PATCH.
headersObjectA JSON object of key-value pairs to be sent as request headers. Defaults to {"Content-Type": "application/json"}.
payloadObjectA JSON object that will be sent as the request body. This is ignored for GET requests.
responseTypeStringHow to parse the server's response. Supported values: json, text. Defaults to json.

Example Input

This example shows how to configure the actor to send a POST request to a webhook with a JSON payload.

{
"url": "[https://api.example.com/v1/webhooks/trigger](https://api.example.com/v1/webhooks/trigger)",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_SECRET_TOKEN"
},
"payload": {
"event": "daily_report_requested",
"source": "apify_actor"
}
}