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

GET /u/:user_id/json

Request

Host: barter.vg or bartervg.com

Path: /u/:user_id/json

Variables:

Name Type Description
:user_id string The hex ID of the barter.vg user

Response

Name Type Description
hexid string The hex ID of the barter.vg user
steam_id number The steamid64 of a barter.vg user
steam_id_string number The value of steam_id as a string
steam_img string The identifier of the avatar image (the full URL is https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/:steam_img)
preferences object Values for some of the most important user preferences
preferences.available number TODO
preferences.contact_pref number TODO
preferences.language_id number TODO
preferences.region number TODO
preferences.country_id number TODO
preferences.want_unowned number TODO
preferences.want_tradable number TODO
preferences.want_library number TODO
preferences.want_cards number TODO
preferences.want_givenaway number TODO
preferences.avoid_givenaway number TODO
preferences.want_bundles number TODO
preferences.avoid_bundles number TODO
preferences.want_rating number TODO
preferences.offer_limit number TODO
preferences.feedback number TODO
preferences.auto_update_lists number TODO
enhancedbarter object User's settings for Enhanced Barter
enhancedbarter.setting number Determines if user is opted into automated offers (when value is 1)
enhancedbarter.updated number Unix time number of last modification
offers_recent_count number TODO
sasara number TODO
max_items_per_offer number A value indicating the maximum items that the user accepts in an offer

Example

GET https://barter.vg/u/a0/json
{
   "hexid":"a0",
   "steam_id":76561198164997231,
   "steam_id_string":"76561198164997231",
   "steam_img":"41\/41d0a0ca20c6b460c10e03c6ff8ef23bc6bb7f9d",
   "preferences":{
      "available":1,
      "contact_pref":3,
      "country_id":0,
      "want_unowned":1,
      "want_tradable":0,
      "want_library":0,
      "want_cards":0,
      "want_givenaway":0,
      "avoid_givenaway":0,
      "want_bundles":0,
      "avoid_bundles":0,
      "want_rating":0,
      "offer_limit":100,
      "auto_update_lists":1
   },
   "enhancedbarter":{
      "setting":1,
      "updated":1557779065
   },
   "offers_recent_count":0,
   "sasara":0,
   "max_items_per_offer":100
}
Clone this wiki locally