CraftyMynes - Ban API Reference v1

Used to get information and stats on bans from the CraftyMynes Network

API Location

You can find the API at:  https://api.craftymynes.com/bans/

All queries require the "key" value to be set. Example: https://api.craftymynes.com/bans/v1/lookup/player1?key=your_api_key

Responses are in JSON and include a code value that will be 0 if no error exist. If the "Code" value is not 0 then check the "Error" value for and error message.


Lookup a Single Name

GET Endpoint:

https://api.craftymynes.com/bans/v1/lookup

Example Request:

https://api.craftymynes.com/bans/v1/lookup/markao?key=your_api_key

Example Response:
{
  "Result": [{
    "name": "markao",
    "created": "2016-03-12 15:40:10",
    "source": "Server",
    "reason": "Reason: Chat offenses Please appeal at: https:\/\/forum.craftymynes.com\/",
    "server": "1.9"
}],
  "Code": 0
}


Lookup a Single IP

GET Endpoint:

https://api.craftymynes.com/bans/v1/lookup

Example Request:

https://api.craftymynes.com/bans/v1/lookup/107.161.23.14?key=your_api_key

Example Response:
{
  "Result": [{
    "ip": "107.161.23.14",
    "created": "2016-01-01 14:43:15",
    "source": "BaronBattleBread",
    "reason": "Banned by an operator.",
    "server": "1.8"
  }],
  "Code": 0
}


Lookup Multiple Names

GET Endpoint:

https://api.craftymynes.com/bans/v1/lookup

Example Request:

https://api.craftymynes.com/bans/v1/lookup/markao,SethLarcomb?key=your_api_key

Example Response:
{
  "Result": [{
    "name": "markao",
    "created": "2016-03-12 15:40:10",
    "source": "Server",
    "reason": "Reason: Chat offenses Please appeal at: https:\/\/forum.craftymynes.com\/",
    "server": "1.9"
}, {
    "name": "SethLarcomb",
    "created": "2016-03-11 23:31:04",
    "source": "Server",
    "reason": "Reason: admitting to using a hacked client Please appeal at: https:\/\/forum.craftymynes.com\/",
    "server": "1.9"
  }],
  "Code": 0
}


Lookup Multiple IPs

GET Endpoint:

https://api.craftymynes.com/bans/v1/lookup

Example Request:

https://api.craftymynes.com/bans/v1/lookup/107.161.23.14,50.165.198.205?key=your_api_key

Example Response:
{
  "Result": [{
    "ip": "107.161.23.14",
    "created": "2016-01-01 14:43:15",
    "source": "BaronBattleBread",
    "reason": "Banned by an operator.",
    "server": "1.8"
  }, {
    "ip": "50.165.198.205",
    "created": "2015-02-20 22:13:06",
    "source": "Server",
    "reason": "Banned by an operator.",
    "server": "1.8"
  }],
  "Code": 0
}