Skip to content

List what is in a game's box

GET
/games/{id}/contents
curl --request GET \
--url https://api.thebgdb.org/v1/games/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/contents

The components of the game’s box (“1 game board, 170 bird cards, 75 eggs”), as lists read from a source: the components page of one of its rulebooks, the back of its box, or its publisher’s product page. One list per edition, language and source; the original edition first, then the surest lists.

Each list names its edition as /games/{id}/editions does, and says how that edition was found (editionBasis): stated when the source belongs to it (the rulebook filed under it, the back of its box), language when it is the game’s only edition in the list’s language, assumed when nothing said and the original edition was taken. confidence is high when the source names the list as the box’s contents and its quantities read cleanly.

id
required
string

The game’s id, as returned in every game object. The game’s slug is accepted too.

Example

5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77
edition
string

Only this edition’s lists: its slug (original) or its id.

language

A language code such as “en”, “fr” or “pt-BR”.

string
/^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$/

Only the lists printed in this language.

The lists, possibly none.

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
edition
required
object
id
required
string
slug
required
string
name
required
string | null
original
required
boolean
language
required
string | null
publisher
required
object
slug
string
name
string
year
required
integer | null
editionBasis
required
string
Allowed values: stated language assumed
language
required
string
source
required
object
type
required
string
Allowed values: rulebook box_back publisher
rulebookId
required

The rulebook the list was read from (/games/{id}/rulebooks).

string | null
page
required
integer | null
url
required

The publisher’s page the list was read from.

string | null
confidence
required
string
Allowed values: high medium low
items
required
Array<object>
object
quantity
required
integer | null
name
required

As the source prints it, in its language.

string
nameEn
required
string
detail
required
string | null
partOf
required

The index in items of the component this one is part of, so totals are not counted twice.

integer | null

Example

{
"data": [
{
"id": "c2f9a7e0-1b3d-4c5e-9f00-2a6b8d4e1f37",
"edition": {
"id": "2e8eb86c-73f6-4343-a04a-c546debfd484:original",
"slug": "original",
"name": null,
"original": true,
"language": null,
"publisher": null,
"year": null
},
"editionBasis": "stated",
"language": "en",
"source": {
"type": "rulebook",
"rulebookId": "6f1d2c3b-8a9e-4b7c-9d0e-1f2a3b4c5d6e",
"page": 2,
"url": null
},
"confidence": "high",
"items": [
{
"quantity": 1,
"name": "goal board",
"nameEn": "goal board",
"detail": null,
"partOf": null
},
{
"quantity": 170,
"name": "bird cards",
"nameEn": "bird cards",
"detail": null,
"partOf": null
},
{
"quantity": 75,
"name": "egg miniatures",
"nameEn": "egg miniatures",
"detail": null,
"partOf": null
}
]
}
]
}

The language is not a language code.

Media typeapplication/json
object
error
required

What went wrong, in plain English words. The wording may change: act on code.

string
code
required

A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.

string
Allowed values: not_found request_too_large catalog_busy internal_error rate_limited weekly_limit coverage_limit missing_address invalid_token invalid_lang invalid_cursor invalid_page page_out_of_range invalid_order invalid_filter invalid_letter invalid_query invalid_language invalid_status game_not_found invalid_ean barcode_not_found paid_plan_required invalid_origin origin_taken invalid_lookup game_withdrawn not_logged_in moderators_only admins_only email_not_confirmed posting_too_fast daily_posting_limit too_many_attempts human_check_unavailable human_check_missing human_check_failed human_check_unverified invalid_email invalid_display_name password_too_short email_taken wrong_credentials account_suspended own_account account_erased confirmation_mismatch verification_link_expired reset_link_invalid reset_link_used reset_link_expired email_not_sent invalid_token_name too_many_tokens invalid_token_expiry invalid_playlist_provider invalid_preferences too_many_preferences preference_not_found photo_missing photo_too_large photo_type_refused photo_too_small photo_not_square daily_photo_limit official_cover_refused photo_not_found back_not_found photo_kind_missing invalid_photo_kind list_not_found invalid_list_name list_description_too_long not_list_owner invalid_list_visibility list_kept rating_out_of_range invalid_vote invalid_comment comment_removed_by_moderator comment_not_found comment_hidden_by_votes own_contribution_vote invalid_video_url invalid_video_title invalid_video_category duplicate_video daily_video_limit video_not_found invalid_playlist_url playlist_title_too_long playlist_title_unreadable invalid_playlist_vote duplicate_playlist playlist_hidden daily_playlist_limit playlist_not_found rulebook_missing rulebook_too_large rulebook_image_too_large rulebook_type_refused rulebook_mixed_files rulebook_too_many_images rulebook_edition_too_long invalid_file_type daily_rulebook_limit rulebook_not_found rulebook_rejected invalid_upload_size rulebook_upload_too_large too_many_open_uploads upload_token_missing upload_not_found upload_expired invalid_upload_part wrong_part_size upload_not_pdf part_incomplete upload_parts_missing upload_assembly_failed upload_size_mismatch invalid_correction description_not_declared unknown_credit not_a_publisher_of_the_game lead_not_found lead_not_acceptable correction_stale correction_range daily_correction_limit invalid_email_domain note_too_long publisher_not_found duplicate_publisher_claim too_many_pending_claims edition_not_found name_not_found invalid_edition invalid_rules rules_unchanged daily_rules_limit invalid_tutorial tutorial_image_unknown tutorial_unchanged daily_tutorial_limit proposal_not_found proposal_decided invalid_accepted_sections rules_stale tutorial_stale engine_unavailable publisher_unavailable games_required merge_refused identifier_kept invalid_decision decision_refused game_required cover_candidate_required image_required crop_invalid invalid_cover_side invalid_mode cover_changed cover_choice_invalid cover_not_found engine_refused engine_unknown_game enrich_request_not_found enrich_job_not_found invalid_enrich_choice job_not_found cover_review_closed cover_candidate_unknown cover_not_reusable cover_not_stored web_image_unknown image_host_refused image_not_fetched image_not_readable straighten_failed straighten_risky straightened_unknown no_cover claim_not_found invalid_rejection_reason correction_not_found invalid_accepted_changes correction_decided revision_not_found revision_undone revision_changed invalid_snooze_item invalid_merge_proposal duplicate_merge_proposal invalid_token_scope publisher_access_required publisher_token_required invalid_application duplicate_application application_pending daily_application_limit application_not_found invalid_game_field game_name_required game_name_language_required game_year_required game_players_required game_playtime_required game_min_age_required game_designer_required game_publisher_not_yours game_description_too_short game_description_not_plain game_description_not_own_words game_cover_required cover_too_small cover_too_large cover_type_refused cover_not_box_front cover_not_box_back cover_not_judged cover_kept_by_moderator duplicate_game not_your_game daily_publisher_limit game_refused invalid_submission invalid_admin_change invalid_price already_subscribed no_billing_account billing_unavailable invalid_signature
params

The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.

object
key
additional properties
string | number
links

On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".

object
pricing
required

The plans and prices page.

string format: uri
token
required

The account page, where a member makes a free API token.

string format: uri

Example

{
"error": "Game not found",
"code": "game_not_found"
}

No game has this id, or it has no such edition.

Media typeapplication/json
object
error
required

What went wrong, in plain English words. The wording may change: act on code.

string
code
required

A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.

