{"id":18870790,"url":"https://github.com/cmandersen/mtg-api","last_synced_at":"2026-02-14T22:30:12.794Z","repository":{"id":13494081,"uuid":"16184660","full_name":"cmandersen/mtg-api","owner":"cmandersen","description":"A Magic the Gathering API (using Laravel)","archived":false,"fork":false,"pushed_at":"2014-05-26T20:50:07.000Z","size":1172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T23:51:12.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://api.cmandersen.net/mtg","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmandersen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-23T20:28:44.000Z","updated_at":"2014-05-28T20:39:03.000Z","dependencies_parsed_at":"2022-09-05T02:41:56.024Z","dependency_job_id":null,"html_url":"https://github.com/cmandersen/mtg-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/cmandersen%2Fmtg-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fmtg-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fmtg-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fmtg-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmandersen","download_url":"https://codeload.github.com/cmandersen/mtg-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239817449,"owners_count":19701946,"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":[],"created_at":"2024-11-08T05:22:56.321Z","updated_at":"2026-02-14T22:30:12.722Z","avatar_url":"https://github.com/cmandersen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic the Gathering API #\n\n[![Build Status](https://travis-ci.org/cmandersen/mtg-api.png?branch=development)](https://travis-ci.org/cmandersen/mtg-api)\n\nThis is my version of a Magic the Gathering [REST](http://en.wikipedia.org/wiki/REST) API, utilizing [MTGJSON](http://mtgjson.com/) for the raw data and [MTGImage](http://mtgimage.com/) for links to the images.\n\nAs with all (actual) REST API's, if you add the id of an item to the url (.../api/v1/cards/1), you will get the item with that specific id.\n\n\n## Getting the sets ##\n\n**Link**: .../api/v1/sets\n\n\n## Getting the cards of a set ##\n\n**Link**: .../api/v1/sets/{id}/cards\n\n### Options ###\n\n| Param    | Function                                      | Accepts    | Default   |\n| -------- | --------------------------------------------- |:----------:| ---------:|\n| `limit`  | Limits the number of items fetched            | Integer    |      `50` |\n| `offset` | Defines the index of where to start fetching  | Integer    |       `0` |\n\n**Warning**: If you set the limit too high, you query will fail. The maximum limit varies from server to server.\n\n\n## Getting the cards ##\n\n**Link**: .../api/v1/cards\n\n### Options ###\n\n| Param    | Function                                      | Accepts    | Default   |\n| -------- | --------------------------------------------- |:----------:| ---------:|\n| `limit`  | Limits the number of items fetched            | Integer    |      `50` |\n| `offset` | Defines the index of where to start fetching  | Integer    |       `0` |\n| `type`   | The type of card to search for                | String     |    `null` |\n| `title`  | A part of the name of the cards               | String     |    `null` |\n| `text`   | A part of text on the cards                   | String     |    `null` |\n| `colors` | The color of the cards to fetch               | String     |    `null` |\n| `rarity` | The rarity of the cards to fetch              | String     |    `null` |\n\n**Warning**: If you set the limit too high, you query will fail. The maximum limit varies from server to server.\n\n\n## Getting the planes ##\n\n**Link**: .../api/v1/planes\n\n### Options ###\n\n| Param        | Function                                      | Accepts    | Default   |\n| ------------ | --------------------------------------------- |:----------:| ---------:|\n| `randomize`  | Randomizes the order of the planes returned   | Integer    |       `0` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fmtg-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmandersen%2Fmtg-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fmtg-api/lists"}