Skip to content

Get one category and its games

GET
/categories/{slug}
curl --request GET \
--url 'https://api.thebgdb.org/v1/categories/family?order=added&seed=482913&kind=game&illustrated=1&cover=ok&complexity_min=2.5&complexity_max=3.5&rating_min=7&lang=fr&limit=60'

The category and the games linked to it, a page at a time, optionally filtered and ordered. total counts the games that pass the filters. The old address of a category written twice and merged into one answers with a permanent redirect (301) to the one kept.

slug
required
string

The category’s slug, as returned by the API.

Example

family
order
string
Allowed values: added new name year oldest hot rating complexity popular ranked random

added oldest entry first, new newest entry first, name alphabetical, year most recent game first, oldest oldest game first (games with no known year are left out), hot highest hotness first (see GET /hot), rating highest weighted rating first, complexity heaviest first, popular best known first (the measure search results are ordered by: hotness, rank, number of ratings and how many languages name the game, worked out again every night), ranked best ranked first by our overall rank (unranked games last), random shuffled by seed. With rating and complexity, games nobody has rated or voted on come last. Without it: most recently added first.

seed
integer
<= 2147483646

With order=random: any whole number. The same seed gives the same order, so pass it with every page to go through the list without seeing a game twice. Without it the order changes every hour. Other orders ignore it.

Example

482913
kind
string
Allowed values: game expansion accessory

Only entries of this type: game a stand-alone game, expansion one that needs another game, accessory something that is not played (sleeves, an insert, a playmat). Without it, all three are listed.

players
integer
>= 1 <= 99

Only games that can be played by this many players.

players_from
integer
>= 1 <= 99

With players_to: only games that can be played at every count from players_from to players_to. Alone, the same as players.

players_to
integer
>= 1 <= 99

Upper end of the range started by players_from.

year_from
integer

Only games published in this year or later.

year_to
integer

Only games published in this year or earlier.

time_max
integer
>= 1

Only games that can be finished within this many minutes.

age
integer
<= 99

Only games suitable for someone of this age.

illustrated
string
Allowed values: 1

Set to 1 for only games that have a cover image.

cover
string
Allowed values: ok needs_work unreviewed none

Only games whose cover is in this state. ok: a good cover (imageAcceptable true). needs_work: a cover found not good (not the box front, a person in it, or imageQuality below 3), so a better one is wanted. unreviewed: a cover nothing has looked at yet. none: no cover at all. A cover that was not looked at is neither ok nor needs_work.

complexity_min
number
>= 1 <= 5

Only games whose average complexity is at least this. Games nobody has voted on are left out.

Example

2.5
complexity_max
number
>= 1 <= 5

Only games whose average complexity is at most this. Games nobody has voted on are left out.

Example

3.5
rating_min
number
>= 1 <= 10

Only games whose average rating is at least this. Games nobody has rated are left out.

Example

7
letter
string
/^[A-Za-z0]$/

Only games whose main name starts with this letter (A to Z, case ignored; an accented letter counts as its plain letter: “Écarté” is under E). 0 gives the names that start with anything else. This filter always reads the main name, whatever lang says; GET /index/games files by the name in the language. With order=popular: the best-known games of a letter.

lang
string

A language code (BCP 47) such as “fr”, “ja” or “pt-BR”. A game that has a name in that language is returned with it as name, and its main name as originalName; a regional code falls back on its language (“fr-CA” on “fr”), a language with no name of its own takes a regional one (“pt” shows a name the game only has in “pt-BR”), and a game with no name in the language keeps its main name. A game that has a cover of its own in that language (the box of its French edition) is returned with it as image; otherwise image is its main cover. Only names and covers are localised: descriptions and summaries stay in English.

Example

fr
limit
integer
default: 60 >= 1 <= 100
page
integer
>= 1 <= 100000

Which page to return, from 1, of limit games each: it starts at game (page − 1) × limit + 1, so page=3&limit=24 is the same page as cursor=48&limit=24. Send page or cursor, not both (400 invalid_page). A page past the last is refused with 404 page_out_of_range, whose params.pages says how many there are; page 1 of an empty list is an empty page. A random order keeps the same shuffle for the same seed on every page.

cursor
string

The nextCursor of the previous page.

The category with its games.

Media typeapplication/json
object
data
required
object
slug
required
string
name
required
string
total
required

How many of its games pass the filters.

integer
games
required
Array<object>
object
id
required

Never changes. When two entries turn out to be the same game, one is merged into the other: its id then leads to the game it was merged into.

string format: uuid
slug
required

Used in URLs. The name, then the name and year when the name is taken, then a number after it (catan, catan-1995, catan-1995-2). It may change once, by that rule or by a merge; the slug it had keeps leading to the game.

string
name
required

The game’s main name, or its name in the language asked for with lang when it has one.

string
originalName

The game’s main name when name is the one of the language asked for with lang. Null otherwise.

string | null
yearPublished
required
integer | null
players
required

Fewest and most players.

object
min
required
integer | null
max
required
integer | null
image
required

The game’s cover: always a path on this API (starts with /v1/media/): a member’s photo or our own copy of the cover. Null when the game has none we hold yet: the API never sends another site’s address for a file. It is the main cover, the original edition’s, unless lang asks for a language the game has a cover of its own in: then it is that one (on a game, every cover is in covers). Texts from Wikipedia and images from Wikimedia Commons are credited, as their licences ask, at https://thebgdb.org/credits and listed by GET /v1/credits.

string | null
medium

A middle-sized version of image, for cards and small screens: a path on this API to our copy 500 pixels wide. The same path as image when the cover is no wider than that, when no narrower copy could be made, and for members’ uploads. Null when the game has no cover we hold.

string | null
thumbnail
required

A small version of image, for lists: a path on this API to our copy 250 pixels wide. There is no resizing for members’ uploads, so for those it is the same path as image. Null when the game has no cover we hold.

string | null
kind

What the entry is: game a stand-alone game; expansion when it needs another game to be played (see relations.expansionOf on the game); accessory when it is not played at all (sleeves, an insert, a playmat). Everything is a game until a source states otherwise.

string
Allowed values: game expansion accessory
imageKind

What the cover shows: as a vision model judged it, box_front for a cover a moderator chose, or what the member said for a member’s photo shown as the cover. Null when it has not been looked at or when the game has no cover. box_front the whole front of the box; box_back its back; box_partial the box at an angle, cropped, or an overall shot of it; board_traditional the board of a traditional game that never had a box (chess, go); setup the game laid out ready to play; in_play a game in progress, nobody visible; components the pieces, boards and tokens; cards cards; people people playing, or any person, face or hand in the picture; rulebook a page of the rules; logo a title or logo alone; other anything else. New words may be added; treat an unknown one as other.

string | null
Allowed values: box_front board_traditional box_partial logo components in_play people other box_back setup cards rulebook
imageAcceptable

Whether the cover is a good one: the whole front of the box (or the board of a traditional game), with no person in it, of quality 3 or more (imageQuality), at least 300 pixels on its short side. False means a better cover is wanted. A moderator’s decision overrules what the cover was found to show. Null when nothing has looked at the cover or when the game has none. A member’s approved photo is shown as the cover unless it was found not good while the source’s cover is good.

boolean | null
imageQuality

How good a picture the cover is, as a vision model judged it: 5 a clean, sharp, straight scan or packshot; 3 an honest photo with small faults (some glare, some angle); 1 and 2 blurred, tiny, dark, glaring, skewed, watermarked or cluttered. Below 3 the cover is not a good one (imageAcceptable false). Null when it has not been judged for quality or when the game has no cover.

integer | null
>= 1 <= 5
imageWidth

Width of the cover in pixels, to lay it out before it loads. Null when not measured.

integer | null
imageHeight

Height of the cover in pixels. Null when not measured.

integer | null
imageLanguage

The language of the edition the cover shows, as a language code (de for a German box). Null unless a source states it reliably, which is rare: most covers say nothing about it.

string | null
rating
required

Members’ ratings. Null when nobody has rated it.

One of:
object
average
required

Mean of members’ ratings, from 1 to 10.

number
count
required

How many members rated the game.

integer
weighted
required

The average pulled towards the mean of all ratings in the catalog, as if the game had also received 30 ratings at that mean: (30 × catalog mean + sum of the game’s ratings) ÷ (30 + count). It keeps a game with a handful of high ratings from outranking a widely rated one. Ranks and order=rating use it. Brought up to date every hour.

number
complexity
required

Members’ votes on how heavy the game is. Null when nobody has voted.

One of:
object
average
required

From 1 (light) to 5 (heavy).

number
votes
required
integer
page
required

The page shown, from 1. Null when a cursor started it between two pages.

integer | null
pages
required

How many pages of limit games there are: total divided by limit, rounded up. 0 for an empty list.

integer
nextCursor
required

Pass as cursor to get the next page. Null on the last page.

string | null

Example

{
"data": {
"slug": "family",
"name": "Family",
"total": 1,
"games": [
{
"id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77",
"slug": "catan",
"name": "Catan",
"originalName": null,
"kind": "game",
"yearPublished": 1995,
"players": {
"min": 3,
"max": 4
},
"image": "/v1/media/covers/4f1c2b9e.jpg",
"medium": "/v1/media/covers/4f1c2b9e-w500.jpg",
"thumbnail": "/v1/media/covers/4f1c2b9e-w250.jpg",
"rating": {
"average": 7.42,
"count": 318,
"weighted": 7.31
},
"complexity": {
"average": 2.29,
"votes": 121
}
}
],
"page": 1,
"pages": 1,
"nextCursor": null
}
}

The slug is the old address of a category merged into another (the same written two ways): Location is the address of the one kept.

page, cursor, order, lang or a filter is not an accepted value.

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 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_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 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 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
params

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

object
key
additional properties
string | number

Example

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

No category has this slug (not_found), or page is past the last page (page_out_of_range, with params.pages).

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 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_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 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 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
params

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

object
key
additional properties
string | number

Example

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

Over a request limit. rate_limited: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). weekly_limit: the week’s requests or game details are used up (params.max is the cap). The retry-after header says how many seconds to wait: 60 for a minute’s limit, until midnight UTC for a day’s, until Monday 00:00 UTC for a week’s.

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 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_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 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 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
params

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

object
key
additional properties
string | number

Example

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