{"id":15667961,"url":"https://github.com/naps62/mtg-sdk-elixir","last_synced_at":"2025-09-02T13:08:04.458Z","repository":{"id":62429959,"uuid":"84663092","full_name":"naps62/mtg-sdk-elixir","owner":"naps62","description":"Magic the Gathering SDK - Elixir","archived":false,"fork":false,"pushed_at":"2017-03-11T16:48:19.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T15:11:29.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/naps62.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}},"created_at":"2017-03-11T16:18:14.000Z","updated_at":"2017-03-11T16:37:28.000Z","dependencies_parsed_at":"2022-11-01T20:04:21.586Z","dependency_job_id":null,"html_url":"https://github.com/naps62/mtg-sdk-elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naps62/mtg-sdk-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fmtg-sdk-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fmtg-sdk-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fmtg-sdk-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fmtg-sdk-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naps62","download_url":"https://codeload.github.com/naps62/mtg-sdk-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fmtg-sdk-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273287679,"owners_count":25078575,"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-09-02T02:00:09.530Z","response_time":77,"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":"2024-10-03T14:05:59.080Z","updated_at":"2025-09-02T13:08:04.437Z","avatar_url":"https://github.com/naps62.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic The Gathering API - Elixir wrapper\n\nThis is a simple Elixir wrapper around the [Magic The Gathering API]\n\n## Installation\n\nFirst, add MTG to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [{:mtg_api, \"~\u003e 0.1.0\"}]\nend\n```\n\nand run `$ mix deps.get`.\n\n## Usage\n\nAll the endpoints detailed in the [Official API docs] are available. Here's a run down of them:\n\n* **Get all Cards**\n\n```elixir\niex\u003e{:ok, cards} = MTG.cards\n```\n\n* **Get a specific card**\n\n```elixir\niex\u003e{:ok, card} = MTG.card(386616)\n```\n\n* **Advanced card search**\n\n```elixir\niex\u003e{:ok, powerful_cards} = MTG.cards(params: %{power: \"gt3\"})\n\niex\u003e{:ok, ktk_cards} = MTG.cards(params: %{set: \"ktk\"})\n```\n\n* **Get all sets**\n\n```elixir\niex\u003e{:ok, sets} = MTG.sets\n```\n\n* **Get a specific set**\n\n```elixir\niex\u003e{:ok, sets} = MTG.set(\"ktk\")\n```\n\n* **Generate a booster pack**\n\n```elixir\niex\u003e{:ok, cards} = MTG.booster(\"ktk\")\n```\n\n* **Get all types**\n\n```elixir\niex\u003e{:ok, cards} = MTG.types\n```\n\n* **Get all supertypes**\n\n```elixir\niex\u003e{:ok, cards} = MTG.supertypes\n```\n\n* **Get all subtypes**\n\n```elixir\niex\u003e{:ok, cards} = MTG.subtypes\n```\n\n* **Get all formats**\n\n```elixir\niex\u003e{:ok, cards} = MTG.formats\n```\n\nSee [Advanced Usage] for more info\n\n[Magic The Gathering API]: http://magicthegathering.io/\n[Official API docs]: https://docs.magicthegathering.io/\n[Advanced Usage]: https://docs.magicthegathering.io/#advanced-usage\n\n# License\n\n```\nCopyright © 2017 Miguel Palhas\n\nThis work is free. You can redistribute it and/or modify it under the\nterms of the MIT License. See the LICENSE file for more details.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fmtg-sdk-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaps62%2Fmtg-sdk-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fmtg-sdk-elixir/lists"}