string
Allowed values: not_found request_too_large catalog_busy internal_error rate_limited weekly_limit coverage_limit missing_address invalid_token invalid_lang invalid_cursor invalid_page page_out_of_range invalid_order invalid_filter invalid_letter invalid_query invalid_language invalid_status game_not_found invalid_ean barcode_not_found paid_plan_required invalid_origin origin_taken invalid_lookup game_withdrawn not_logged_in moderators_only admins_only email_not_confirmed posting_too_fast daily_posting_limit too_many_attempts human_check_unavailable human_check_missing human_check_failed human_check_unverified invalid_email invalid_display_name password_too_short email_taken wrong_credentials account_suspended own_account account_erased confirmation_mismatch verification_link_expired reset_link_invalid reset_link_used reset_link_expired email_not_sent invalid_token_name too_many_tokens invalid_token_expiry invalid_playlist_provider invalid_preferences too_many_preferences preference_not_found photo_missing photo_too_large photo_type_refused photo_too_small photo_not_square daily_photo_limit official_cover_refused photo_not_found back_not_found photo_kind_missing invalid_photo_kind list_not_found invalid_list_name list_description_too_long not_list_owner invalid_list_visibility list_kept rating_out_of_range invalid_vote invalid_comment comment_removed_by_moderator comment_not_found comment_hidden_by_votes own_contribution_vote invalid_video_url invalid_video_title invalid_video_category duplicate_video daily_video_limit video_not_found invalid_playlist_url playlist_title_too_long playlist_title_unreadable invalid_playlist_vote duplicate_playlist playlist_hidden daily_playlist_limit playlist_not_found rulebook_missing rulebook_too_large rulebook_image_too_large rulebook_type_refused rulebook_mixed_files rulebook_too_many_images rulebook_edition_too_long invalid_file_type daily_rulebook_limit rulebook_not_found rulebook_rejected invalid_upload_size rulebook_upload_too_large too_many_open_uploads upload_token_missing upload_not_found upload_expired invalid_upload_part wrong_part_size upload_not_pdf part_incomplete upload_parts_missing upload_assembly_failed upload_size_mismatch invalid_correction description_not_declared unknown_credit not_a_publisher_of_the_game lead_not_found lead_not_acceptable correction_stale correction_range daily_correction_limit invalid_email_domain note_too_long publisher_not_found duplicate_publisher_claim too_many_pending_claims edition_not_found name_not_found invalid_edition invalid_rules rules_unchanged daily_rules_limit invalid_tutorial tutorial_image_unknown tutorial_unchanged daily_tutorial_limit proposal_not_found proposal_decided invalid_accepted_sections rules_stale tutorial_stale engine_unavailable publisher_unavailable games_required merge_refused identifier_kept invalid_decision decision_refused game_required cover_candidate_required image_required crop_invalid invalid_cover_side invalid_mode cover_changed cover_choice_invalid cover_not_found engine_refused engine_unknown_game enrich_request_not_found enrich_job_not_found invalid_enrich_choice job_not_found cover_review_closed cover_candidate_unknown cover_not_reusable cover_not_stored web_image_unknown image_host_refused image_not_fetched image_not_readable straighten_failed straighten_risky straightened_unknown no_cover claim_not_found invalid_rejection_reason correction_not_found invalid_accepted_changes correction_decided revision_not_found revision_undone revision_changed invalid_snooze_item invalid_merge_proposal duplicate_merge_proposal invalid_token_scope publisher_access_required publisher_token_required invalid_application duplicate_application application_pending daily_application_limit application_not_found invalid_game_field game_name_required game_name_language_required game_year_required game_players_required game_playtime_required game_min_age_required game_designer_required game_publisher_not_yours game_description_too_short game_description_not_plain game_description_not_own_words game_cover_required cover_too_small cover_too_large cover_type_refused cover_not_box_front cover_not_box_back cover_not_judged cover_kept_by_moderator duplicate_game not_your_game daily_publisher_limit game_refused invalid_submission invalid_admin_change invalid_price already_subscribed no_billing_account billing_unavailable invalid_signature
params

The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.

object
key
additional properties
string | number
links

On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".

object
pricing
required

The plans and prices page.

string format: uri
token
required

The account page, where a member makes a free API token.

string format: uri

Example

{
"error": "Game not found",
"code": "game_not_found"
}

Too many requests, or too many of these sent today (code says which).

Media typeapplication/json
object
error
required

What went wrong, in plain English words. The wording may change: act on code.

string
code
required

A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.

string
Allowed values: not_found request_too_large catalog_busy internal_error rate_limited weekly_limit coverage_limit missing_address invalid_token invalid_lang invalid_cursor invalid_page page_out_of_range invalid_order invalid_filter invalid_letter invalid_query invalid_language invalid_status game_not_found invalid_ean barcode_not_found paid_plan_required invalid_origin origin_taken invalid_lookup game_withdrawn not_logged_in moderators_only admins_only email_not_confirmed posting_too_fast daily_posting_limit too_many_attempts human_check_unavailable human_check_missing human_check_failed human_check_unverified invalid_email invalid_display_name password_too_short email_taken wrong_credentials account_suspended own_account account_erased confirmation_mismatch verification_link_expired reset_link_invalid reset_link_used reset_link_expired email_not_sent invalid_token_name too_many_tokens invalid_token_expiry invalid_playlist_provider invalid_preferences too_many_preferences preference_not_found photo_missing photo_too_large photo_type_refused photo_too_small photo_not_square daily_photo_limit official_cover_refused photo_not_found back_not_found photo_kind_missing invalid_photo_kind list_not_found invalid_list_name list_description_too_long not_list_owner invalid_list_visibility list_kept rating_out_of_range invalid_vote invalid_comment comment_removed_by_moderator comment_not_found comment_hidden_by_votes own_contribution_vote invalid_video_url invalid_video_title invalid_video_category duplicate_video daily_video_limit video_not_found invalid_playlist_url playlist_title_too_long playlist_title_unreadable invalid_playlist_vote duplicate_playlist playlist_hidden daily_playlist_limit playlist_not_found rulebook_missing rulebook_too_large rulebook_image_too_large rulebook_type_refused rulebook_mixed_files rulebook_too_many_images rulebook_edition_too_long invalid_file_type daily_rulebook_limit rulebook_not_found rulebook_rejected invalid_upload_size rulebook_upload_too_large too_many_open_uploads upload_token_missing upload_not_found upload_expired invalid_upload_part wrong_part_size upload_not_pdf part_incomplete upload_parts_missing upload_assembly_failed upload_size_mismatch invalid_correction description_not_declared unknown_credit not_a_publisher_of_the_game lead_not_found lead_not_acceptable correction_stale correction_range daily_correction_limit invalid_email_domain note_too_long publisher_not_found duplicate_publisher_claim too_many_pending_claims edition_not_found name_not_found invalid_edition invalid_rules rules_unchanged daily_rules_limit invalid_tutorial tutorial_image_unknown tutorial_unchanged daily_tutorial_limit proposal_not_found proposal_decided invalid_accepted_sections rules_stale tutorial_stale engine_unavailable publisher_unavailable games_required merge_refused identifier_kept invalid_decision decision_refused game_required cover_candidate_required image_required crop_invalid invalid_cover_side invalid_mode cover_changed cover_choice_invalid cover_not_found engine_refused engine_unknown_game enrich_request_not_found enrich_job_not_found invalid_enrich_choice job_not_found cover_review_closed cover_candidate_unknown cover_not_reusable cover_not_stored web_image_unknown image_host_refused image_not_fetched image_not_readable straighten_failed straighten_risky straightened_unknown no_cover claim_not_found invalid_rejection_reason correction_not_found invalid_accepted_changes correction_decided revision_not_found revision_undone revision_changed invalid_snooze_item invalid_merge_proposal duplicate_merge_proposal invalid_token_scope publisher_access_required publisher_token_required invalid_application duplicate_application application_pending daily_application_limit application_not_found invalid_game_field game_name_required game_name_language_required game_year_required game_players_required game_playtime_required game_min_age_required game_designer_required game_publisher_not_yours game_description_too_short game_description_not_plain game_description_not_own_words game_cover_required cover_too_small cover_too_large cover_type_refused cover_not_box_front cover_not_box_back cover_not_judged cover_kept_by_moderator duplicate_game not_your_game daily_publisher_limit game_refused invalid_submission invalid_admin_change invalid_price already_subscribed no_billing_account billing_unavailable invalid_signature
params

The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.

object
key
additional properties
string | number
links

On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".

object
pricing
required

The plans and prices page.

string format: uri
token
required

The account page, where a member makes a free API token.

string format: uri

Example

{
"error": "Game not found",
"code": "game_not_found"
}