To get a list of all characters from Rick and Morty API, construct your query like this:
The results will be a JSON object containing a results array. You can see an example of this below:
Customise the result
You can customise the resulting Json array by passing the following parameters:
-
name
Filter by the given name.
-
status
Filter by the given status (alive, dead or unknown).
-
species
Filter by the given species.
-
type
Filter by the given type.
-
gender
Filter by the given gender (female
, male
, genderless
or unknown
).
For example, to get only characters named “Rick”, you can use customise the name
parameter like this: