Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
/ webuy-api Public archive

WeBuy CEX API documentation

Notifications You must be signed in to change notification settings

Dionakra/webuy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeBuy API Documentation

Documentation of the API for the WeBuy web applications. The APIs are exactly the same across every WeBuy web app, no matter the region of the store (United Kingdom, Ireland, Spain etc...), so this documentation should work for whatever region you need to extract data.

Request & Response

In this section it is described the common things for all the endpoints, both requests and responses to any store and endpoint.

Requests

The requests all share the same base url, which follows the next format: https://wss2.cex.${COUNTRY_CODE}.webuy.io/v3, where ${COUNTRY_CODE} is the code of the store to get data, like uk for United Kingdom or es for Spain.

Responses

All the responses share the same structure, which is the following one:

{
  "response": {
    "ack": "Success",
    "data": {},
    "error": {
      "code": "",
      "internal_message": "",
      "moreInfo": []
    }
  }
}

The only difference between responses are the data object, which is custom to every endpoint. In this documentation is displayed an example of every endpoint.

Endpoints

Super Categories

{
  "superCats": [
    {
      "superCatId": 1,
      "superCatFriendlyName": "Gaming"
    },
    {
      "superCatId": 2,
      "superCatFriendlyName": "Film & TV"
    },
    {
      "superCatId": 3,
      "superCatFriendlyName": "Computing"
    },
    {
      "superCatId": 4,
      "superCatFriendlyName": "Phones"
    },
    {
      "superCatId": 5,
      "superCatFriendlyName": "Electronics"
    },
    {
      "superCatId": 8,
      "superCatFriendlyName": "Music"
    }
  ]
}

Product Lines

{
  "productLines": [
    {
      "superCatId": 1,
      "productLineId": 70,
      "productLineName": "3DS",
      "totalCategories": 3
    },
    {
      "superCatId": 2,
      "productLineId": 81,
      "productLineName": "Blu-Ray",
      "totalCategories": 7
    },
    {
      "superCatId": 1,
      "productLineId": 92,
      "productLineName": "Board Games",
      "totalCategories": 1
    }
  ]
}

Categories

{
  "categories": [
    {
      "superCatId": 1,
      "categoryId": 50,
      "categoryFriendlyName": "Dreamcast Consoles",
      "productLineId": 18,
      "totalBoxes": 10
    },
    {
      "superCatId": 1,
      "categoryId": 51,
      "categoryFriendlyName": "Dreamcast Games",
      "productLineId": 18,
      "totalBoxes": 399
    },
    {
      "superCatId": 1,
      "categoryId": 401,
      "categoryFriendlyName": "Nintendo 64 Consoles",
      "productLineId": 18,
      "totalBoxes": 77
    }
  ]
}

Search

{
  "boxes": [
    {
      "boxId": "SMEM2Q3AA1",
      "masterBoxId": null,
      "boxName": "8 GB PC12800 DDR3 1600MHz 204 Pin Memory",
      "isMasterBox": 0,
      "categoryId": 939,
      "categoryName": "Memory - Laptop DDR3",
      "categoryFriendlyName": "DDR3 - Laptop 204 Pin",
      "superCatId": 3,
      "superCatName": "Computing",
      "superCatFriendlyName": "Computing",
      "imageUrls": {
        "large": "https://uk.static.webuy.com/product_images/Computing/Memory - Laptop DDR3/SMEM2Q3AA1_l.jpg",
        "medium": "https://uk.static.webuy.com/product_images/Computing/Memory - Laptop DDR3/SMEM2Q3AA1_m.jpg",
        "small": "https://uk.static.webuy.com/product_images/Computing/Memory - Laptop DDR3/SMEM2Q3AA1_s.jpg",
        "masterBoxLarge": null,
        "masterBoxMedium": null,
        "masterBoxSmall": null
      },
      "cannotBuy": 0,
      "isNewBox": 0,
      "sellPrice": 15,
      "cashPrice": 7,
      "exchangePrice": 10,
      "boxRating": 4.6,
      "outOfStock": 0,
      "outOfEcomStock": 0,
      "ecomQuantityOnHand": 50
    }
  ]
}

Product Details

