{"id":15560695,"url":"https://github.com/tyrasd/taghistory","last_synced_at":"2025-10-25T01:07:16.253Z","repository":{"id":66191426,"uuid":"64540224","full_name":"tyrasd/taghistory","owner":"tyrasd","description":":chart_with_upwards_trend: History of OSM tag usage","archived":false,"fork":false,"pushed_at":"2024-04-29T05:16:19.000Z","size":785,"stargazers_count":41,"open_issues_count":21,"forks_count":5,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-12T07:43:26.521Z","etag":null,"topics":["openstreetmap","openstreetmap-data","openstreetmap-history","taginfo"],"latest_commit_sha":null,"homepage":"http://taghistory.raifer.tech/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyrasd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T11:09:12.000Z","updated_at":"2024-11-02T10:13:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"8553f63c-c06d-4171-ab01-7d99bdb85d4b","html_url":"https://github.com/tyrasd/taghistory","commit_stats":{"total_commits":59,"total_committers":5,"mean_commits":11.8,"dds":0.3728813559322034,"last_synced_commit":"75de1815e79fdeff9da9dec4ce20fa8419a9bf94"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyrasd/taghistory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Ftaghistory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Ftaghistory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Ftaghistory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Ftaghistory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyrasd","download_url":"https://codeload.github.com/tyrasd/taghistory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Ftaghistory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264972154,"owners_count":23691376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openstreetmap","openstreetmap-data","openstreetmap-history","taginfo"],"created_at":"2024-10-02T16:02:27.787Z","updated_at":"2025-10-25T01:07:11.207Z","avatar_url":"https://github.com/tyrasd.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"OSM Tag Usage Analysis\n======================\n\nGenerates graphs of the usage of arbitrary [OSM](//osm.org) [tags](//wiki.openstreetmap.org/wiki/Tags) over time (with daily granularity) by number of OSM objects. Read more about OSM tags and this tool in my blog [article](http://www.openstreetmap.org/user/tyr_asd/diary/39402).\n\n\u003cimg src=\"https://wiki.openstreetmap.org/w/images/a/a6/Highway%3Dford_vs_ford%3Dyes.svg\" width=\"700\"\u003e\n\nWarning: The output is (currently) only given in terms of numbers (counts) of OSM objects! Similarly to some of the statistics produced by [taginfo](//taginfo.openstreetmap.org), it is subject to the same limitations, most notably the effect that one cannot directly compare the number of tags used for different linear and polygonal features such as roads, land cover, etc. because such features are typically divided up into many OSM objects of different sizes. For example, an existing road may be divided up into two pieces when a new turn restrictions is added, resulting in that the count of each of the tags used on the road (even obsolete ones) is increased by one in the OSM database. That means that one needs to pay close attention when comparing tags that are typically used on such features, even when one's comparing subtags that are typically used on the same kind of parent object (e.g. different values of the `highway` tag).\n\nTechnicalities\n--------------\n\nA simple osmium script (see [`/backend/`](https://github.com/tyrasd/taghistory/tree/master/backend)) scans through a planet history dump and aggregates daily net differences of all used tags by osm object type (node/way/relation). This takes care of created and deleted objects as well as tag modifications in between different versions of an object.\n\nThis data is then stored into an sqlite database and is exposed by a simple REST API.\n\nAPI\n---\n\n\u003e Taghistory's own API is quite limited and currently not updated regularly. Please consider using an alternative like the \u003ca href=\"https://taginfo.openstreetmap.org/taginfo/apidoc\"\u003eTaginfo chronology API\u003c/a\u003e or the \u003ca href=\"https://api.ohsome.org\"\u003eohsome API\u003c/a\u003e instead.\n\nData returned from the taghistory API described below is available under the terms of the [ODbL 1.0](http://opendatacommons.org/licenses/odbl/1.0/) license and copyright © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright).\n\n### `GET /\u003ctype\u003e/\u003ckey\u003e/\u003cvalue\u003e[?format=\u003cformat\u003e]`\n\nGets the osm object count history for the given tag (`key`, `value`) of the given OSM object type (`type`). `type` can be `***` to search for any object type.\n\nReturns a JSON array of objects containing `date`, `delta` and `count` fields indicating the net change (`delta`) of the respective tag usage on a particular `date`. `count` contains a running cummulative sum of the object counts for convenience.\n\nThe optional GET-parameter `format` can be one of `json` (default value if omitted, see the example below) or `csv` for a downloadable csv file.\n\nExample: `http://taghistory.raifer.tech/relation/amenity/drinking_water`\n\n```json\n[\n  {\"date\":\"2010-08-03T00:00:00.000Z\",\"delta\":1,\"count\":1},\n  {\"date\":\"2010-08-28T00:00:00.000Z\",\"delta\":3,\"count\":4},\n  …,\n  {\"date\":\"2014-10-28T00:00:00.000Z\",\"delta\":-3,\"count\":0}\n]\n```\n\n### `GET /\u003ctype\u003e/\u003ckey\u003e[?format=\u003cformat\u003e]`\n\nSame as above, but matches any tag with the given key.\n\ntodos\n-----\n\n* implement regular (e.g. daily) data updates\n* for linear and polygonal objects: use length or area as a metric instead of object count\n\nsee also\n--------\n\n* [ohsome dashboard](https://ohsome.org/apps/dashboard) – Provides detailed statistics about the historical development of OpenStreetMap data\n* [taginfo](https://github.com/joto/taginfo) – Brings together information about OpenStreetMap tags and makes it searchable and browsable, as of November 2020 it also provides a [tag chronology](https://blog.jochentopf.com/2020-11-08-10-years-of-taginfo.html) tab.\n* [osm-analytics](https://github.com/hotosm/osm-analytics) – Analyse interactively how and when specific OpenStreetMap features are mapped in specific regions\n* [*Stats* page](http://wiki.openstreetmap.org/wiki/Stats) on the OSM Wiki\n* various specialized and/or local stats keeper projects, for example [road km's in Italy](http://www.gfoss.it/osm/stat/), [Wochenaufgabe](http://blog.openstreetmap.de/blog/category/wochenaufgabe/)'s [OSM Count](http://thefive.sabic.uberspace.de/table/GuidePost_Node.html) (currently offline), [\nhousenumber evaluation on regio-osm.de](http://regio-osm.de/hausnummerauswertung/theoretischeabdeckung.html), [Building coverage in Austria](https://osm-austria-building-coverage.thomaskonrad.at/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrasd%2Ftaghistory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyrasd%2Ftaghistory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrasd%2Ftaghistory/lists"}