Pricing structure
For one of its products, Algolia Search, the platform lets customers subscribe for free and pay only for the usage they generate.
Although users don’t need to subscribe to access the platform, Algolia offers its customers discounts based on volume and commitment (rates available upon request).
Get started
1
Set up Lago
2
Create a billable metric
Create a billable metric to track request usage for the Search API.
- Set the
aggregation_typetosum_aggto sum all request volumes - Set the
field_nametosearch_requests_volumefor Search API tracking - Set the
recurringtofalsefor metered billing
3
Create a plan
Create a plan to price packages of requests used.Refer to the API reference and guide on package charges to learn more.
- Set the
amount_centsto0since there is no subscription fee - Set the
chargesto usepackagepricing model with Algolia’s rates - Configure
free_unitsof 10,000 requests per month included
4
Create a customer
5
Create a subscription
Create a subscription for the customer with the plan’s Refer to the API reference to create a subscription.
code.6
Ingest usage via events
Send usage events to Lago to track API requests.Refer to the API reference to create an event.
- Set the
codeto match your billable metric code - Include
search_requests_volumeproperty with the number of requests
7
Monitor current usage
Track real-time customer usage for the current billing period.Refer to the API reference to get the current usage.
Wrap-up
‘Pay-as-you-go’ pricing strategies are popular among API companies like Algolia. With Lago, you can adapt this template to your products and services, using:- Plans, with or without a subscription fee;
- Billable metrics, including the
sum_aggaggregation type; and - Charges, including the package charge model.