{
  "boxDetails": [
    {
      "boxId": "5030943122533",
      "boxName": "Fifa 20",
      "categoryId": 1003,
      "categoryName": "Playstation4 Software",
      "categoryFriendlyName": "Playstation4 Games",
      "superCatId": 1,
      "superCatName": "Gaming",
      "superCatFriendlyName": "Gaming",
      "cannotBuy": 0,
      "isNewBox": 0,
      "cashPrice": 36,
      "exchangePrice": 40,
      "sellPrice": 50,
      "boxRating": 2.1,
      "outOfStock": 0,
      "ecomQuantityOnHand": 50,
      "webSellAllowed": 1,
      "webBuyAllowed": 1,
      "webShowSellPrice": 1,
      "webShowBuyPrice": 1,
      "imageUrls": {
        "large": "https://uk.static.webuy.com/product_images/Gaming/Playstation4 Software/5030943122533_l.jpg",
        "medium": "https://uk.static.webuy.com/product_images/Gaming/Playstation4 Software/5030943122533_m.jpg",
        "small": "https://uk.static.webuy.com/product_images/Gaming/Playstation4 Software/5030943122533_s.jpg",
        "masterBoxLarge": null,
        "masterBoxMedium": null,
        "masterBoxSmall": null
      },
      "isMasterBox": 0,
      "boxDescription": "As the 2019/2020 season kicks into high gear, EA's FIFA series is back with a host of improvements and one big new twist on its classic formula.\n        \n        With FIFA 20 EA Sports is taking the beautiful game back to the streets for a more casual, creative version of the sports know and love. Pitches are swapped out for courts and cages, sponsored kits are swapped out for casual-wear and tight formations and tactics are swapped out for a more dramatic style of play that's fast and fancy. Configurations include 3v3, 4v4, and 5v5 modes, as well as rush, where there's no keeper.\n        \n        Less obvious but no less important are changes that have been made under the hood. EA has been playing around with the pillars of how matches move and flow, crafting what it calls Football Intelligence around 'decisive moments' (play on the ball); 'authentic game flow' (off the ball) and ball physics (which sort of explains itself).\n        \n        As ever, fidelity to real world elements of the game is a big part of FIFA. The UEFA Champions League; UEFA Europa League and UEFA Super Cup are all present, accounted for and fully licensed, complete with official broadcast overlays, kit badges, match balls and trophies.\n        \n        Returning fans will also be glad of returning modes including FIFA 20 Ultimate Team, Career Mode, a standalone Champions League Mode.\n        \n        Basically, EA Sports FIFA 20 is the full package!",
      "operatorId": null,
      "gradeId": null,
      "productGuide": {
        "productLineId": 76,
        "productGuideDescription": "<h3>Notes About Additional Content</h3><p></p><p>Our products may not include additional material like Digital Copies, Online Passes or promotional downloadable content (DLC).</p><strong>Product Guide</strong><p>Please visit the <a href=\"/support/productgrading\">Grading Guide</a> for more information.</p>",
        "globalGuide": null
      },
      "boxRatingText": null,
      "attributeDetails": null,
      "attributeInfo": [
        {
          "attributeFriendlyName": "Genre",
          "attributeValue": [
            "Sport: Football   Soccer"
          ]
        },
        {
          "attributeFriendlyName": "Publisher",
          "attributeValue": [
            "Electronic Arts"
          ]
        },
        {
          "attributeFriendlyName": "PEGI Certificate",
          "attributeValue": [
            "3+"
          ]
        },
        {
          "attributeFriendlyName": "Players",
          "attributeValue": [
            "1-22"
          ]
        },
        {
          "attributeFriendlyName": "Developer",
          "attributeValue": [
            "EA Vancouver"
          ]
        }
      ]
    }
  ],
  "masterBoxDetails": null
}

Product Availability

{
  "nearestStores": [
    {
      "storeId": 166,
      "storeName": "Milton Keynes",
      "storeImageUrls": [
        "https://uk.static.webuy.com/store_images/166/166.jpg"
      ],
      "quantityOnHand": "4+",
      "distance": 0.84
    },
    {
      "storeId": 3043,
      "storeName": "Bletchley",
      "storeImageUrls": [
        "https://uk.static.webuy.com/store_images/3043/3043.jpg"
      ],
      "quantityOnHand": "4+",
      "distance": 2.74
    }
  ]
}

Stores

{
  "stores": [
    {
      "storeId": 1,
      "storeName": "London W1 Tottenham Crt Rd",
      "regionName": "London and the South-East of England",
      "latitude": 51.520383,
      "longitude": -0.134501
    },
    {
      "storeId": 2,
      "storeName": "London W1 Rathbone Place",
      "regionName": "London and the South-East of England",
      "latitude": 51.51764,
      "longitude": -0.134483
    }
  ]
}

Top Sellers

{
  "boxlistsBoxes": [
    {
      "boxId": "SSAMN970F256GABLUNLA",
      "boxName": "Samsung Galaxy Note 10 4G 256GB Aura Black, Unlocked A",
      "categoryName": "Phones Android",
      "categoryFriendlyName": "Phones Android",
      "superCatId": 4,
      "superCatName": "Phones",
      "superCatFriendlyName": "Phones",
      "imageUrls": {
        "large": "https://uk.static.webuy.com/product_images/Phones/Phones Android/SSAMN970F256GABLUNLA_l.jpg",
        "medium": "https://uk.static.webuy.com/product_images/Phones/Phones Android/SSAMN970F256GABLUNLA_m.jpg",
        "small": "https://uk.static.webuy.com/product_images/Phones/Phones Android/SSAMN970F256GABLUNLA_s.jpg"
      },
      "isNewBox": 0,
      "sellPrice": 690,
      "cashPrice": 400,
      "exchangePrice": 483,
      "boxRating": null
    }
  ]
}

Most Wanted

{
  "boxlistsBoxes": [
    {
      "boxId": "SAPPI11PM64GMGUNLA",
      "boxName": "Apple iPhone 11 Pro Max 64GB Midnight Green, Unlocked A",
      "categoryName": "Phones iPhone",
      "categoryFriendlyName": "Phones - iPhones",
      "superCatId": 4,
      "superCatName": "Phones",
      "superCatFriendlyName": "Phones",
      "imageUrls": {
        "large": "https://uk.static.webuy.com/product_images/Phones/Phones iPhone/SAPPI11PM64GMGUNLA_l.jpg",
        "medium": "https://uk.static.webuy.com/product_images/Phones/Phones iPhone/SAPPI11PM64GMGUNLA_m.jpg",
        "small": "https://uk.static.webuy.com/product_images/Phones/Phones iPhone/SAPPI11PM64GMGUNLA_s.jpg"
      },
      "isNewBox": 0,
      "sellPrice": 1150,
      "cashPrice": 839,
      "exchangePrice": 920,
      "boxRating": null
    }
  ]
}