🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

gitlab.com/man90/black-desert-social-rest-api

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab.com/man90/black-desert-social-rest-api

Source
Go
Version
v0.0.0-20210422123654-004db1ab5c93
Version published
Created
Source

Black Desert social REST API

An unofficial JSON API server for Black Desert Online that gets guild and player data via scraping the official website.

API

See OpenAPI documentation.

Projects using this API

  • BDO Leaderboards: a web-based leaderboard application for Black Desert Online guilds.

Getting the binary

Prebuilt

You can download prebuilt binaries here.

Building from source

Prerequisites: GNU/Linux, Go >=1.15

Command:

go build

By default, scraped results are cached in memory and stored for up to 2 hours, it helps to ease the pressure on BDO servers and speeds up the response time in some situations. If you don't want to cache scraped results (for example if you just want to create a dump or need extra fresh data), use this command instead:

go build -tags "cacheless"

Environment variables

Catch requests on a specific port (8001 by default):

export PORT=3000

Use a proxy to make requests to BDO servers (none by default):

export PROXY=http://123.123.123.123:8080
# or
export PROXY="http://123.123.123.123:8080 http://124.124.124.124:8081"

Flags

Flags override environment variables

-cachettl int
	Cache TTL in minutes (default 180)
-port int
	Port to catch requests on (default 8001)
-proxy string
	Open proxy address to make requests to BDO servers

Use them like this:

./black-desert-social-rest-api -proxy="http://192.168.0.0.1:8080" -cachettl=30

Known bugs

A vast majority of bugs comes from the original BDO website, where data is taken from. You can find a list of known bugs and workarounds here.

To-do

  • Error handling
  • Provide info about which character is player's main character
  • Parse a copy of provided data to make evading official website bugs easier
  • Provide meta info through the API routes?

FAQs

Package last updated on 22 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts