Search (Structured)
curl --request GET \
--url https://api.gemrate.com/v1/cards/search/structured \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gemrate.com/v1/cards/search/structured"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.gemrate.com/v1/cards/search/structured', 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.gemrate.com/v1/cards/search/structured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.gemrate.com/v1/cards/search/structured"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.gemrate.com/v1/cards/search/structured")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gemrate.com/v1/cards/search/structured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"query": "1986 fleer michael jordan 57",
"graders_included": [
"psa",
"beckett",
"sgc",
"cgc"
],
"results": {
"psa": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "25b4432f12a5d6ec29a6f00490200416d5dfa242",
"population": 30978,
"search_score": 146.3
},
{
"description": "2006 Fleer Buyback Michael Jordan 1986 Fleer-Autograph 57",
"gemrate_id": "31853ea7b52c551e817c3e5707f75f7d35de9559",
"population": 4,
"search_score": 128.4
},
{
"description": "1986 Fleer Sticker Michael Jordan 8",
"gemrate_id": "f92c23d15fb6ee24539aeb34dd82a4a6bf61b876",
"population": 23762,
"search_score": 106.4
}
],
"beckett": [
{
"description": "1986 Fleer Michael Jordan RC 57",
"gemrate_id": "7a70aeda7692bf7c24a1b8def12e5afed61c5761",
"population": 14971,
"search_score": 143.9
},
{
"description": "1986 Fleer Stickers Michael Jordan 8",
"gemrate_id": "1d9960d4834316c4f2c14dfbd95ac96384afd352",
"population": 7873,
"search_score": 103.7
}
],
"sgc": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "33a95ad34c7e119fd4a3fd6235019d1893feb630",
"population": 4517,
"search_score": 140.4
},
{
"description": "1986 Fleer Sticker Michael Jordan 8",
"gemrate_id": "f0de396a7e167121df7151c33916737af6b8bdf6",
"population": 3383,
"search_score": 101
}
],
"cgc": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "408287c2bd6c833dde92eb99662064a9f65afbbf",
"population": 191,
"search_score": 137.6
},
{
"description": "1986 Fleer Stickers Michael Jordan 8",
"gemrate_id": "082c6859af308d2709d5064266c4b6d54f2a039e",
"population": 183,
"search_score": 98.9
}
]
}
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_grader",
"message": "Unknown grader 'foo'."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "forbidden",
"message": "Your key does not have access to this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong."
},
"meta": {
"request_id": "req_abc123"
}
}Cards
Search (Structured)
Full-text search across cards. Returns matches grouped by grading company.
This endpoint is for structured data. For optimal results submit entries in the format: <year> <set_name> <card_subject_name> <parallel> <card_number>. Use it when your queries come programmatically from a catalog or directly from a grader website.
For user-submitted or loosely structured text (e.g. marketplace listings), use
GET /v1/cards/search/simple instead.GET
/
v1
/
cards
/
search
/
structured
Search (Structured)
curl --request GET \
--url https://api.gemrate.com/v1/cards/search/structured \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gemrate.com/v1/cards/search/structured"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.gemrate.com/v1/cards/search/structured', 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.gemrate.com/v1/cards/search/structured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.gemrate.com/v1/cards/search/structured"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.gemrate.com/v1/cards/search/structured")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gemrate.com/v1/cards/search/structured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"query": "1986 fleer michael jordan 57",
"graders_included": [
"psa",
"beckett",
"sgc",
"cgc"
],
"results": {
"psa": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "25b4432f12a5d6ec29a6f00490200416d5dfa242",
"population": 30978,
"search_score": 146.3
},
{
"description": "2006 Fleer Buyback Michael Jordan 1986 Fleer-Autograph 57",
"gemrate_id": "31853ea7b52c551e817c3e5707f75f7d35de9559",
"population": 4,
"search_score": 128.4
},
{
"description": "1986 Fleer Sticker Michael Jordan 8",
"gemrate_id": "f92c23d15fb6ee24539aeb34dd82a4a6bf61b876",
"population": 23762,
"search_score": 106.4
}
],
"beckett": [
{
"description": "1986 Fleer Michael Jordan RC 57",
"gemrate_id": "7a70aeda7692bf7c24a1b8def12e5afed61c5761",
"population": 14971,
"search_score": 143.9
},
{
"description": "1986 Fleer Stickers Michael Jordan 8",
"gemrate_id": "1d9960d4834316c4f2c14dfbd95ac96384afd352",
"population": 7873,
"search_score": 103.7
}
],
"sgc": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "33a95ad34c7e119fd4a3fd6235019d1893feb630",
"population": 4517,
"search_score": 140.4
},
{
"description": "1986 Fleer Sticker Michael Jordan 8",
"gemrate_id": "f0de396a7e167121df7151c33916737af6b8bdf6",
"population": 3383,
"search_score": 101
}
],
"cgc": [
{
"description": "1986 Fleer Michael Jordan 57",
"gemrate_id": "408287c2bd6c833dde92eb99662064a9f65afbbf",
"population": 191,
"search_score": 137.6
},
{
"description": "1986 Fleer Stickers Michael Jordan 8",
"gemrate_id": "082c6859af308d2709d5064266c4b6d54f2a039e",
"population": 183,
"search_score": 98.9
}
]
}
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "invalid_grader",
"message": "Unknown grader 'foo'."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "forbidden",
"message": "Your key does not have access to this resource."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests."
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong."
},
"meta": {
"request_id": "req_abc123"
}
}Authorizations
Query Parameters
The search text. Case-agnostic, no typo tolerance. Use the structured format for best results <year> <set name> <card subject name> <parallel> <card number>.
Example:
"1986 Fleer Michael Jordan 57"
Restrict results to a single grading company. The grading company.
Available options:
psa, beckett, sgc, cgc Example:
"psa"
⌘I