This feature isnโt available on every plan.
Refer to your pricing plan to see if itโs included.
Create a code transformation
- Go to the Algolia dashboard and select your Algolia .
- On the left sidebar, select Data sources.
- Open the Connectors page.
- Select a connector and click Connect to start creating your task.
- Create a new source or select an existing one.
- To create a transformation function, click Create transformation.
Retrieve and store secrets
To call an external API, you typically need an API key or other credential type (such as basic access authentication or OAuth 2.0). You can store these credentials as a secret and reference them in your transformation code.
- Retrieve the secret from the third-party API.
- In your code transformation, click Secret.
- Paste in the third-party API key, give it name, then click Add.
JavaScript
How to use fetch helper functions
- Click Helper Functions.
- Select Fetch / API
- Select a helper and click Add.
Third-party APIs
Generic function
This function lets you connect to any service with an API.Thereโs a timeout and response size limit on all transformations that include Fetch requests.