@getanyapi/sdk 0.128.0 → 0.129.0
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.cjs +129 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1149 -3
- package/dist/index.d.ts +1149 -3
- package/dist/index.js +127 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
AhrefsNamespace: () => AhrefsNamespace,
|
|
24
24
|
AirbnbNamespace: () => AirbnbNamespace,
|
|
25
25
|
AlibabaNamespace: () => AlibabaNamespace,
|
|
26
|
+
AliexpressNamespace: () => AliexpressNamespace,
|
|
26
27
|
AmazonNamespace: () => AmazonNamespace,
|
|
27
28
|
AnyAPI: () => AnyAPI2,
|
|
28
29
|
AnyAPIError: () => AnyAPIError,
|
|
@@ -52,6 +53,7 @@ __export(index_exports, {
|
|
|
52
53
|
EmailFindingNamespace: () => EmailFindingNamespace,
|
|
53
54
|
EmailNamespace: () => EmailNamespace,
|
|
54
55
|
EmailVerificationNamespace: () => EmailVerificationNamespace,
|
|
56
|
+
EtsyNamespace: () => EtsyNamespace,
|
|
55
57
|
FacebookNamespace: () => FacebookNamespace,
|
|
56
58
|
FiverrNamespace: () => FiverrNamespace,
|
|
57
59
|
G2Namespace: () => G2Namespace,
|
|
@@ -1282,6 +1284,53 @@ var AlibabaNamespace = class {
|
|
|
1282
1284
|
}
|
|
1283
1285
|
};
|
|
1284
1286
|
|
|
1287
|
+
// src/generated/platforms/aliexpress.ts
|
|
1288
|
+
var AliexpressNamespace = class {
|
|
1289
|
+
constructor(_core) {
|
|
1290
|
+
this._core = _core;
|
|
1291
|
+
}
|
|
1292
|
+
_core;
|
|
1293
|
+
/**
|
|
1294
|
+
* AliExpress Product
|
|
1295
|
+
*
|
|
1296
|
+
* Look up one AliExpress product by id and get its price, original price, rating, reviews count, images, options, variants with stock, specifications, store, ship-from country and delivery estimate in one normalized response.
|
|
1297
|
+
*
|
|
1298
|
+
* Price: $0.00085 per request.
|
|
1299
|
+
*
|
|
1300
|
+
* @example
|
|
1301
|
+
* const res = await client.aliexpress.product({ productId: "3256807039224587" });
|
|
1302
|
+
*/
|
|
1303
|
+
product(input, options) {
|
|
1304
|
+
return this._core.run("aliexpress.product", input, options);
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* AliExpress Reviews
|
|
1308
|
+
*
|
|
1309
|
+
* Get one page of buyer reviews for an AliExpress product by id, with rating, text, buyer country, date, bought variant and photos for each review, plus the product's total reviews, average rating and star distribution, in one normalized response.
|
|
1310
|
+
*
|
|
1311
|
+
* Price: $0.00085 per request.
|
|
1312
|
+
*
|
|
1313
|
+
* @example
|
|
1314
|
+
* const res = await client.aliexpress.reviews({ productId: "3256807039224587" });
|
|
1315
|
+
*/
|
|
1316
|
+
reviews(input, options) {
|
|
1317
|
+
return this._core.run("aliexpress.reviews", input, options);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* AliExpress Search
|
|
1321
|
+
*
|
|
1322
|
+
* Search AliExpress by keyword with optional sort, price-range, page, ship-to country and currency, and get title, price, original price, units sold and image for each product in one normalized response.
|
|
1323
|
+
*
|
|
1324
|
+
* Price: $0.00085 per request.
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* const res = await client.aliexpress.search({ query: "minecraft room projector" });
|
|
1328
|
+
*/
|
|
1329
|
+
search(input, options) {
|
|
1330
|
+
return this._core.run("aliexpress.search", input, options);
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1285
1334
|
// src/generated/platforms/amazon.ts
|
|
1286
1335
|
var AmazonNamespace = class {
|
|
1287
1336
|
constructor(_core) {
|
|
@@ -2491,6 +2540,66 @@ var EmailVerificationNamespace = class {
|
|
|
2491
2540
|
}
|
|
2492
2541
|
};
|
|
2493
2542
|
|
|
2543
|
+
// src/generated/platforms/etsy.ts
|
|
2544
|
+
var EtsyNamespace = class {
|
|
2545
|
+
constructor(_core) {
|
|
2546
|
+
this._core = _core;
|
|
2547
|
+
}
|
|
2548
|
+
_core;
|
|
2549
|
+
/**
|
|
2550
|
+
* Etsy Product
|
|
2551
|
+
*
|
|
2552
|
+
* Look up one Etsy listing by id and get its price, images, description, rating, reviews count, shop, category, variations, stock, ship-from country, favorites and materials in one normalized response.
|
|
2553
|
+
*
|
|
2554
|
+
* Price: $0.00085 per request.
|
|
2555
|
+
*
|
|
2556
|
+
* @example
|
|
2557
|
+
* const res = await client.etsy.product({ listingId: "1810545592" });
|
|
2558
|
+
*/
|
|
2559
|
+
product(input, options) {
|
|
2560
|
+
return this._core.run("etsy.product", input, options);
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* Etsy Search
|
|
2564
|
+
*
|
|
2565
|
+
* Search Etsy listings by keyword, the same results an Etsy search or /market page shows, with optional sort, price range and page, and get title, price, original price, image, shop, rating and ad flag for each listing in one normalized response.
|
|
2566
|
+
*
|
|
2567
|
+
* Price: $0.00085 per request.
|
|
2568
|
+
*
|
|
2569
|
+
* @example
|
|
2570
|
+
* const res = await client.etsy.search({ query: "cover letter template" });
|
|
2571
|
+
*/
|
|
2572
|
+
search(input, options) {
|
|
2573
|
+
return this._core.run("etsy.search", input, options);
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* Etsy Shop
|
|
2577
|
+
*
|
|
2578
|
+
* Look up one Etsy shop by name and get its id, location, sales, active listings, rating, reviews count, followers, description, logo and banner in one normalized response.
|
|
2579
|
+
*
|
|
2580
|
+
* Price: $0.00085 per request.
|
|
2581
|
+
*
|
|
2582
|
+
* @example
|
|
2583
|
+
* const res = await client.etsy.shop({ shopName: "StudioStelleHD" });
|
|
2584
|
+
*/
|
|
2585
|
+
shop(input, options) {
|
|
2586
|
+
return this._core.run("etsy.shop", input, options);
|
|
2587
|
+
}
|
|
2588
|
+
/**
|
|
2589
|
+
* Etsy Shop Listings
|
|
2590
|
+
*
|
|
2591
|
+
* List one Etsy shop's active listings by shop name, a page at a time, and get title, price, original price and image for each listing in one normalized response.
|
|
2592
|
+
*
|
|
2593
|
+
* Price: $0.00085 per request.
|
|
2594
|
+
*
|
|
2595
|
+
* @example
|
|
2596
|
+
* const res = await client.etsy.shopListings({ shopName: "StudioStelleHD" });
|
|
2597
|
+
*/
|
|
2598
|
+
shopListings(input, options) {
|
|
2599
|
+
return this._core.run("etsy.shop_listings", input, options);
|
|
2600
|
+
}
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2494
2603
|
// src/generated/platforms/facebook.ts
|
|
2495
2604
|
var FacebookNamespace = class {
|
|
2496
2605
|
constructor(_core) {
|
|
@@ -3625,7 +3734,7 @@ var GoogleNamespace = class {
|
|
|
3625
3734
|
*
|
|
3626
3735
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is normally cheaper past roughly 20 results.
|
|
3627
3736
|
*
|
|
3628
|
-
* Price: $0.
|
|
3737
|
+
* Price: $0.0004 per request.
|
|
3629
3738
|
*
|
|
3630
3739
|
* @example
|
|
3631
3740
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -4485,7 +4594,7 @@ var InstagramNamespace = class {
|
|
|
4485
4594
|
*
|
|
4486
4595
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
4487
4596
|
*
|
|
4488
|
-
* Price: $0.
|
|
4597
|
+
* Price: $0.027 per request.
|
|
4489
4598
|
*
|
|
4490
4599
|
* @example
|
|
4491
4600
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -9503,6 +9612,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9503
9612
|
this._core
|
|
9504
9613
|
);
|
|
9505
9614
|
}
|
|
9615
|
+
/**
|
|
9616
|
+
* Typed methods for the aliexpress platform.
|
|
9617
|
+
*/
|
|
9618
|
+
get aliexpress() {
|
|
9619
|
+
return this._namespaces["aliexpress"] ??= new AliexpressNamespace(
|
|
9620
|
+
this._core
|
|
9621
|
+
);
|
|
9622
|
+
}
|
|
9506
9623
|
/**
|
|
9507
9624
|
* Typed methods for the amazon platform.
|
|
9508
9625
|
*/
|
|
@@ -9687,6 +9804,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9687
9804
|
get emailVerification() {
|
|
9688
9805
|
return this._namespaces["emailVerification"] ??= new EmailVerificationNamespace(this._core);
|
|
9689
9806
|
}
|
|
9807
|
+
/**
|
|
9808
|
+
* Typed methods for the etsy platform.
|
|
9809
|
+
*/
|
|
9810
|
+
get etsy() {
|
|
9811
|
+
return this._namespaces["etsy"] ??= new EtsyNamespace(
|
|
9812
|
+
this._core
|
|
9813
|
+
);
|
|
9814
|
+
}
|
|
9690
9815
|
/**
|
|
9691
9816
|
* Typed methods for the facebook platform.
|
|
9692
9817
|
*/
|
|
@@ -10217,6 +10342,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10217
10342
|
AhrefsNamespace,
|
|
10218
10343
|
AirbnbNamespace,
|
|
10219
10344
|
AlibabaNamespace,
|
|
10345
|
+
AliexpressNamespace,
|
|
10220
10346
|
AmazonNamespace,
|
|
10221
10347
|
AnyAPI,
|
|
10222
10348
|
AnyAPIError,
|
|
@@ -10246,6 +10372,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10246
10372
|
EmailFindingNamespace,
|
|
10247
10373
|
EmailNamespace,
|
|
10248
10374
|
EmailVerificationNamespace,
|
|
10375
|
+
EtsyNamespace,
|
|
10249
10376
|
FacebookNamespace,
|
|
10250
10377
|
FiverrNamespace,
|
|
10251
10378
|
G2Namespace,
|