-
Notifications
You must be signed in to change notification settings - Fork 0
Scryfall Service
Matthew Pfister edited this page Apr 17, 2020
·
5 revisions
GET All Cards
GET Card
GET Random Card
GET Set
Query Parameters
For more information on how to use queries with this endpoint, see our service query FAQ page in the wiki.
| Parameter | Data type | Examples |
|---|---|---|
| colors | string OR string[] | ?colors=u ?colors=[]u,b,r |
| format | string | ?format=modern |
| subtype | string | ?subtype=legendary |
| language | string | ?language=en |
| border | string | ?border=black |
| type | string OR string[] | ?type=creature ?type=[]creature,zombie,donkey |
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: [
{
colors: string[];
costs: {
mana: string;
converted: number;
};
id: string;
identity: string[];
image: string;
language: string;
name: string;
rarity: string;
releasedOn: string;
set: {
code: string;
name: string;
};
subtype: string;
type: string;
}
],
...
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
colors: string[];
costs: {
mana: string;
converted: number;
};
id: string;
identity: string[];
image: string;
language: string;
name: string;
rarity: string;
releasedOn: string;
set: {
code: string;
name: string;
};
subtype: string;
type: string;
}
}
Query Parameters
For more information on how to use queries with this endpoint, see our service query FAQ page in the wiki.
| Parameter | Data type | Examples |
|---|---|---|
| colors | string OR string[] | ?colors=u ?colors=[]u,b,r |
| format | string | ?format=modern |
| subtype | string | ?subtype=legendary |
| language | string | ?language=en |
| border | string | ?border=black |
| type | string OR string[] | ?type=creature ?type=[]creature,zombie,donkey |
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
colors: string[];
costs: {
mana: string;
converted: number;
};
id: string;
identity: string[];
image: string;
language: string;
name: string;
rarity: string;
releasedOn: string;
set: {
code: string;
name: string;
};
subtype: string;
type: string;
}
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
cardCount: number;
code: string;
id: string;
name: string;
releasedOn: string;
}
}