Get all characters
You can access the list of characters by using the /characters endpoint. Pagination is supported via the ?page=2 querystring. You can also filter the results using the name, status, species, type and gender query parameters.
query Parameters
namestring · requiredfilter by the given name
pagenumberPagination index
statusstringfilter by the status, one of
dead,aliveorunknownspeciesstringfilter by the species
typestringfilter by the given type
genderstringfilter by the given gender (female, male, genderless or unknown)
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
OK Response
infoobject · requiredExample: {"count":826,"pages":42,"next":"https://rickandmorty.zuplo.io/v1/characters/?page=2","prev":null}Default: {}resultsobject[] · requiredExample: {"0":{"id":1,"name":"Rick Sanchez","status":"Alive","species":"Human","type":"","gender":"Male","origin":{"name":"Earth","url":"https://rickandmorty.zuplo.io/v1/locations/1"},"location":{"name":"Earth","url":"https://rickandmorty.zuplo.io/v1/locations/20"},"image":"https://rickandmorty.zuplo.io/v1/characters/avatar/1.jpeg","episode":["https://rickandmorty.zuplo.io/v1/episode/1","https://rickandmorty.zuplo.io/v1/episode/2"],"url":"https://rickandmorty.zuplo.io/v1/characters/1","created":"2017-11-04T18:48:46.250Z"}}Default: []
Get a characters by ID(s)
You can get a single character by ID, or multiple by adding an array of ids as parameter: /characters/[1,2,3] or /characters/1,2,3
path Parameters
characterIdstringA single numeric ID or multiple IDs, e.g.
[1,2,3]or1,2
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
test
idinteger · requiredExample: 2Default: 0namestring · requiredExample: Morty SmithDefault:statusstring · requiredExample: AliveDefault:speciesstring · requiredExample: HumanDefault:typestring · requiredExample:Default:genderstring · requiredExample: MaleDefault:originobject · requiredExample: {"name":"Earth","url":"https://rickandmorty.zuplo.io/v1/location/1"}Default: {}locationobject · requiredExample: {"name":"Earth","url":"https://rickandmorty.zuplo.io/v1/location/20"}Default: {}imagestring · requiredExample: https://rickandmorty.zuplo.io/v1/characters/avatar/2.jpegDefault:episodestring[] · requiredExample: {"0":"https://rickandmorty.zuplo.io/v1/episodes/1","1":"https://rickandmorty.zuplo.io/v1/episodes/2"}Default: []urlstring · requiredExample: https://rickandmorty.zuplo.io/v1/characters/2Default:createdstring · requiredExample: 2017-11-04T18:50:21.651ZDefault:
