{"id":18060811,"url":"https://github.com/0xleif/gw2","last_synced_at":"2025-04-05T12:26:10.341Z","repository":{"id":83170815,"uuid":"239222255","full_name":"0xLeif/GW2","owner":"0xLeif","description":"Swift GW2 API Wrapper","archived":false,"fork":false,"pushed_at":"2020-04-29T02:31:13.000Z","size":64,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T23:41:52.829Z","etag":null,"topics":["api-wrapper","gw2","gw2-api","swift","wrapper"],"latest_commit_sha":null,"homepage":"https://github.com/zmeriksen/MyGW2Account","language":"Swift","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/0xLeif.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-09T00:02:56.000Z","updated_at":"2020-12-12T22:48:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"14a9b7ad-7df9-4949-9ab8-3d57e0981239","html_url":"https://github.com/0xLeif/GW2","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/0xLeif%2FGW2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FGW2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FGW2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FGW2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xLeif","download_url":"https://codeload.github.com/0xLeif/GW2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247335331,"owners_count":20922395,"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-wrapper","gw2","gw2-api","swift","wrapper"],"created_at":"2024-10-31T04:10:36.327Z","updated_at":"2025-04-05T12:26:10.325Z","avatar_url":"https://github.com/0xLeif.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GW2\n\n![Swift](https://github.com/zmeriksen/GW2/workflows/Swift/badge.svg?branch=master)\n\nA [GW2 API](https://wiki.guildwars2.com/wiki/API:2) Wrapper written in Swift\n\n\n## Accessing resources\n\nEach endpoint can be accessed directly to get a list of resources. Each resource can be accessed as a subpath of the endpoint. Alternatively, a single resource can also be accessed by specifying the id query parameter at the base endpoint. Multiple resources can be specified by specifying the ids query parameter instead. The latter expects a comma-separated list of identifiers and returns an array of objects instead.\n\nFor example, /v2/quaggans returns a list of quaggan identifiers, e.g. \"hat\" and \"box\".\n\nA single resource, e.g. the \"hat\" quaggan, can be accessed at /v2/quaggans/hat or /v2/quaggans?id=hat.\nMultiple resources, e.g. both the \"hat\" and \"box\" quaggans, can be accessed at /v2/quaggans?ids=hat,box.\nSome resources accept ids=all to expand all resources at once.\n\n### Paging\n\nThe endpoints support paging using the page and page_size query parameters. Specifying a page will automatically expand alls resources. The default page size is 50, the maximum size is currently 200.\n\nWhen accessing a page, additional HTTP response headers may be available:\n\nX-Page-Size – The size of a page (like the page_size query parameter).\nX-Page-Total – The total number of pages.\nX-Result-Count – The number of resources on the current page (lower or equal to the page size).\nX-Result-Total – The total number of resources.\n\n### Authentication\n\nAll of the endpoints which fetch account data require the use of an API key. There are currently two ways to provide an API key along with your request.\n\nAdding the Authorization HTTP header to your request with the value Bearer \u003cAPI key\u003e.\nAdding the parameter ?access_token=\u003cAPI key\u003e to your request URL.\nSee API key for a list of the authenticated endpoints and their required permissions.\n\n### Localisation\n\nAll of the endpoints which are locale-aware accept a language parameter. There are currently two ways to provide this language parameter along with your request.\n\nAdding the Accept-Language HTTP header with the value of \u003clanguage\u003e, which also gets set by the browser by default.\nAdding the parameter ?lang=\u003clanguage\u003e to your request URL.\nValid languages are en, es, de, fr and zh. If no language parameter is set, the language defaults to en.\n  \n## Responses\n\nAPI requests will return a JSON response body describing the requested content, or error message, if applicable. Additionally, the HTTP response code can be used to determine the state of the response body.\n\n### Success\n\nHTTP 200 will be returned if all of the requested data has been returned.\nHTTP 206 will be returned when using the ids parameter if at least one, but not all of the provided IDs are valid.\n\n### Errors\n\nHTTP 403 will be returned if attempting to access an authenticated endpoint without a valid API key, or with a valid API key without the necessary permissions.\nHTTP 404 will be returned if an endpoint does not exist, or all of the provided IDs are invalid.\n\n\n# [Source GW2 API Wiki](https://wiki.guildwars2.com/wiki/API:2)\n\n## GitHub Supporters\n\n [\u003cimg class=\"avatar\" alt=\"suzyfendrick\" src=\"https://avatars1.githubusercontent.com/u/25371717?s=460\u0026u=34217047bbfd4912909cd5a85959544b6e49cc9f\u0026v=4\" width=\"72\" height=\"72\"\u003e](https://github.com/suzyfendrick)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xleif%2Fgw2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xleif%2Fgw2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xleif%2Fgw2/lists"}