Skip to content
Maua.Culturewire

Algolia

Indices, searches, records, rules, synonyms and analytics

Developer toolsCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Application IDRequiredSubdomain
    • API keySecretRequired

    Where to find them

    1. In dashboard.algolia.com → “Settings” → “API Keys” copy the “Application ID”.
    2. Better to use a dedicated key with just the right permissions: in “All API Keys” → “New API Key”, give it a description, limit it to the indices you want and select the necessary ACLs (search, browse and listIndexes to read; settings, addObject or deleteObject only if you will change something; analytics for statistics).
    3. Click “Create” and copy the key. The “Admin API Key” also works, but it gives full control of the application.

    Get credentials (opens in a new tab)

Tools (2)

  • Algolia API requestALGOLIA_SEND_REQUEST

    Authenticated call to the Algolia API (https://{app_id}.algolia.net/1). Any endpoint of the API is allowed. Paths are relative to /1. Examples: GET /indexes, POST /indexes/{index}/query {"query": "…", "filters": "category:books AND price < 20", "hitsPerPage": 20, "analytics": false}, POST /indexes/*/queries {"requests": [{"indexName": "…", "query": "…"}]}, POST /indexes/{index}/browse {"hitsPerPage": 1000} (all records; continue with the cursor), GET /indexes/{index}/{objectID}, GET /indexes/{index}/settings, PUT /indexes/{index}/settings {…}, PUT /indexes/{index}/{objectID} {…} (creates or replaces), POST /indexes/{index}/{objectID}/partial {…}, POST /indexes/{index}/batch {"requests": [{"action": "addObject", "body": {…}}]}, DELETE /indexes/{index}/{objectID}, GET /indexes/{index}/task/{taskID} (status of a write), POST /indexes/{index}/rules/search {"query": ""}, POST /indexes/{index}/synonyms/search {"query": ""}, GET /keys, GET /logs?length=20.

    Required scopes

    No scopes required

    Input

    Algolia API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • Search an indexALGOLIA_SEARCH_INDEX

    Searches an index and returns the total number of results and the records found (with the requested attributes), with optional filters. The search does not count towards analytics.

    Required scopes

    No scopes required

    Input

    Search an index input
    NameTypeDescription
    indexrequiredstringIndex name (GET /indexes lists them)
    querystringText to search (empty: all records)Default: ""
    filtersstringAlgolia filter, e.g. category:books AND price < 20
    attributesstring[]Attributes to return (empty: those configured in the index)
    maxintegerDefault: 20
    pageintegerPage, starting at 0Default: 0