Repository navigation
Include user-friendly versions of geolocation data in API results #1810
Closed
Devvypaws
started this conversation in
Anything Else
Replies: 2 comments
|
Thanks for the request! Good point for sure, the Geonames database we use to fetch display names for cities takes about 1GB of memory. The data you requested can be added fairly easily. No worries about Clickhouse load or anything like that. All the data is already in memory. |
0 replies
|
The Stats API now has country, region and city names as dimensions: visit:country_name, visit:region_name and visit:city_name. The Stats API is part of the Business plan: https://plausible.io/docs/stats-api |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature Request
This request is composed of two related features:
An alternative could be an endpoint that can provide this information when given a geolocation code. This data would be cacheable on the requesting site's side to reduce load on the API server if that is a concern; we're not knowledgeable on the performance characteristics of Clickhouse.
Background
We're developing a plugin for a CMS that currently uses the official cloud-hosted API to provide data for an analytics dashboard. While installing a mapping of country codes in the database would be reasonable, — maybe even regions — the entirety of the cities data set is too large and an unreasonable ask for site owners. We cannot know a site's capabilities upfront, both processing- and storage-wise, and would like to make this plugin usable by as many site owners as possible to encourage the switch from other analytics platforms.
In regard to part 2 of the request, our motivation for this is to be able to provide country flags alongside regions and cities, similar to the official Plausible dashboard.
All reactions