Apr 30, 2025
Composition API client
The Composition API client is part of the algoliasearch
package.
To install this package, run:
Copy
1
dart pub add algoliasearch
To use the Composition client, add this import to your files:
Copy
1
import 'package:algolia_client_composition/algolia_client_composition.dart';
To create an instance of the client:
Copy
1
2
final client = CompositionClient(
appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY');
List of methods
Each method makes one request to the Composition API.
Search
client.search | Run a Composition |
client.searchForFacetValues | Search for facet values |
Did you find this page helpful?