Skip to content

Instantly share code, notes, and snippets.

@samnrubin
Created November 16, 2023 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samnrubin/2231c51d8a0144f8b7d8f94e47511d3b to your computer and use it in GitHub Desktop.
Save samnrubin/2231c51d8a0144f8b7d8f94e47511d3b to your computer and use it in GitHub Desktop.
Simple Scryfall openAPI spec
{
"openapi": "3.1.0",
"info": {
"title": "Scryfall API",
"description": "",
"version": "v0.0.1"
},
"servers": [
{
"url": "https://api.scryfall.com"
}
],
"paths": {
"/cards/search": {
"get": {
"description": "Returns a List object containing Cards found using a fulltext search string. This string supports the same [fulltext search system](https://scryfall.com/docs/syntax) that the main site uses.",
"operationId": "searchCards",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "string"
}
},
{
"name": "unique",
"in": "query",
"required": false,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "string"
}
},
{
"name": "order",
"in": "query",
"required": false,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "string"
}
},
{
"name": "dir",
"in": "query",
"required": false,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "string"
}
},
{
"name": "include_extras",
"in": "query",
"required": false,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "boolean"
}
},
{
"name": "page",
"in": "query",
"required": false,
"deprecated": false,
"allowEmptyValue": false,
"explode": false,
"allowReserved": false,
"schema": {
"type": "integer"
}
}
],
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment