Rick and Morty API
rickandmortyapi.com · Media
All data from Rick and Morty — characters, episodes, locations. Supports REST and GraphQL. No API key required.
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Get all characters
Get paginated list of all characters.
https://rickandmortyapi.com/api/character
Hover any highlighted part to learn what it does
curl -X GET "https://rickandmortyapi.com/api/character"
import requests
response = requests.get(
"https://rickandmortyapi.com/api/character",
)
print(response.json())const url = 'https://rickandmortyapi.com/api/character'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://rickandmortyapi.com/api/character"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://rickandmortyapi.com/api/character")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://rickandmortyapi.com/api/character";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Search characters
Search for alive characters named Rick.
https://rickandmortyapi.com/api/character?name=rick&status=alive
Hover any highlighted part to learn what it does
curl -X GET "https://rickandmortyapi.com/api/character?name=rick&status=alive"
import requests
params = {
"name": "rick",
"status": "alive"
}
response = requests.get(
"https://rickandmortyapi.com/api/character",
params=params,
)
print(response.json())const url = new URL('https://rickandmortyapi.com/api/character');
url.searchParams.set('name', 'rick');
url.searchParams.set('status', 'alive');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://rickandmortyapi.com/api/character")
q := baseURL.Query()
q.Set("name", "rick")
q.Set("status", "alive")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://rickandmortyapi.com/api/character")
uri.query = URI.encode_www_form({
"name" => "rick",
"status" => "alive"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://rickandmortyapi.com/api/character?" . http_build_query([
"name" => "rick",
"status" => "alive"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- No API key needed
- Try GET https://rickandmortyapi.com/api/character
- Filter by: name, status (alive/dead/unknown), species, type, gender
- Also has /episode and /location endpoints
What can you build with Rick and Morty API?
Rick and Morty API is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Rick and Morty API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide