Apply for the Publisher API
const url = 'https://api.thebgdb.org/v1/publisher/applications';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"company":"Kosmos Verlag","publisherName":"Kosmos","website":"https://www.kosmos.de","contactEmail":"games@kosmos.de","proof":"I run the games catalogue at Kosmos; write to games@kosmos.de."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.thebgdb.org/v1/publisher/applications \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "company": "Kosmos Verlag", "publisherName": "Kosmos", "website": "https://www.kosmos.de", "contactEmail": "games@kosmos.de", "proof": "I run the games catalogue at Kosmos; write to games@kosmos.de." }'A moderator checks that you speak for the company (by writing to the contact address, or from your proof) and grants access, or turns the application down with a reason.
Only a logged-in member with a confirmed email address can apply: send your API token (any scope). One application may wait at a time, and 3 may be sent in a UTC day. The website’s form also sends a human check (turnstileToken); it is required with a website session, not with an API token.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The publisher as its games credit it, when not the company’s name.
The company’s site, https.
How we can check that you speak for the company: your role, an address at its domain, a page naming you.
The answer of the website’s human check (Cloudflare Turnstile). Required with a website session; ignored with an API token.
Example
{ "company": "Kosmos Verlag", "publisherName": "Kosmos", "website": "https://www.kosmos.de", "contactEmail": "games@kosmos.de", "proof": "I run the games catalogue at Kosmos; write to games@kosmos.de."}Responses
Section titled “Responses”The application, waiting for a moderator.
object
object
The publisher as games credit it. A moderator may correct it when granting access.
Why it was turned down or withdrawn.
Example
{ "data": { "status": "pending" }}A field is missing or malformed (invalid_application).
object
What went wrong, in plain English words. The wording may change: act on code.
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.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}No API token or session was sent (not_logged_in): anonymous applications are refused.
object
What went wrong, in plain English words. The wording may change: act on code.
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.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The member has not confirmed their email address (email_not_confirmed), or, with a website session, the human check is missing or failed (human_check_missing, human_check_failed, human_check_unverified, human_check_unavailable).
object
What went wrong, in plain English words. The wording may change: act on code.
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.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}You already applied for this publisher (duplicate_application), or another application of yours is waiting for a moderator (application_pending).
object
What went wrong, in plain English words. The wording may change: act on code.
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.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}3 applications were sent today, UTC (daily_application_limit, with retry-after in seconds until midnight UTC), or you are posting too fast (posting_too_fast).
object
What went wrong, in plain English words. The wording may change: act on code.
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.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}