/v1/rankings
Fighter rankings by division
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/mma-api/v1/rankings" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mma-api/v1/rankings", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mma-api/v1/rankings");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/mma-api/v1/rankings",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 24,
"divisions": [
{
"type": "pound-for-pound",
"ranks": [
{
"id": "3088812",
"rank": 1,
"trend": "-",
"fighter": "Kamaru Usman"
},
{
"id": "4285679",
"rank": 3,
"trend": "-",
"fighter": "Israel Adesanya"
},
{
"id": "3933168",
"rank": 4,
"trend": "-",
"fighter": "Francis Ngannou"
},
{
"id": "3949584",
"rank": 5,
"trend": "-",
"fighter": "Alexander Volkanovski"
},
{
"id": "2506250",
"rank": 6,
"trend": "-",
"fighter": "Jan Blachowicz"
},
{
"id": "2506549",
"rank": 7,
"trend": "-",
"fighter": "Dustin Poirier"
},
{
"id": "4189320",
"rank": 8,
"trend": "+2",
"fighter": "Deiveson Figueiredo"
},
{
"id": "2504951",
"rank": 9,
"trend": "-",
"fighter": "Stipe Miocic"
},
{
"id": "2504169",
"rank": 10,
"trend": "-",
"fighter": "Charles Oliveira"
}
],
"division": "Men's Pound for Pound Rankings"
},
{
"type": "womens-pound-for-pound",
"ranks": [
{
"id": "2516131",
"rank": 1,
"trend": "-",
"fighter": "Amanda Nunes"
},
{
"id": "2554705",
"rank": 2,
"trend": "-",
"fighter": "Valentina Shevchenko"
},
{
"id": "2354564",
"rank": 3,
"trend": "-",
"fighter": "Cris Cyborg"
},
{
"id": "3032973",
"rank": 4,
"t
…