Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

getPeople()

Axel edited this page Oct 10, 2018 · 5 revisions

Description

Getting people information from page like this.

Parameter

Parameter Type Description
id integer ID of the people

Usage

$myScraper = new MalScraper();

$myPeopleInfo = $myScraper::getPeople(1);
// or
$myPeopleInfo = $myScraper->getPeople(1);

Return

Array data of people data model.

People Data Model

Property Type Description
id string ID of the people in MyAnimeList
name string Name of the people
image string URL to the people image
given_name string Given name of the people
family_name string Family name of the people
alternative_name array An array of their alternative name
birthday string Birth date of the people
website string URL of their website
favorite string How many users favorite the people
more string More data about the people
va array An array of voice actor data model
staff array An array of common data model
published_manga array An array of common data model

Voice Actor Data Model

Property Type Description
anime array An array of anime data model
character array An array of character data model
Anime Data Model
Property Type Description
image string URL to anime image
id string ID of the anime in MyAnimeList
title string Title of the anime
Character Data Model
Property Type Description
image string URL to character image
id string ID of the character in MyAnimeList
name string Name of the character
role string Role of the character in the anime

Common Data Model

Property Type Description
image string URL of the image
id string ID of the anime or manga in MyAnimeList
title string Title of the anime or manga
role string Role of the people
Clone this wiki locally