Relationships
Printing resources have the following relationships for their records.
- Card
- Card Cycle
- Card Pools
- Card Set
- Card Subtypes
- Card Type
- Faction
- Illustrators
- Side
Printing resources have the following relationships for their records.
The search syntax is the same between the Card and Printing endpoints aside from some fields that only exist in one or the other.
In constructed URLs for calls to the API, ensure that you URL Encode the value to the filter[search] argument.
and) or explicit conjuctions (and and or):
condition1 condition2 condition3 - gets all cards that meet the requirements of all three conditions| ( acts as or) or &.
text:"Runner is tagged"&meat will return all cards with both Runner is tagged and meat in their text.text:"Runner is tagged"|meat will return all cards with either Runner is tagged or meat in their text.Street - gets all cards with “Street” in their namex:credit - gets all cards with “credit” in their ability text (see below for the full list of accepted criteria)"Street Magic" or x:"take all credits"faction!anarch), you can preface any condition with ! or - to negate the whole condition.f:adam -card_type:resource will return all non-resource Adam cards.f:apex !card_type:event will return all non-event Apex cards.and and or conjunctions are supported by the Search Syntax.
t:identity and f:criminal will return all Criminal Identities.(f:criminal or f:shaper) and t:identity or (f:criminal or f:shaper) t:identity will return all Criminal or Shaper Identities.and or one using a space will have a higher precedence than an or.
f:criminal or f:shaper and t:identity and f:criminal or f:shaper t:identity will return all Criminal cards and Shaper Identities.There are 5 types of fields in the Search Filter:
: (an element in the array is an exact match) and ! (an element in the array is not an exact match) operators.
card_pool_ids:eternal|snapshot returns all cards in the eternal or snapshot card pools.card_pool!snapshot returns all cards not in the snapshot card pool.: (match) and ! (negated match) operators. true, false, t, f, 1, and 0 are all acceptable values.
advanceable:true, advanceable:t, and advanceable:1 will all return all results where advanceable is true.: (match), ! (negated match), <, <=, >, and >= operators. Requires date in YYYY-MM-DD format.
release_date<=2020-01-01 will return everything with a release date less than or equal to New Year’s Day, 2020.: (match), ! (negated match), <, <=, >, and >= operators. Requires simple integer input.
cost:X (case insensitive). an X value is treated as -1 behind the scenes.: (LIKE) and ! (NOT LIKE) operators. Input is transformed to lower case and the % decorations are added automatically, turning a query like title:street into a SQL fragment like LOWER(stripped_title) LIKE '%street%.
title:clearance returns everything with clearance in the title.title!clearance returns everything without clearance in the title.card_pool_ids for a card pool containing a card.card_subtype_ids for the card.restriction_id and an Eternal Points value, joined by a hyphen, like eternal_points:eternal_points_list_22_09-2.format_id for any format containing the card at any time.restriction_id restricting the card with a global penalty, like has_global_penalty:napd_mwl_1_1.illustrator_id for an illustrator for the printing.restriction_id specifying the card as banned, like is_banned:standard_ban_list_22_08.restriction_id specifying the card as banned, like is_restricted:standard_mwl_3_4_b.restriction_id specifying the card for any reason, like: restriction_id:eternal_points_list_22_09snapshot_id of a snapshot containing a card.restriction_id and a Universal Faction Cost value, joined by a hyphen, like universal_faction_cost:napd_mwl_1_2-3.advancement_cost value for an agenda. Accepts positive integers and X (case-insensitive).card_cycle_id for a printing.card_id for a printing.card_set_id for printing.card_type_id of this card.faction_id of this card.side_id of the card.GET /api/v3/public/printings?filter[search]=:query
| Name | Description | Type |
|---|---|---|
| query required | Query | string |
GET /api/v3/public/printings?filter[search]=flavor%3Aboi
Content-Type: application/json
Host: api-preview.netrunnerdb.com
filter={"search" => "flavor:boi"}
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/printings?filter[search]=flavor%3Aboi" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "01056",
"type": "printings",
"attributes": {
"card_id": "adonis_campaign",
"card_cycle_id": "core",
"card_cycle_name": "Core Set",
"card_set_id": "core",
"card_set_name": "Core",
"flavor": "Beefy Boi",
"display_illustrators": "Tom of Netrunner",
"illustrator_ids": [
"tom_of_netrunner"
],
"illustrator_names": [
"Tom of Netrunner"
],
"position": 56,
"position_in_set": 3,
"quantity": 3,
"date_release": "2012-09-06",
"updated_at": "2022-12-08T12:00:00+00:00",
"stripped_title": "Adonis Campaign",
"title": "Adonis Campaign",
"card_type_id": "asset",
"side_id": "corp",
"faction_id": "haas_bioroid",
"advancement_requirement": null,
"cost": "4",
"agenda_points": null,
"base_link": null,
"deck_limit": 3,
"in_restriction": false,
"influence_cost": 2,
"influence_limit": null,
"memory_cost": null,
"minimum_deck_size": null,
"num_printings": 1,
"is_latest_printing": true,
"printing_ids": [
"01056"
],
"restriction_ids": [],
"strength": null,
"stripped_text": "Put 12 credits from the bank on Adonis Campaign when rezzed. When there are no credits left on Adonis Campaign, trash it. Take 3 credits from Adonis Campaign when your turn begins.",
"text": "Put 12[credit] from the bank on Adonis Campaign when rezzed. When there are no credits left on Adonis Campaign, trash it.\nTake 3[credit] from Adonis Campaign when your turn begins.",
"trash_cost": 3,
"is_unique": false,
"card_subtype_ids": [
"advertisement"
],
"card_subtype_names": [
"Advertisement"
],
"display_subtypes": null,
"attribution": null,
"format_ids": [
"eternal",
"standard",
"startup"
],
"card_pool_ids": [
"eternal_01",
"standard_01",
"standard_02",
"startup_01",
"startup_02"
],
"snapshot_ids": [
"eternal_01",
"standard_01",
"standard_02",
"standard_03",
"standard_04",
"standard_05",
"startup_01",
"startup_02"
],
"card_cycle_ids": [
"core"
],
"card_cycle_names": [
"Core Set"
],
"card_set_ids": [
"core"
],
"card_set_names": [
"Core"
],
"designed_by": null,
"released_by": null,
"printings_released_by": [
""
],
"pronouns": null,
"pronunciation_approximation": null,
"pronunciation_ipa": null,
"images": {
"nrdb_classic": {
"tiny": "https://card-images.netrunnerdb.com/v2/tiny/01056.jpg",
"small": "https://card-images.netrunnerdb.com/v2/small/01056.jpg",
"medium": "https://card-images.netrunnerdb.com/v2/medium/01056.jpg",
"large": "https://card-images.netrunnerdb.com/v2/large/01056.jpg"
}
},
"card_abilities": {
"additional_cost": false,
"advanceable": false,
"gains_subroutines": false,
"interrupt": false,
"link_provided": null,
"mu_provided": null,
"num_printed_subroutines": null,
"on_encounter_effect": false,
"performs_trace": false,
"recurring_credits_provided": null,
"rez_effect": false,
"trash_ability": false
},
"latest_printing_id": "01056",
"restrictions": {
"banned": [],
"global_penalty": [],
"points": {},
"restricted": [],
"universal_faction_cost": {}
},
"num_extra_faces": 0,
"faces": []
},
"relationships": {
"card": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards/adonis_campaign"
}
},
"card_cycle": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_cycles/core"
}
},
"card_set": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_sets/core"
}
},
"card_type": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_types/asset"
}
},
"faction": {
"links": {
"related": "http://localhost:3000/api/v3/public/factions/haas_bioroid"
}
},
"side": {
"links": {
"related": "http://localhost:3000/api/v3/public/sides/corp"
}
},
"card_subtypes": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_subtypes?filter[id]=advertisement"
}
},
"illustrators": {
"links": {
"related": "http://localhost:3000/api/v3/public/illustrators?filter[id]=tom_of_netrunner"
}
},
"card_pools": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_pools?filter[printing_id]=01056"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/printings/01056"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/printings?filter%5Bsearch%5D=flavor%3Aboi&page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/printings?filter%5Bsearch%5D=flavor%3Aboi&page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/printings?filter%5Bsearch%5D=flavor%3Aboi&page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 1
}
}
}
}