Retrieve top countries

Retrieves the countries with the most searches in your index.

Usage

Required ACL: analytics
1
2
3
4
5
require "algolia"

client = Algolia::AnalyticsClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION")

response = client.get_top_countries("index")
Did you find this page helpful?