Skip to content
bartervg edited this page May 8, 2021 · 6 revisions

GET /u/:user_id/o/:offer_id/json

Request

Host: barter.vg or bartervg.com

Path: /u/:user_id/o/:offer_id/json

Variables:

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

Response

Name Type Description
error string An error message
"quantity" the quantity set in the offer, i.e. offering 1 of this
"tradable_quantity" the quantity of tradables, I have one of this
"bundles_available" in this number of currently available bundles or specials
"bundles_packages" number of times item has been bundled as a package
"bundles_all" number of times item has been bundled as an app
TODO: Add the rest...

Example

GET https://barter.vg/u/130/o/9/json
{
  "offer_id": 9,
  "from_user_id": "130",
  "from_username": "Sepp",
  "from_steam_id": "76561197960366517",
  "to_user_id": "c5",
  "to_username": "PhantomTa2",
  "to_steam_id": "76561197966255983",
  "type_id": 1,
  "created": 1421852518,
  "updated": 1445240747,
  "opened": 1,
  "to_opened": 0,
  "from_opened": 0,
  "from_and_or": null,
  "to_and_or": null,
  "counter_preference": 0,
  "counter_id": 0,
  "original_id": 0,
  "from_expire": 0,
  "from_extended": 0,
  "to_expire": 0,
  "to_extended": 0,
  "side_to_act": "none",
  "from_status": "completed",
  "from_reason": "",
  "to_status": "completed",
  "to_reason": "",
  "items": {
    "to": {
      "11": {
        "required": 0,
        "included": 1,
        "quantity": 1,
        "tradable_quantity": null,
        "collection_item_id": 277910,
        "item_id": 3258,
        "title": "Ascendant",
        "title_extra": "",
        "platform": 1,
        "sku": 296930,
        "type": "Game",
        "source_id": 1,
        "bundles_available": 0,
        "bundles_packages": 0,
        "bundles_all": 1,
        "tradeable": 0,
        "tradable": 0,
        "wishlist": 54,
        "library": 265,
        "retail_id": null,
        "bundle_id": null,
        "bundle_name": "",
        "item_type": null,
        "retail_name": null,
        "retail_icon": null,
        "base_item_id": 0,
        "is_free": 1592501641,
        "price": 0,
        "price_high": 999,
        "price_euro": 750,
        "price_euro_high": 750,
        "user_reviews_positive": 78,
        "user_reviews_total": 199,
        "achievements": 60,
        "cards": 7,
        "cards_marketable": 1
      }
    },
    "from": {
      "10": {
        "required": 0,
        "included": 1,
        "quantity": 1,
        "tradable_quantity": null,
        "collection_item_id": 285017,
        "item_id": 2084,
        "title": "Demigod",
        "title_extra": "",
        "platform": 1,
        "sku": 202710,
        "type": "Game",
        "source_id": 1,
        "bundles_available": 0,
        "bundles_packages": 0,
        "bundles_all": 3,
        "tradeable": 7,
        "tradable": 7,
        "wishlist": 63,
        "library": 228,
        "retail_id": null,
        "bundle_id": null,
        "bundle_name": "",
        "item_type": null,
        "retail_name": null,
        "retail_icon": null,
        "base_item_id": 0,
        "is_free": 0,
        "price": 999,
        "price_high": 999,
        "price_euro": 819,
        "price_euro_high": 819,
        "user_reviews_positive": 73,
        "user_reviews_total": 728,
        "achievements": 0,
        "cards": 0
      }
    }
  },
  "app_id": null,
  "app_version": null,
  "app_name": null,
  "app_creator_user_id": null,
  "app_creator_persona": "",
  "app_forum": null,
  "app_devsite": null
}
Clone this wiki locally