SearchQuery example
const { mdl } = require("mdl-scraper");
mdl.SearchQuery("song-joong-ki").then((data) => {
console.log(data);
});
Example Response
{
"dramas":[
{
"slug":"40775-i-m-real-song-joong-ki",
"url":"https://mydramalist.com/40775-i-m-real-song-joong-ki",
"thumb":"https://i.mydramalist.com/RZREzs.jpg?v=1",
"mdl_id":"mdl-40775",
"title":"I'm Real Song Joong Ki",
"ranking":"#8857",
"type":"Korean TV Show",
"year":"2011",
"series":"2 episodes"
}
],
"people":[
{
"slug":"people/431-song-joong-ki",
"url":"https://mydramalist.com/people/431-song-joong-ki",
"thumb":"https://i.mydramalist.com/1kymd_5v.jpg",
"name":"Song Joong Ki",
"nationality":"South Korean"
}
]
}
FetchQuery example
const { mdl } = require("mdl-scraper");
mdl.FetchQuery("61371-vincenzo").then((data) => {
console.log(data);
});
Example Response
{
"title":"Vincenzo",
"rating":9,
"poster":"https://i.mydramalist.com/vAnBe_4c.jpg?v=1",
"synopsis":"At the age of eight, Park Joo Hyeong went to Italy after being adopted. Now an adult, he is known as Vincenzo Cassano to the Mafia, who employ him as a consigliere. Because mafia factions are at war with each other, he flees to South Korea, where he gets involved with Lawyer Hong Cha Young. She is the type of attorney who will do anything to win a case. Now back at his motherland, he gives an unrivaled conglomerate a taste of its own medicine with a side of justice.(Source: Netflix, AsianWiki) his motherland, he gives an unrivaled conglomerate a taste of its own medicine with a side of justice.(Source: Netflix, AsianWiki)",
"cast":[
{
"slug":"people/431-song-joong-ki",
"name":"Song Joong Ki",
"url":"https://mydramalist.com/people/431-song-joong-ki"
},
{
"slug":"people/18974-jeon-yeo-bin",
"name":"Jeon Yeo Bin",
"url":"https://mydramalist.com/people/18974-jeon-yeo-bin"
},
{
"slug":"people/423-ok-taec-yeon",
"name":"Ok Taec Yeon",
"url":"https://mydramalist.com/people/423-ok-taec-yeon"
},
{
"slug":"people/3264-kim-yeo-jin",
"name":"Kim Yeo Jin",
"url":"https://mydramalist.com/people/3264-kim-yeo-jin"
},
{
"slug":"people/5409-jo-han-chul",
"name":"Jo Han Chul",
"url":"https://mydramalist.com/people/5409-jo-han-chul"
},
{
"slug":"people/5101-kwak-dong-yeon",
"name":"Kwak Dong Yeon",
"url":"https://mydramalist.com/people/5101-kwak-dong-yeon"
}
],
"trailer":[
"https://mydramalist.com/61371-vincenzo/trailers/21661",
"https://mydramalist.com/61371-vincenzo/trailers/21721",
"https://mydramalist.com/61371-vincenzo/trailers/21883",
"https://mydramalist.com/61371-vincenzo/trailers/22067"
],
"details":{
"country":"South Korea",
"type":"Drama",
"episodes":"20",
"aired":"Feb 20, 2021 - May 2, 2021",
"aired_on":"Saturday, Sunday",
"original_network":"tvN Netflix Netflix Netflix Netflix",
"duration":"1 hr. 25 min.",
"score":"9.0 (scored by 18,530 users)",
"ranked":"#19",
"popularity":"#103",
"content_rating":"15+ - Teens 15 or older",
"watchers":"38,095",
"favorites":"0"
},
"others":{
"native_title":"빈센조",
"also_known_as":"Binsenjo",
"screenwriter":"Park Jae Bum",
"director":"Kim Hee Won",
"genres":"Comedy, Law, Romance, Crime, Drama",
"tags":"Lawyer, Smart Male Lead, Mafia, Eccentric Female Lead, Competent Protagonist, Suspense, Charming Male Lead, Father-Daughter Relationship, Injustice, Funny Female Lead (Vote or add tags)"
}
}