{"id":15134782,"url":"https://github.com/starcitizenwiki/apiunto","last_synced_at":"2026-01-19T07:32:30.528Z","repository":{"id":65556334,"uuid":"217113432","full_name":"StarCitizenWiki/Apiunto","owner":"StarCitizenWiki","description":"Lua Extension for MediaWiki to access the Star Citizen Wiki API","archived":false,"fork":false,"pushed_at":"2023-07-19T10:33:43.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-09-20T04:25:36.667Z","etag":null,"topics":["lua","lua-extension","mediawiki"],"latest_commit_sha":null,"homepage":"https://api.star-citizen.wiki","language":"PHP","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/StarCitizenWiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2019-10-23T17:19:52.000Z","updated_at":"2024-05-12T12:28:18.944Z","dependencies_parsed_at":"2024-05-12T12:28:16.974Z","dependency_job_id":null,"html_url":"https://github.com/StarCitizenWiki/Apiunto","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"41ac5cddf372f5b8415239c3cb343c91ad1fc71e"},"previous_names":[],"tags_count":6,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarCitizenWiki%2FApiunto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarCitizenWiki%2FApiunto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarCitizenWiki%2FApiunto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarCitizenWiki%2FApiunto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarCitizenWiki","download_url":"https://codeload.github.com/StarCitizenWiki/Apiunto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411232,"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":["lua","lua-extension","mediawiki"],"created_at":"2024-09-26T05:24:21.881Z","updated_at":"2026-01-19T07:32:30.499Z","avatar_url":"https://github.com/StarCitizenWiki.png","language":"PHP","readme":"# Apiunto\n\nLua Extension for MediaWiki to access the Star Citizen Wiki API\n\n## Installation\n```php\nwfLoadExtension( 'Apiunto' );\n\n$wgApiuntoKey = ''; // Key from api.star-citizen.wiki\n$wgApiuntoUrl = 'https://api.star-citizen.wiki'; // Or self-host https://github.com/StarCitizenWiki/API\n$wgApiuntoTimeout = '5'; // 5 seconds\n$wgApiuntoDefaultLocale = 'de_DE'; // Or en_EN\n```\n\n## Lua Usage\n```lua\nlocal api = mw.ext.Apiunto\n\n-- Request the ship data for the 300i with german locale\n-- Docs: https://docs.star-citizen.wiki/star_citizen_api.html#raumschiffe\n-- Output: https://api.star-citizen.wiki/api/v2/vehicles/300i?locale=de_DE\nlocal ship_300i = api.get_raw( 'v2/vehicles/300i', {\n    locale = 'de_DE',\n} )\nlocal json = mw.text.jsonDecode( ship_300i )\n\n\n-- Request data for the 300i with both german and english locale\nlocal ship_300i = api.get_raw( 'v2/vehicles/300i' )\n\n-- Request data for the 300i with english locale and included components\nlocal ship_300i = api.get_raw( 'v2/vehicles/300i', {\n    locale = 'en_EN',\n    include = { 'components' }\n} )\n\n-- Request data for the Greycat Industrial ROC\n-- Docs: https://docs.star-citizen.wiki/v2\n-- Output: https://api.star-citizen.wiki/api/v2/vehicles/ROC\nlocal roc = api.get_raw( 'v2/vehicles/ROC' )\n\n-- RSI Manufacturer data\n-- Docs: https://docs.star-citizen.wiki/v2\n-- Output: https://api.star-citizen.wiki/api/v2/manufacturers/RSI\nlocal rsi = api.get_manufacturer( 'RSI' )\n\n-- RSI Manufacturer data with vehicles\n-- Docs: https://docs.star-citizen.wiki/v2\n-- Output: https://api.star-citizen.wiki/api/v2/manufacturers/RSI\nlocal rsi = api.get_manufacturer( 'RSI', {\n    include = 'vehicles'\n} )\n\n-- Comm-Link Metadata\n-- Docs: https://docs.star-citizen.wiki/v2\n-- Output: https://api.star-citizen.wiki/api/v2/comm-links/12667\nlocal commLink = api.get_comm_link_metadata( 12667 )\n\n-- Comm-Link Metadata including images and image hashes\n-- Docs: https://docs.star-citizen.wiki/star_citizen_api.html#comm-links\n-- Output: https://api.star-citizen.wiki/api/v2/comm-links/12667\nlocal commLink = api.get_comm_link_metadata( 12667, {\n    include = {\n        'images',\n        'images.hashes',\n    }\n} )\n\n-- Star System Data\n-- Includable: \"jumppoint_entries\", \"jumppoint_exits\", \"celestial_objects\"\n-- Output: https://api.star-citizen.wiki/api/v2/starsystems/sol\nlocal sol = api.get_starsystem( 'sol' ) -- Or: 'SOL' / 355 (id)\n\n-- Celestial object data\n-- Output: https://api.star-citizen.wiki/api/v2/celestial-objects/SOL.JUMPPOINTS.CROSHAW\nlocal jumppoint = api.get_celestial_object( 'SOL.JUMPPOINTS.CROSHAW', {\n    include = { }\n} )\n\n-- Output: https://api.star-citizen.wiki/api/v2/celestial-objects/2702\n-- YULIN.STATION.YULINFLOTILLA\nlocal objectById = api.get_celestial_object( 2702, {\n    include = { }\n} )\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarcitizenwiki%2Fapiunto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarcitizenwiki%2Fapiunto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarcitizenwiki%2Fapiunto/lists"}