Algolia: Request
Example
Example
- Makes direct requests to Algolia API
- Supports all Algolia endpoints
- Flexible payload construction
- Used for search, indexing, and management operations
- Returns Algolia API response
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cloud.algolia.request {
application_id = ""
api_key = ""
url = ""
method = "POST"
payload =
} as x1
| Parameter | Purpose | Example | |
|---|---|---|---|
| application_id | Algolia application ID | "ABCDEF123456" | |
| api_key | Algolia API key | "1234567890abcdef" | |
| url | Algolia API endpoint | "/1/indexes/products/search" | |
| method | HTTP method for request | "POST", "GET", "PUT", "DELETE" | |
| payload | Request body data | {query: "search term"} | |
| as | Alias for response | x1, search_results | \ |
Example
cloud.algolia.request {
application_id = $env.ALGOLIA_APP_ID
api_key = $env.ALGOLIA_API_KEY
url = "/1/indexes/products/search"
method = "POST"
payload = {
query: $input.search_term,
hitsPerPage: 20,
page: 0
}
} as search_response
Was this page helpful?