{"id":31714145,"url":"https://github.com/freifunk/openwifimap-api","last_synced_at":"2025-10-09T01:10:18.977Z","repository":{"id":46102293,"uuid":"9961187","full_name":"freifunk/openwifimap-api","owner":"freifunk","description":"OpenWiFiMap database and its api","archived":false,"fork":false,"pushed_at":"2021-11-17T00:58:06.000Z","size":38,"stargazers_count":35,"open_issues_count":5,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-03-26T00:12:40.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freifunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-09T14:44:43.000Z","updated_at":"2024-03-26T00:12:40.522Z","dependencies_parsed_at":"2022-08-22T13:51:13.755Z","dependency_job_id":null,"html_url":"https://github.com/freifunk/openwifimap-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freifunk/openwifimap-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freifunk%2Fopenwifimap-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freifunk%2Fopenwifimap-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freifunk%2Fopenwifimap-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freifunk%2Fopenwifimap-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freifunk","download_url":"https://codeload.github.com/freifunk/openwifimap-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freifunk%2Fopenwifimap-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000725,"owners_count":26082894,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-09T01:01:41.466Z","updated_at":"2025-10-09T01:10:18.970Z","avatar_url":"https://github.com/freifunk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openwifimap-api (Python)\nOpenWiFiMap is a database and map for free network WiFi routers (freifunk and others, too!).\n\nThis is the database/backend part of the openwifimap.\nMake sure to also take a look at its web frontend, the [openwifimap HTML5 app](https://github.com/freifunk/openwifimap-html5).\n\nThe original backend was written in Javascript using CouchDB.\nSince maintaining that was problematic, it was rewritten in 2020/2021 to use Python/FastAPI/PostgreSQL.\n\n# API\nSee the Swagger API docs at `/docs` on the running backend (at [api.openwifimap.net/docs](https://api.openwifimap.net/docs), for example).\n\nThe somewhat more verbose old API doc can be found in the [old API.md](https://github.com/freifunk/openwifimap-api/blob/f9001452f4f4a72c4dbd59dd736436b6c5733775/API.md).\n\n# License\nopenwifimap is licensed under the [MIT license](http://opensource.org/licenses/MIT).\n\n# Development info\nThe backend is basically keeping a list of JSON documents on disk which can get queried and updated via a web API.\nThe database is used as search index only.\nPostgreSQL is total overkill for this but ¯\\_(ツ)_/¯\n\nThe interesting part of the code is in [restapi.py](/backend/backend/restapi.py).\n\nIn case you wonder, endpoint definitions are a bit complicated (BaseModel, response_model, Field, Query, ...) since FastAPI can generate nice Swagger API docs from this.\n\n## Dev notes\n* sudo docker run --name owm_psql -p 127.0.0.1:5432:5432 -e POSTGRES_PASSWORD=\u003cpwd\u003e -e POSTGRES_USER=owmuser -e POSTGRES_DB=owmdb -d postgres:latest\n* PostgreSQL earthdistance extension: https://postindustria.com/postgresql-geo-queries-made-easy/ (not used yet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreifunk%2Fopenwifimap-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreifunk%2Fopenwifimap-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreifunk%2Fopenwifimap-api/lists"}