Git Product home page Git Product logo

sherdog-api's Introduction

Sherdog Fighter API

Crawls and parses fighter profile data from Sherdog URL

*This api is used in the higher-level MMA API.

Installation

From source:

git clone https://github.com/valish/sherdog-api
cd sherdog-api
npm install

From npm:

npm install sherdog

Usage

> var sherdog = require('sherdog');
> var url = "http://www.sherdog.com/fighter/Matt-Riddle-34072"
> sherdog.getFighter(url, function(data) {
    console.log(data);
  })
> {
    "name": "Matt Riddle",
    "nickname": "Deep Waters",
    "age": "29",
    "birthday": "1986-01-14",
    "locality": "Lehighton, Pennsylvania",
    "nationality": "United States",
    "association": "Throwdown",
    "height": "6'1\"",
    "weight": "170 lbs",
    "weight_class": "Welterweight",
    "wins": {
        "total": 8,
        "knockouts": 1,
        "submissions": 1,
        "decisions": 5,
        "others": 1
    },
    "losses": {
        "total": 3,
        "knockouts": 1,
        "submissions": 0,
        "decisions": 2,
        "others": 0
    },
    "no_contests": 2,
    "fights": [
        {
            "name": "TFC 27 - Titan Fighting Championship 27",
            "date": "Feb / 28 / 2014",
            "url": "/events/TFC-27-Titan-Fighting-Championship-27-35101",
            "result": "win",
            "method": "Submission (Guillotine Choke)",
            "referee": "David Clifton",
            "round": "2",
            "time": "2:29",
            "opponent": "Michael Kuiper"
        },
        {
            "name": "UFC on Fuel TV 7 - Barao vs. McDonald",
            "date": "Feb / 16 / 2013",
            "url": "/events/UFC-on-Fuel-TV-7-Barao-vs-McDonald-26459",
            "result": "NC",
            "method": "NC (Overturned by Commission)",
            "referee": "Kevin Mulhall",
            "round": "3",
            "time": "5:00",
            "opponent": "Che Mills"
        },
        {
            "name": "UFC 154 - St. Pierre vs. Condit",
            "date": "Nov / 17 / 2012",
            "url": "/events/UFC-154-St-Pierre-vs-Condit-21047",
            "result": "win",
            "method": "Decision (Unanimous)",
            "referee": "Yves Lavigne",
            "round": "3",
            "time": "5:00",
            "opponent": "John Maguire"
        }
        // ... 
    ]
  }

sherdog-api's People

Contributors

valish 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.