> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/search-web/algolia.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Algolia

Algolia is a hosted search platform. Manage indices and records, run batch operations, browse records, and manage API keys and dictionaries.

![Algolia logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-e2a9ed83d2e6136fffa09dc635d9e4e0aa8380bb%2Falgolia.png?alt=media)

|                    |                                                                          |
| ------------------ | ------------------------------------------------------------------------ |
| **Category**       | [Search and web](https://docs.fastn.ai/connectors/catalog/search-web.md) |
| **Website**        | [algolia.com](https://algolia.com)                                       |
| **Authentication** | Application ID and API key                                               |
| **Slug**           | `algolia`                                                                |
| **On fastn.ai**    | [Embed Algolia in your product](https://fastn.ai/integrations/algolia)   |

## Setup

Your customers enter their application id and api key for Algolia when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Algolia from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Algolia**.
2. Select **Connect** on the Algolia card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Algolia's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Allowed Source</td><td><code>appendSource</code></td><td>Add a source. Adds a source to the list of allowed sources.</td></tr><tr><td>Add Or Replace Record</td><td><code>addOrUpdateObject</code></td><td>Add or replace a record. If a record with the specified object ID exists, the existing record is replaced. The record body is schemaless: pass each record attribute as a top-level input alongside the declared fields and it is sent verbatim in the request body.</td></tr><tr><td>Assign Multiple User IDs</td><td><code>batchAssignUserIds</code></td><td>Assign multiple userIDs. Assigns multiple user IDs to a cluster.</td></tr><tr><td>Assign User ID</td><td><code>assignUserId</code></td><td>Assign or move a user ID. Assigns or moves a user ID to a cluster.</td></tr><tr><td>Batch Dictionary Entries</td><td><code>batchDictionaryEntries</code></td><td>Add or delete dictionary entries. Adds or deletes multiple entries from your plurals, segmentation, or stop word dictionaries.</td></tr><tr><td>Batch Index Operations</td><td><code>batchIndexOperations</code></td><td>Batch indexing operations on one index. Adds, updates, or deletes records in one index with a single API request.</td></tr><tr><td>Batch Operations Across Indices</td><td><code>batchOperationsAcrossIndices</code></td><td>Batch indexing operations on multiple indices. Adds, updates, or deletes records in multiple indices with a single API request.</td></tr><tr><td>Browse Records</td><td><code>browse</code></td><td>Browse for records. Retrieves records from an index, up to 1,000 per request.</td></tr><tr><td>Clear Index Records</td><td><code>clearObjects</code></td><td>Delete all records from an index. Deletes only the records from an index while keeping settings, synonyms, and rules.</td></tr><tr><td>Clear Rules</td><td><code>clearRules</code></td><td>Delete all rules. Deletes all rules from the index.</td></tr></tbody></table>

<details>

<summary>View 79 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Clear Synonyms</td><td><code>clearSynonyms</code></td><td>Delete all synonyms. Deletes all synonyms from the index.</td></tr><tr><td>Copy Or Move Index</td><td><code>operationIndex</code></td><td>Copy or move an index. Copies or moves (renames) an index within the same Algolia application.</td></tr><tr><td>Create API Key</td><td><code>addApiKey</code></td><td>Create an API key. Creates a new API key with specific permissions and restrictions.</td></tr><tr><td>Create Record</td><td><code>createRecord</code></td><td>Add a new record (with auto-generated object ID). Adds a record to an index or replaces it. The record body is schemaless: pass each record attribute as a top-level input alongside the declared fields and it is sent verbatim in the request body.</td></tr><tr><td>Delete Allowed Source</td><td><code>deleteSource</code></td><td>Delete a source. Deletes a source from the list of allowed sources.</td></tr><tr><td>Delete API Key</td><td><code>deleteApiKey</code></td><td>Delete an API key. Deletes the API key.</td></tr><tr><td>Delete Index</td><td><code>deleteIndex</code></td><td>Delete an index. Deletes an index and all its settings.</td></tr><tr><td>Delete Record</td><td><code>deleteObject</code></td><td>Delete a record. Deletes a record by its object ID.</td></tr><tr><td>Delete Records By Query</td><td><code>deleteBy</code></td><td>Delete records matching a filter. This operation doesn't accept empty filters.</td></tr><tr><td>Delete Rule</td><td><code>deleteRule</code></td><td>Delete a rule. Deletes a rule by its ID.</td></tr><tr><td>Delete Synonym</td><td><code>deleteSynonym</code></td><td>Delete a synonym. Deletes a synonym by its ID.</td></tr><tr><td>Delete User ID</td><td><code>removeUserId</code></td><td>Delete user ID. Deletes a user ID and its associated data from the clusters.</td></tr><tr><td>Delete User Token Events</td><td><code>deleteUserToken</code></td><td>Delete user token events. Deletes all events related to the specified user token from events metrics and analytics.</td></tr><tr><td>Get Add To Cart Rate</td><td><code>getAddToCartRate</code></td><td>Retrieve add-to-cart rate. Retrieves the add-to-cart rate for all your searches with at least one add-to-cart event, including a daily breakdown.</td></tr><tr><td>Get Analytics Update Status</td><td><code>getAnalyticsUpdateStatus</code></td><td>Retrieve update status. Retrieves the time when the Analytics data for the specified index was last updated.</td></tr><tr><td>Get API Key</td><td><code>getApiKey</code></td><td>Retrieve API key permissions. Gets the permissions and restrictions of an API key.</td></tr><tr><td>Get Application Task Status</td><td><code>getAppTask</code></td><td>Check application task status. Checks the status of a given application task.</td></tr><tr><td>Get Average Click Position</td><td><code>getAverageClickPosition</code></td><td>Retrieve average click position. Retrieves the average click position of your search results, including a daily breakdown.</td></tr><tr><td>Get Click Positions</td><td><code>getClickPositions</code></td><td>Retrieve click positions. Retrieves the positions in the search results and their associated number of clicks.</td></tr><tr><td>Get Click Through Rate</td><td><code>getClickThroughRate</code></td><td>Retrieve click-through rate. Retrieves the click-through rate (CTR) for all your searches with at least one click event, including a daily breakdown.</td></tr><tr><td>Get Cluster Status</td><td><code>getClusterStatus</code></td><td>Retrieve cluster status. Retrieves the status of selected clusters.</td></tr><tr><td>Get Cluster Status Overview</td><td><code>getClusterStatusOverview</code></td><td>Retrieve status of all clusters. Retrieves the status of all Algolia clusters and instances.</td></tr><tr><td>Get Conversion Rate</td><td><code>getConversionRate</code></td><td>Retrieve conversion rate. Retrieves the conversion rate (CR) for all your searches with at least one conversion event, including a daily breakdown.</td></tr><tr><td>Get Dictionary Settings</td><td><code>getDictionarySettings</code></td><td>Retrieve dictionary settings. Retrieves the languages for which standard dictionary entries are turned off.</td></tr><tr><td>Get Index Settings</td><td><code>getSettings</code></td><td>Retrieve index settings. Retrieves an object with non-null index settings.</td></tr><tr><td>Get Index Task Status</td><td><code>getTask</code></td><td>Check task status. Checks the status of a given task.</td></tr><tr><td>Get Indexing Latency</td><td><code>getIndexingLatency</code></td><td>Retrieve indexing monitoring latency. Retrieves indexing latency metrics for selected clusters.</td></tr><tr><td>Get Infrastructure Metrics</td><td><code>getInfrastructureMetrics</code></td><td>Retrieve metrics. Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window.</td></tr><tr><td>Get Multiple Records</td><td><code>getObjects</code></td><td>Retrieve records. Retrieves one or more records, potentially from different indices.</td></tr><tr><td>Get No Click Rate</td><td><code>getNoClickRate</code></td><td>Retrieve no click rate. Retrieves the fraction of searches that didn't lead to any click within a time range, including a daily breakdown.</td></tr><tr><td>Get No Results Rate</td><td><code>getNoResultsRate</code></td><td>Retrieve no results rate. Retrieves the fraction of searches that didn't return any results within a time range, including a daily breakdown.</td></tr><tr><td>Get Purchase Rate</td><td><code>getPurchaseRate</code></td><td>Retrieve purchase rate. Retrieves the purchase rate for all your searches with at least one purchase event, including a daily breakdown.</td></tr><tr><td>Get Record</td><td><code>getObject</code></td><td>Retrieve a record. Retrieves one record by its object ID.</td></tr><tr><td>Get Revenue</td><td><code>getRevenue</code></td><td>Retrieve revenue data. Retrieves revenue-related metrics, such as the total revenue or the average order value.</td></tr><tr><td>Get Rule</td><td><code>getRule</code></td><td>Retrieve a rule. Retrieves a rule by its ID.</td></tr><tr><td>Get Search Latency</td><td><code>getSearchLatency</code></td><td>Retrieve search latency times. Retrieves the average latency for search requests for selected clusters.</td></tr><tr><td>Get Searches Count</td><td><code>getSearchesCount</code></td><td>Retrieve number of searches. Retrieves the number of searches within a time range, including a daily breakdown.</td></tr><tr><td>Get Synonym</td><td><code>getSynonym</code></td><td>Retrieve a synonym. Retrieves a synonym by its ID.</td></tr><tr><td>Get Top User IDs</td><td><code>getTopUserIds</code></td><td>Get top user IDs. Get the IDs of the 10 users with the highest number of records per cluster.</td></tr><tr><td>Get User ID</td><td><code>getUserId</code></td><td>Retrieve user ID. Returns the user ID data stored in the mapping.</td></tr><tr><td>Get User ID Mapping Status</td><td><code>hasPendingMappings</code></td><td>Get migration and user mapping status. To determine when the time-consuming process of creating a large batch of users or migrating users from one cluster to another is complete, this operation retrieves the status of the process.</td></tr><tr><td>Get Users Count</td><td><code>getUsersCount</code></td><td>Retrieve number of users. Retrieves the number of unique users within a time range, including a daily breakdown.</td></tr><tr><td>List Allowed Sources</td><td><code>getSources</code></td><td>List allowed sources. Retrieves all allowed IP addresses with access to your application.</td></tr><tr><td>List API Keys</td><td><code>listApiKeys</code></td><td>List API keys. Lists all API keys associated with your Algolia application, including their permissions and restrictions.</td></tr><tr><td>List Cluster Incidents</td><td><code>listClusterIncidents</code></td><td>Retrieve cluster incidents. Retrieves known incidents for the selected clusters.</td></tr><tr><td>List Clusters</td><td><code>listClusters</code></td><td>List clusters. Lists the available clusters in a multi-cluster setup.</td></tr><tr><td>List Dictionary Languages</td><td><code>getDictionaryLanguages</code></td><td>List available languages. Lists supported languages with their supported dictionary types and number of custom entries.</td></tr><tr><td>List Incidents</td><td><code>listIncidents</code></td><td>Retrieve all incidents. Retrieves known incidents for all clusters.</td></tr><tr><td>List Indices</td><td><code>listIndices</code></td><td>List indices. Lists all indices in the current Algolia application.</td></tr><tr><td>List Logs</td><td><code>getLogs</code></td><td>Retrieve log entries. The request must be authenticated by an API key with the logs ACL.</td></tr><tr><td>List Searches Without Clicks</td><td><code>listSearchesWithoutClicks</code></td><td>Retrieve top searches without clicks. Retrieves the most popular searches that didn't lead to any clicks, from the 1,000 most frequent searches.</td></tr><tr><td>List Searches Without Results</td><td><code>listSearchesWithoutResults</code></td><td>Retrieve the most frequent searches without results. Retrieves the 1,000 most frequent searches that produced zero results.</td></tr><tr><td>List Servers</td><td><code>listServers</code></td><td>Retrieve servers. Retrieves the servers that belong to clusters.</td></tr><tr><td>List Top Countries</td><td><code>listTopCountries</code></td><td>Retrieve top countries. Retrieves the countries with the most searches in your index.</td></tr><tr><td>List Top Filter Attributes</td><td><code>listTopFilterAttributes</code></td><td>Retrieve top filters. Retrieves the 1,000 most frequently used filter attributes.</td></tr><tr><td>List Top Filter Values</td><td><code>listTopFilterValues</code></td><td>Retrieve top filter values. Retrieves the 1,000 most frequent filter (facet) values for a filter attribute.</td></tr><tr><td>List Top Filters Without Results</td><td><code>listTopFiltersWithoutResults</code></td><td>Retrieve top filters for a search without results. Retrieves the 1,000 most frequently used filters for a search that didn't return any results.</td></tr><tr><td>List Top Hits</td><td><code>listTopHits</code></td><td>Retrieve top search results. Retrieves the object IDs of the 1,000 most frequent search results.</td></tr><tr><td>List Top Searches</td><td><code>listTopSearches</code></td><td>Retrieve top searches. Returns the most popular searches.</td></tr><tr><td>List User IDs</td><td><code>listUserIds</code></td><td>List user IDs. Lists the userIDs assigned to a multi-cluster application.</td></tr><tr><td>Partially Update Record</td><td><code>partialUpdateObject</code></td><td>Add or update attributes. Adds new attributes to a record, or updates existing ones. The record body is schemaless: pass each record attribute as a top-level input alongside the declared fields and it is sent verbatim in the request body.</td></tr><tr><td>Replace Allowed Sources</td><td><code>replaceSources</code></td><td>Replace allowed sources. Replaces the list of allowed sources.</td></tr><tr><td>Restore API Key</td><td><code>restoreApiKey</code></td><td>Restore an API key. Restores a deleted API key.</td></tr><tr><td>Save Rule</td><td><code>saveRule</code></td><td>Create or replace a rule. If a rule with the specified object ID doesn't exist, it's created.</td></tr><tr><td>Save Rules</td><td><code>saveRules</code></td><td>Create or update rules. Create or update multiple rules.</td></tr><tr><td>Save Synonym</td><td><code>saveSynonym</code></td><td>Create or replace a synonym. If a synonym with the specified object ID doesn't exist, Algolia adds a new one.</td></tr><tr><td>Save Synonyms</td><td><code>saveSynonyms</code></td><td>Create or replace synonyms. If a synonym with the objectID doesn't exist, Algolia adds a new one.</td></tr><tr><td>Search Dictionary Entries</td><td><code>searchDictionaryEntries</code></td><td>Search dictionary entries. Searches for standard and custom dictionary entries.</td></tr><tr><td>Search Facet Values</td><td><code>searchForFacetValues</code></td><td>Search for facet values. Searches for values of a specified facet attribute.</td></tr><tr><td>Search Index</td><td><code>searchSingleIndex</code></td><td>Search an index. Searches a single index and returns matching search results as hits.</td></tr><tr><td>Search Multiple Indices</td><td><code>searchMultipleIndices</code></td><td>Search multiple queries. Runs multiple search queries against one or more indices in a single API request.</td></tr><tr><td>Search Rules</td><td><code>searchRules</code></td><td>Search for rules. Searches for rules in your index.</td></tr><tr><td>Search Synonyms</td><td><code>searchSynonyms</code></td><td>Search for synonyms. Searches for synonyms in your index.</td></tr><tr><td>Search User IDs</td><td><code>searchUserIds</code></td><td>Search for user IDs. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.</td></tr><tr><td>Send Events</td><td><code>pushEvents</code></td><td>Send events. Sends a list of events to the Insights API.</td></tr><tr><td>Test Cluster Reachability</td><td><code>testClusterReachability</code></td><td>Test the reachability of clusters. Test whether clusters are reachable or not.</td></tr><tr><td>Update API Key</td><td><code>updateApiKey</code></td><td>Update an API key. Replaces the permissions of an existing API key.</td></tr><tr><td>Update Dictionary Settings</td><td><code>setDictionarySettings</code></td><td>Update dictionary settings. Turns standard stop word dictionary entries on or off for a given language.</td></tr><tr><td>Update Index Settings</td><td><code>setSettings</code></td><td>Update index settings. Update the specified index settings.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/search-web/algolia.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
