API = {
"methods": {
"https://api.righters.pro/check/audiobooks": {
"purpose": "Check your file for audiobooks via HTTP/HTTPS. Request arguments passed as JSON in POST body.",
"request": {
"key": "Your API key.",
"url": "HTTP/HTTPS link to your file. You can secure it with HTTP basic authentification.",
"meta": {
"content_id": 65001,
"title": "Cool Book!!"
}
},
"response": {
"match": {
"ok": true,
"match": {
"id": "c97668ac-ca1c-4866-ba3a-8d4b3204e638",
"meta": {
"author": "Harry Harrison",
"title": "The Stainless Steel Rat"
}
}
},
"miss": {
"ok": true,
"match": null
}
}
/* example: curl -X POST -d '{"key":"your-key", "url":"https://domain.tld/content.mp3", "meta":{"some":"meta"}}' https://api.righters.pro/check/audiobooks */
},
"https://api.righters.pro/check/music": {
"purpose": "Check your file for music via HTTP/HTTPS. Request arguments passed as JSON in POST body.",
"request": {
"key": "Your API key.",
"url": "HTTP/HTTPS link to your file. You can secure it with HTTP basic authentification.",
"meta": {
"content_id": 65002,
"title": "Cool Mix!!"
}
},
"response": {
"match": {
"ok": true,
"matches": {
"110": [
{
"id": "i1194996564",
"artist": "ATB",
"name": "9 Pm (Til I Come)",
"album": "+Mas Label 20 A\\u00f1os, Pt. 1",
"label": "+Mas Label",
"genres": [
"Dance",
"Music"
],
"isrc": "DEN069900066",
"artwork": "https://is4-ssl.mzstatic.com/image/thumb/Music111/v4/54/f1/f3/54f1f3fe-3138-b4d1-8d20-bbcc62bf6b06/cover.jpg/{w}x{h}bb.jpeg",
"link": "https://music.apple.com/bz/album/9-pm-til-i-come/1194995511?i=1194996564",
"duration": 195949
}
]
}
},
"miss": {
"ok": true,
"matches": null
}
}
/* example: curl -X POST -d '{"key":"your-key", "url":"https://domain.tld/content.mp3", "meta":{"some":"meta"}}' https://api.righters.pro/check/music */
}
},
"contact": {
"email": "api@righters.pro"
}
};