{"id":18908661,"url":"https://github.com/giventofly/cardmarket-api","last_synced_at":"2025-04-15T05:32:02.665Z","repository":{"id":128005782,"uuid":"124965158","full_name":"giventofly/cardmarket-api","owner":"giventofly","description":"cardmarket (mkm) php simple api stock example","archived":false,"fork":false,"pushed_at":"2018-09-24T21:15:33.000Z","size":11,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T16:43:50.705Z","etag":null,"topics":["api","cardmarket","mcmapi","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/giventofly.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":"2018-03-12T23:41:12.000Z","updated_at":"2023-03-08T02:49:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ce5fdd3-3bf2-40af-89e8-f4c0b203d784","html_url":"https://github.com/giventofly/cardmarket-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/giventofly%2Fcardmarket-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giventofly%2Fcardmarket-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giventofly%2Fcardmarket-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giventofly%2Fcardmarket-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giventofly","download_url":"https://codeload.github.com/giventofly/cardmarket-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249015459,"owners_count":21198807,"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","cardmarket","mcmapi","php"],"created_at":"2024-11-08T09:27:45.867Z","updated_at":"2025-04-15T05:32:02.649Z","avatar_url":"https://github.com/giventofly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"https://www.cardmarket.com/en/Magic api. Read their [api documents](https://www.mkmapi.eu/ws/documentation) :)\n\n## Files include and descriptions\n\n  \n\n**With [index.php](https://github.com/giventofly/mkmapi-php/blob/master/index.php  \"index.php\"):**\n\n* use as index.php?card=NAME TO SEARCH\n* edit index.php with your api credentials\n* see cards matching your query\n\n  \n\n**with [articles-example.php](https://github.com/giventofly/mkmapi-php/blob/master/articles-example.php  \"articles-example.php\"):**\n\n- edit with your credentials and it will show at max 2 articles from the\n\nuser karmacrow, use it as your baseline to other public api queries.\n\n**with [get-card-price.php](https://github.com/giventofly/mkmapi-php/blob/master/get-card-price.php  \"get-card-price.php\"):**\n\n- you give the card name and edition and get the info on it (including price), for development/production i would separate the request and cache the card id to use in subsequent requests (instead of querying always 2 times to get the info).\n- it will use the product id (the other option was the metaproduct id change to your needs).\n- Get card productid:\n\n    `$cardid = getMCMinfo('tarmogoyf','Future Sight');`  \n    *(returns an array with card id)*\n    \n- get card price:\n\n    `$cardprice = getMCMinfo(null,null,1452);`\n  *(bear in mind it returns an array (check code/cardmarket api for the returned values).*\n\n### TODO:\n- optmize code / requests\n\n\n#### Shameless plug:\nSince you like mtg you might like my  [mtg card tooltip plugin](https://github.com/giventofly/MTG-Tooltip-Js) (vanilla javascript with some good options to show the card on mouse over)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiventofly%2Fcardmarket-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiventofly%2Fcardmarket-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiventofly%2Fcardmarket-api/lists"}