Send Server Actor request
send-server-actor-requestSend one HTTP request to an Actor Server’s documented API endpoint, with method, path, query, and JSON body, to fetch results or trigger an Actor run.
Instructions
Send one HTTP request to an Actor Server: the HTTP API of a Server Actor, documented in its API schema (OpenAPI) and README. fetch-actor-details with output.serverInterface returns the documented operations with their parameters. Give the method, the path, and optionally query parameters and a JSON body; the Actor Server's host and your Apify API token are added for you. Only an Actor with an Actor Server and an API schema takes requests here; the Actor accepts or rejects the method and path. A request to a single-tenant Actor Server can start a run of the Actor in your account, kept until its idle timeout; a multi-tenant Actor Server charges per event. The request is sent once, with no retries and without following redirects. A JSON, text, or XML response body is returned as text, cut at 262144 bytes; other content types are not returned.
Example call: {"actor": "apify/rag-web-browser", "method": "GET", "path": "/search", "query": {"query": "AI news", "maxResults": 3}}
USAGE:
Use when the Actor that fits the user's request has an Actor Server, and its API schema or README names the endpoint for the task.
Fits requests for one or a few results returned in the HTTP response. Larger batches depend on the endpoint and the response size and time limits.
USAGE EXAMPLES:
user_input: Search the web for the latest AI news and read the top pages with apify/rag-web-browser
user_input: Read https://docs.apify.com as Markdown with apify/rag-web-browser
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actor": "<actor>",
"method": "<method>",
"path": "<path>"
},
"name": "send-server-actor-request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The JSON request body, sent as application/json. Not allowed with GET. | |
| path | Yes | The path of an operation in the Actor API schema, starting with /. Take it from the schema; do not guess it. A query string written into the path is sent too. | |
| actor | Yes | The Actor: its ID, or its name in the "username/name" form, such as "apify/web-fetch". | |
| query | No | Query parameters of the operation, by name. A boolean is sent as true or false, and an array as a repeated parameter (name=a&name=b), or comma-joined (name=a,b) where the operation documents the parameter so. Added to a query string in the path. | |
| method | Yes | HTTP method: GET, POST, PUT, PATCH, or DELETE. The Actor accepts or rejects it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body as text; empty when the response had none; its start when truncated; absent when omitted | |
| path | Yes | Path sent, with its query | |
| bytes | No | Size of the body received in bytes, after decompression | |
| method | Yes | HTTP method sent | |
| reason | No | Why the response body was omitted | |
| status | Yes | HTTP status received | |
| actorId | Yes | Actor ID | |
| summary | Yes | Readable summary of the HTTP response | |
| tenancy | Yes | single-tenant: a run of the Actor in your account served the request; multi-tenant: a run of the Actor's owner did, charged per event | |
| location | No | Location header of a redirect, which is not followed | |
| nextStep | No | Where to look to correct the request, or why the Actor Server refused it | |
| actorName | Yes | Actor full name (username/name) | |
| interface | Yes | The Actor interface used: its Actor Server | |
| bodyOmitted | No | The response arrived, but its body was not returned | |
| contentType | No | Content-Type of the response; absent when it had none | |
| errorMessage | No | The error string of a JSON {"error": ...} error body; other error bodies are only in body | |
| bodyTruncated | No | The response body is longer than the limit; body holds its start |