{"id":13660172,"url":"https://github.com/Harubex/scryfall","last_synced_at":"2025-04-24T19:30:39.166Z","repository":{"id":57356397,"uuid":"99716609","full_name":"Harubex/scryfall","owner":"Harubex","description":"GitHub repo for the scryfall npm module.","archived":false,"fork":false,"pushed_at":"2019-04-14T18:12:37.000Z","size":305,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T16:20:10.449Z","etag":null,"topics":["magic","magic-the-gathering","scryfall"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Harubex.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-08-08T17:01:41.000Z","updated_at":"2021-11-09T16:59:27.000Z","dependencies_parsed_at":"2022-09-26T16:31:54.341Z","dependency_job_id":null,"html_url":"https://github.com/Harubex/scryfall","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/Harubex%2Fscryfall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harubex%2Fscryfall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harubex%2Fscryfall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harubex%2Fscryfall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harubex","download_url":"https://codeload.github.com/Harubex/scryfall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693441,"owners_count":21472264,"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":["magic","magic-the-gathering","scryfall"],"created_at":"2024-08-02T05:01:17.814Z","updated_at":"2025-04-24T19:30:38.787Z","avatar_url":"https://github.com/Harubex.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Scryfall\n\nThis module wraps the Scryfall API into a small, easy to use library.\n\nIncluded with this module are Typescript definitions for each method declaration and every object returned from the API.\n\n## Example usage\n\n### Finding a card:\n\n```javascript\n// Requiring.\nconst scryfall = require(\"scryfall\");\n// Using the import statement.\nimport * as scryfall from \"scryfall\";\n// Alternative import method.\nimport { Scryfall } from \"scryfall\";\n\n// Getting by set code and collector number.\nscryfall.getCard(\"bfz\", 29, (err, card) =\u003e {\n    if (err) {\n        // If the call was successful, this will be null.\n    } else {\n        console.log(card.name); // \"Gideon, Ally of Zendikar\"\n        console.log(card.cmc); // 4\n        // ...\n    }\n});\n\n// You can also omit a callback to have the method return a promise instead.\nconst card = await scryfall.getCard(\"bfz\", 29);\nconsole.log(card.name); // \"Gideon, Ally of Zendikar\"\nconsole.log(card.cmc); // 4\n\n\n// Getting by multiverse id.\nscryfall.getCard(83282, \"multiverse\", (err, card) =\u003e {\n    if (err) {\n        // If the call was successful, this will be null.\n    } else {\n        console.log(card.name); // \"Storm Crow\"\n        console.log(card.type_line); // \"Creature — Bird\"\n        // ...\n    }\n});\n\n// Getting by mtgo id.\nscryfall.getCard(83282, \"mtgo\", (err, card) =\u003e {\n    if (err) {\n        // If the call was successful, this will be null.\n    } else {\n        console.log(card.name); // \"Gorilla Shaman\"\n        console.log(card.tix); // \"12.62\"\n        // ...\n    }\n});\n\n// Getting by scryfall id.\nscryfall.getCard(\"44012bb8-17b7-4b50-a796-662ef09bfc29\", (err, card) =\u003e {\n    if (err) {\n        // If the call was successful, this will be null.\n    } else {\n        console.log(card.name); // \"Bamboozle\"\n        console.log(card.colors); // [\"U\"]\n        // ...\n    }\n});\n```\n\n### Finding cards from a particular set:\n\n```javascript\nscryfall.fromSet(\"hml\", (cards) =\u003e {\n    console.log(cards[0].name); // \"Abbey Gargoyles\"\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHarubex%2Fscryfall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHarubex%2Fscryfall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHarubex%2Fscryfall/lists"}