List public sets.
curl --request GET \
--url https://api.elestrals.com/v1/sets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.elestrals.com/v1/sets"
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/sets', 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/sets",
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/sets"
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/sets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elestrals.com/v1/sets")
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": "st-53",
"abbr": "BS1",
"name": "Base",
"type": "main",
"series": {
"id": "sr-3",
"code": "KS01",
"name": "Kickstarter"
},
"release_date": "2023-12-25",
"prerelease_date": "2023-12-25",
"card_count": 1,
"images": {
"banner_url": "<string>",
"icon_url": "<string>",
"logo_url": "<string>",
"stamp_url": "<string>"
},
"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>"
}
}Sets
List public sets.
Cursor-paginated list of sets. Only sets flagged as publicly displayed are
returned. Default sort is release_date descending, nulls last.
GET
/
v1
/
sets
List public sets.
curl --request GET \
--url https://api.elestrals.com/v1/sets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.elestrals.com/v1/sets"
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/sets', 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/sets",
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/sets"
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/sets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.elestrals.com/v1/sets")
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": "st-53",
"abbr": "BS1",
"name": "Base",
"type": "main",
"series": {
"id": "sr-3",
"code": "KS01",
"name": "Kickstarter"
},
"release_date": "2023-12-25",
"prerelease_date": "2023-12-25",
"card_count": 1,
"images": {
"banner_url": "<string>",
"icon_url": "<string>",
"logo_url": "<string>",
"stamp_url": "<string>"
},
"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>"
}
}Authorizations
API key supplied as Authorization: Bearer <key>. Keys are minted in the
developer portal. Rejected in query strings. See the Authentication guide.
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:
release_date, -release_date, name, -name, abbr, -abbr Filter to a single series (e.g. sr-5).
Multi-value set type filter. Repeat the param or comma-separate values.
Available options:
main, promo, starter_deck, specialty Only return sets released strictly before this date.
Only return sets released strictly after this date.

