Giter VIP home page Giter VIP logo

magic-card-prices's Introduction

Magic the gathering pricer

Description

Simple API that can look for MTG card prices through some websites.

Some sites are scrapped, others are fetched by their API.

Suggestions, fixes, issues or feature requests, feel free to fork and make a pull request or create an issue on this repository issue tracker.

API documentation

Still in development

You can check for a card as

ENDPOINT/:from_where/card/:card_name

:from_where can be

ligamagic

In the future I pretend to add some new websites.

:card_name should be urlencoded (and spaced replaced by a + sign instead of %20)

Blood+Moon

E.g. (This link doesn't really exists, just for explanation :) )

http://159.203.88.225:3000/ligamagic/card/Blood+Moon

The output will be something like that:

{
    status: "ok",
    data: {
        card: "Lua Sangrenta",
        currencies: [
            "BRL"
        ],
        sets: [
            "mma",
            "9e",
            "8e",
            "ch",
            "dk"
        ],
        prices: {
            mma: {
                BRL: [
                    "219.00",
                    "264.18",
                    "294.54"
                ]
            },
            9e: {
                BRL: [
                    "187.90",
                    "256.10",
                    "269.99"
                ]
            },
            8e: {
                BRL: [
                    "269.99",
                    "274.62",
                    "316.26"
                ]
            },
            ch: {
                BRL: [
                    "189.90",
                    "209.47",
                    "304.66"
                ]
            },
            dk: {
                BRL: [
                    "185.90",
                    "186.90",
                    "187.90"
                ]
            }
        },
        url: "http://ligamagic.com.br/?view=cards%2Fsearch&card=Blood+Moon"
    }
}

Notice that the price still not being fetched.... yet!

How to run

To run this project is pretty simple:

  • npm install
  • node index.js

magic-card-prices's People

Contributors

williamokano avatar abbudao avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.