Documentation Search
Discover how to integrate Apidog with Algolia to enhance search functionality for your API documentation.
By default, the published API documentation includes a built-in search feature that lets users search for endpoints or documentation by name or path.
Additionally, Apidog offers integration with Algolia to enhance search capabilities. To take advantage of this feature, you'll need to enable it and complete the required configurations. Note that your Apidog version must be 2.6.31 or higher.
:::tip
Algolia is free to use, but it comes with certain limits. To increase these limits, you can either upgrade to Algolia's paid version or apply for the free Algolia DocSearch plan.
:::
Integrating Algolia with Apidog
Integrating Apidog with Algolia enhances the search functionality of your API documentation. Follow these steps to set it up:
Step 1: Create an Algolia Account
- Visit the Algolia website and sign up for an account.
- After registering, log in to your Algolia account.
Step 2: Create an Algolia Application
- Once logged in, create a new application in the Algolia dashboard.
- Click on
Upload a File
to upload data.
:::tip
For starters to set up easier, you can use the provided example code to generate a JSON file. Simply drag and drop the JSON file into Algolia. The JSON file's name will be your Index Name
, which you’ll need later in Apidog’s documentation search configuration.
:::
- Design your search display.
- Proceed by clicking
Next
until you reach the final step.
- In the final step, you will be asked how you want to build the search front-end. You can skip this option.
Step 3: Configure Apidog with Algolia Settings
- In the Algolia dashboard, locate the configuration details for your application.
TheIndex Name
will be displayed here:
- Copy and fill these configuration details into Apidog’s documentation search settings.
Step 4: Save and Enable the Feature
After filling in the required configuration details in Apidog, save the settings to enable the enhanced search functionality.
:::tip
While Algolia is free to use, there are limits on its usage. You can either upgrade to a paid plan for higher limits or apply for the free Algolia DocSearch plan.
If you hit the free plan’s limits, you will see a notification in Apidog:
:::
Free Algolia DocSearch Plan
Algolia offers a free DocSearch plan for specific purposes (like documentation search). You can apply for the free Algolia DocSearch plan here. For theDocumentation URL
field in the application form, you can enter your public API documentation URL from Apidog.
Once the application is successful, Algolia will send you an confirmation email, and you will receive a message in Algolia dashboard inviting you to join the application. Click to confirm to join the application Algolia offers.
After confirmation, switch to the application at the top left corner of the dashboard, copy theApplication ID
andSearch API Key
and fill in the corresponding fields in Apidog. Please note that theWrite API Key
needs to be found in a different location.
To find theWrite API Key
, follow the steps below:
The Algolia API Key
here needs to be configured into the Write API Key
in the Apidog configuration item.
Similarly, the value ofIndex Name
can be found here: