List cards that share a creature.
curl --request GET \
--url https://api.elestrals.com/v1/creatures/{id}/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.elestrals.com/v1/creatures/{id}/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.elestrals.com/v1/creatures/{id}/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.elestrals.com/v1/creatures/{id}/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.elestrals.com/v1/creatures/{id}/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.elestrals.com/v1/creatures/{id}/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elestrals.com/v1/creatures/{id}/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "et-100",
"name": "Waspivy",
"title": "<string>",
"identity": [
"<string>"
],
"class": "spirit",
"subclasses": [
"aquatic"
],
"elements": [
"earth"
],
"cost": [
"earth"
],
"total_cost": 1,
"attack": 1,
"defense": 1,
"traits": "<string>",
"banlists": [
{
"id": "ble-1",
"format_id": "fm-1",
"legality": "legal",
"effective_date": "2023-11-07T05:31:56Z",
"lift_date": "2023-11-07T05:31:56Z"
}
],
"effects": [
{
"type": "active",
"categories": [
"search"
],
"condition": "<string>",
"cost": "<string>",
"text": "<string>",
"order": 1
}
],
"rulings": [
{
"id": "rul-1",
"date": "2014-09-20",
"text": "<string>"
}
],
"creature": {
"id": "el-159",
"name": "Waspivy",
"class": "spirit",
"elements": [
"earth"
]
},
"base_printing_id": "cd-1813",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"next_cursor": "<string>",
"has_more": true
},
"meta": {
"request_id": "req_0123456789abcdef",
"cached": true,
"attribution_required": true
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}Creatures
List cards that share a creature.
Returns a paginated list of cards (entities) whose creature_id matches
the given creature. Accepts all the same filters and sorts as
GET /v1/cards except for set_id, which remains available.
GET
/
v1
/
creatures
/
{id}
/
cards
List cards that share a creature.
curl --request GET \
--url https://api.elestrals.com/v1/creatures/{id}/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.elestrals.com/v1/creatures/{id}/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.elestrals.com/v1/creatures/{id}/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.elestrals.com/v1/creatures/{id}/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.elestrals.com/v1/creatures/{id}/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.elestrals.com/v1/creatures/{id}/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elestrals.com/v1/creatures/{id}/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "et-100",
"name": "Waspivy",
"title": "<string>",
"identity": [
"<string>"
],
"class": "spirit",
"subclasses": [
"aquatic"
],
"elements": [
"earth"
],
"cost": [
"earth"
],
"total_cost": 1,
"attack": 1,
"defense": 1,
"traits": "<string>",
"banlists": [
{
"id": "ble-1",
"format_id": "fm-1",
"legality": "legal",
"effective_date": "2023-11-07T05:31:56Z",
"lift_date": "2023-11-07T05:31:56Z"
}
],
"effects": [
{
"type": "active",
"categories": [
"search"
],
"condition": "<string>",
"cost": "<string>",
"text": "<string>",
"order": 1
}
],
"rulings": [
{
"id": "rul-1",
"date": "2014-09-20",
"text": "<string>"
}
],
"creature": {
"id": "el-159",
"name": "Waspivy",
"class": "spirit",
"elements": [
"earth"
]
},
"base_printing_id": "cd-1813",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"next_cursor": "<string>",
"has_more": true
},
"meta": {
"request_id": "req_0123456789abcdef",
"cached": true,
"attribution_required": true
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}
}Authorizations
API key supplied as Authorization: Bearer <key>. Keys are minted in the
developer portal. Rejected in query strings. See the Authentication guide.
Path Parameters
Creature ID (el-...).
Query Parameters
Page size, max 250.
Required range:
1 <= x <= 250Opaque pagination cursor from a previous response's pagination.next_cursor.
Sort field. Prefix with - for descending.
Available options:
name, -name, total_cost, -total_cost, attack, -attack, defense, -defense, updated_at, -updated_at 
