{"id":15134683,"url":"https://github.com/benjamindpb/flask-api","last_synced_at":"2026-02-11T00:41:56.438Z","repository":{"id":123364853,"uuid":"558187220","full_name":"benjamindpb/flask-api","owner":"benjamindpb","description":"Flask API for Wikidata Atlas project","archived":false,"fork":false,"pushed_at":"2023-05-02T06:38:55.000Z","size":1245,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T05:14:22.293Z","etag":null,"topics":["api","backend","flask","geolocalization","mediawiki-api","preprocessing","python","wikidata","wikidata-dump"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjamindpb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-10-27T03:48:02.000Z","updated_at":"2023-03-02T09:04:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"76eed278-8496-4520-ab5b-cb6dd63c6723","html_url":"https://github.com/benjamindpb/flask-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamindpb%2Fflask-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamindpb%2Fflask-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamindpb%2Fflask-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamindpb%2Fflask-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjamindpb","download_url":"https://codeload.github.com/benjamindpb/flask-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411243,"owners_count":20934654,"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":["api","backend","flask","geolocalization","mediawiki-api","preprocessing","python","wikidata","wikidata-dump"],"created_at":"2024-09-26T05:23:46.849Z","updated_at":"2026-02-11T00:41:56.388Z","avatar_url":"https://github.com/benjamindpb.png","language":"Python","readme":"# Flask API for [Wikidata Atlas](https://wdatlas.dcc.uchile.cl/) project\n\n## Requirements\n\nThe Python version must be greater than or equal to **3.9**.\n\nTo install the additional requirements of the API, the following command must be executed in the terminal, located in the main folder of the API.\n```console\npip install -r requirements.txt\n```\n\n\n## API execution\n\nOnce all the API requirements have been installed, it is possible to run it. \n\nTo do this, you must execute the following command in the terminal:\n```console\npython app.py\n```\nWith this, the default API will be hosted in **localhost:5000** (http://127.0.0.1:5000)\n\n## Uses (API calls)\nThe API has the following endpoints to obtain information from the Wikidata database:\n\n- Getting instances of a georeferential type\n```console\nlocalhost:5000/data/\u003csearch\u003e/\u003climit\u003e\n```\nWhere **search** corresponds to the label of the type and **limit** to the number of instances to get.\n\n- Returns a dictionary with all georeferenceable types found after preprocessing the dump.\n```console\nlocalhost:5000/types\n```\n- Returns the information corresponding to a type, given its ID.\n```console\nlocalhost:5000/type/\u003cid\u003e\n```\nWhere **id** corresponds to the unique identifier of the entity ([entity ID](https://www.wikidata.org/wiki/Wikidata:Identifiers))\n\n- This endpoint is related to type search autocompletion. It is based on the percentage of georeferenceable instances of a given type to get all types whose label starts with the lookup that is entered as input.\n```console\nlocalhost:5000/autocomplete/\u003csearch\u003e\n```\nWhere **search** corresponds to a string that symbolizes the desired search.\n\n---\n\n[![Alt text](https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Wikidata_Stamp_Rec_Dark.svg/200px-Wikidata_Stamp_Rec_Dark.svg.png \"Powered by Wikidata\")](https://www.wikidata.org/wiki/Wikidata:Main_Page)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamindpb%2Fflask-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjamindpb%2Fflask-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamindpb%2Fflask-api/lists"}