Skip to content
Revadike edited this page Apr 22, 2021 · 1 revision

GET /u/json

Request

Host: barter.vg or bartervg.com

Path: /u/json

Response

Name Type Description
:user_id object Key :user_id is the hex ID of the barter.vg user
:user_id.redirect number 0 = the profile has not been merged with another profile, >0 the profile is merged this profile ID (91 redirected profiles, from an earlier time when profiles were added by Steam URL and not SteamID64)
:user_id.steam_persona number The Steam name of the user
If the profile is not claimed, the value will be "unclaimed profile :hexid"
:user_id.steam_id number The steamid64 of a barter.vg user
:user_id.steam_id_string string The value of :user_id.steam_id as a string
:user_id.active number Barter account status: 1 = Active, -1 = Unavailable
:user_id.recent_completed number The Unix timestamp of the last completed offer
:user_id.recent_sent number The Unix timestamp of the last sent offer
:user_id.recent_received number The Unix timestamp of the last received offer

Example

GET https://barter.vg/u/json
{
  ...
  "a0":{
      "redirect":0,
      "steam_persona":"Barter.vg",
      "steam_id":76561198164997231,
      "steam_id_string":"76561198164997231",
      "active":1,
      "recent_completed":1618686227,
      "recent_sent":1618686964,
      "recent_received":1618768201
   },
   "ba":{
      "redirect":0,
      "steam_persona":"unclaimed profile BA",
      "steam_id":76561198125406556,
      "steam_id_string":"76561198125406556",
      "active":-1,
      "recent_completed":0,
      "recent_sent":0,
      "recent_received":0
   }
  ...
}
Clone this wiki locally