Check the API is up
GET
/health
const url = 'https://api.thebgdb.org/v1/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.thebgdb.org/v1/healthAnswers without reading the database. Not rate limited.
Responses
Section titled “Responses”The API is up.
Media typeapplication/json
object
status
required
string
environment
required
string
Example
{ "status": "ok", "environment": "production"}