scrapeunblocker-mcp 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3350,7 +3350,7 @@ var PLUGINS = [
|
|
|
3350
3350
|
"category": "E-commerce",
|
|
3351
3351
|
"path": "/marketplace/shopee-product",
|
|
3352
3352
|
"fixed": {},
|
|
3353
|
-
"description": "One Shopee product as JSON, from a product link (`url`) or `shop_id` + `item_id` + `country`: `title`, `price`, `originalPrice`, `discountPercent`, `currency`, `rating` (average stars), `labels`, `images`, `shopLocation` and `shop` (`name`, `username`, `url`, `rating`, `ratingCount`, `followers`, `itemCount`, `responseRatePercent`, `isOfficialShop`, `isPreferredPlusSeller`, `location`, `joinedAt`). With `dataLevel: full` it also has `availability` (`in_stock`, `sold_out` or `unavailable` for a withdrawn listing) and `inStock`, `description`, `brand`, `condition`, `categories` (the path the product page's breadcrumb shows, with ids), `browseCategories` (the browse tree, whose ids Shopee's category links use), `videos`, `variations` (option names), `models` (`modelId`, `name`, `available` - false for a sold-out variation - and `tierIndex`, the model's option in each variation), `attributes`, `isOfficialShop`, `isPreOrder`, `estimatedShippingDays` and `createdAt`; `dataLevel: meta` means Shopee showed only the product's title and main image (some markets), with price, rating and shop still included. A product Shopee says does not exist (removed, or never existed) answers 404 with JSON `{\"status\": \"not_found\", ...}`; a 502 means the call could not get an answer from Shopee and can be retried. `price` is what Shopee shows a signed-out shopper, which can be a promotional or new-customer price (see `labels`). In Brazil a card often shows the Pix price (`isPixPrice: true`): `price` is then the Pix price and `discountPercent` is measured against the list price, which Shopee does not show on such a card, so `originalPrice` is null. Not available: per-variation prices, stock counts, units sold, rating counts and reviews (Shopee does not publish them on the pages these endpoints read). One unit per call.",
|
|
3353
|
+
"description": "One Shopee product as JSON, from a product link (`url`) or `shop_id` + `item_id` + `country`: `title`, `price`, `originalPrice`, `originalPriceStatus`, `discountPercent`, `currency`, `rating` (average stars), `labels`, `images`, `shopLocation` and `shop` (`name`, `username`, `url`, `rating`, `ratingCount`, `followers`, `itemCount`, `responseRatePercent`, `isOfficialShop`, `isPreferredPlusSeller`, `location`, `joinedAt`). With `dataLevel: full` it also has `availability` (`in_stock`, `sold_out` or `unavailable` for a withdrawn listing) and `inStock`, `description`, `brand`, `condition`, `categories` (the path the product page's breadcrumb shows, with ids), `browseCategories` (the browse tree, whose ids Shopee's category links use), `videos`, `variations` (option names), `models` (`modelId`, `name`, `available` - false for a sold-out variation - and `tierIndex`, the model's option in each variation), `attributes`, `isOfficialShop`, `isPreOrder`, `estimatedShippingDays` and `createdAt`; `dataLevel: meta` means Shopee showed only the product's title and main image (some markets), with price, rating and shop still included. A product Shopee says does not exist (removed, or never existed) answers 404 with JSON `{\"status\": \"not_found\", ...}`; a 502 means the call could not get an answer from Shopee and can be retried. `price` is what Shopee shows a signed-out shopper, which can be a promotional or new-customer price (see `labels`). In Brazil a card often shows the Pix price (`isPixPrice: true`): `price` is then the Pix price and `discountPercent` is measured against the list price, which Shopee does not show on such a card, so `originalPrice` is null. `originalPriceStatus` says what a null `originalPrice` means: `found` (it is set), `no_discount` (Shopee shows no discount, so there is no list price), `pix` (a Pix price: Shopee does not show the list price), `not_shown` (only the product page gives a discount, usually one some variations have; Shopee's listings show the product without one, so there is no crossed-out price to read) or `lookup_failed` (Shopee shows a discount, but no listing we read in this call showed the crossed-out price; a retry can find it). A list price once found is answered again while the product keeps the same price and discount. Not available: per-variation prices, stock counts, units sold, rating counts and reviews (Shopee does not publish them on the pages these endpoints read). One unit per call.",
|
|
3354
3354
|
"params": [
|
|
3355
3355
|
{
|
|
3356
3356
|
"name": "url",
|
|
@@ -8955,7 +8955,7 @@ ${body}`);
|
|
|
8955
8955
|
}
|
|
8956
8956
|
|
|
8957
8957
|
// src/index.ts
|
|
8958
|
-
var VERSION = "0.12.
|
|
8958
|
+
var VERSION = "0.12.6";
|
|
8959
8959
|
var DEFAULT_BASE_URL = "https://api.scrapeunblocker.com";
|
|
8960
8960
|
var API_KEY_HEADER = "x-scrapeunblocker-key";
|
|
8961
8961
|
function resolveApiKey() {
|
|
@@ -8972,7 +8972,7 @@ function client() {
|
|
|
8972
8972
|
const apiKey = resolveApiKey();
|
|
8973
8973
|
if (!apiKey) throw new Error(MISSING_KEY_MESSAGE);
|
|
8974
8974
|
const baseUrl = process.env.SCRAPEUNBLOCKER_BASE_URL || void 0;
|
|
8975
|
-
return new ScrapeUnblockerClient({ apiKey, baseUrl });
|
|
8975
|
+
return new ScrapeUnblockerClient({ apiKey, baseUrl, userAgent: `scrapeunblocker-mcp/${VERSION}` });
|
|
8976
8976
|
}
|
|
8977
8977
|
function errorText(err) {
|
|
8978
8978
|
if (err instanceof Error) return err.message;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scrapeunblocker-mcp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"mcpName": "com.scrapeunblocker/scrapeunblocker-mcp",
|
|
5
5
|
"description": "Model Context Protocol (MCP) server for ScrapeUnblocker - lets Claude fetch any web page's HTML (or AI-parsed JSON) and run 100+ site plugins that return structured JSON, through the ScrapeUnblocker anti-bot API, using your own API key.",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
47
|
-
"scrapeunblocker": "^0.
|
|
47
|
+
"scrapeunblocker": "^0.18.4",
|
|
48
48
|
"zod": "^4.6.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|