@getanyapi/sdk 0.175.5 → 0.176.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 +60 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +588 -4
- package/dist/index.d.ts +588 -4
- package/dist/index.js +59 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1291,7 +1291,7 @@ var AmazonNamespace = class {
|
|
|
1291
1291
|
*
|
|
1292
1292
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1293
1293
|
*
|
|
1294
|
-
* Price: $0.
|
|
1294
|
+
* Price: $0.00075 per request.
|
|
1295
1295
|
*
|
|
1296
1296
|
* @example
|
|
1297
1297
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -1615,6 +1615,53 @@ var CapterraNamespace = class {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
};
|
|
1617
1617
|
|
|
1618
|
+
// src/generated/platforms/cards.ts
|
|
1619
|
+
var CardsNamespace = class {
|
|
1620
|
+
constructor(_core) {
|
|
1621
|
+
this._core = _core;
|
|
1622
|
+
}
|
|
1623
|
+
_core;
|
|
1624
|
+
/**
|
|
1625
|
+
* Graded Card Cert Lookup
|
|
1626
|
+
*
|
|
1627
|
+
* Look up one graded trading card slab by its PSA, BGS, SGC or CGC certificate number and get the card (year, set, number, player or character, variety), its grade with BGS subgrades, the approximate population in that grade, the estimated market value with its low and high range, the last sale of any copy in that grade, and the sales of this exact slab that carry its certificate number (eBay and Fanatics Collect sales only from about the last 90 days, when the seller put the number in the title), in one normalized response. Sports cards, Pokemon and other trading card games.
|
|
1628
|
+
*
|
|
1629
|
+
* Price: $0.00338 per request.
|
|
1630
|
+
*
|
|
1631
|
+
* @example
|
|
1632
|
+
* const res = await client.cards.gradedCert({ certNumber: "0011562845", gradingCompany: "BGS" });
|
|
1633
|
+
*/
|
|
1634
|
+
gradedCert(input, options) {
|
|
1635
|
+
return this._core.run("cards.graded_cert", input, options);
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Graded Card Population
|
|
1639
|
+
*
|
|
1640
|
+
* Get one graded trading card's population report across PSA, BGS, SGC and CGC by card ID (from Graded Card Population Search): total graded, gem count and gem rate, the count at every grade on a common scale with the share graded higher, and per grader the count at every grade including half grades and qualified grades (OC, MK and the like), with the date the population last changed. Sports cards, Pokemon and other trading card games.
|
|
1641
|
+
*
|
|
1642
|
+
* Price: $0.00338 per request.
|
|
1643
|
+
*
|
|
1644
|
+
* @example
|
|
1645
|
+
* const res = await client.cards.population({ cardId: "ffb8699bb7f435eff4e9761f8e29358e351d777e" });
|
|
1646
|
+
*/
|
|
1647
|
+
population(input, options) {
|
|
1648
|
+
return this._core.run("cards.population", input, options);
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* Graded Card Population Search
|
|
1652
|
+
*
|
|
1653
|
+
* Search graded trading cards across PSA, BGS, SGC and CGC by free text (year, set, player or character, card number, parallel) and get each matching card variant with its card ID, year, set, number, parallel, total graded population, gem count and gem rate. Pass the card ID to Graded Card Population for the count at every grade.
|
|
1654
|
+
*
|
|
1655
|
+
* Price: $0.00225 per request.
|
|
1656
|
+
*
|
|
1657
|
+
* @example
|
|
1658
|
+
* const res = await client.cards.populationSearch({ query: "1999 Pokemon Base Charizard" });
|
|
1659
|
+
*/
|
|
1660
|
+
populationSearch(input, options) {
|
|
1661
|
+
return this._core.run("cards.population_search", input, options);
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1618
1665
|
// src/generated/platforms/chatgpt.ts
|
|
1619
1666
|
var ChatgptNamespace = class {
|
|
1620
1667
|
constructor(_core) {
|
|
@@ -3618,7 +3665,7 @@ var GoogleNamespace = class {
|
|
|
3618
3665
|
*
|
|
3619
3666
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
3620
3667
|
*
|
|
3621
|
-
* Price: $0.
|
|
3668
|
+
* Price: $0.00087 per request.
|
|
3622
3669
|
*
|
|
3623
3670
|
* @example
|
|
3624
3671
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -8880,7 +8927,7 @@ var TwitterNamespace = class {
|
|
|
8880
8927
|
*
|
|
8881
8928
|
* Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
|
|
8882
8929
|
*
|
|
8883
|
-
* Price: $0.
|
|
8930
|
+
* Price: $0.00049 per request.
|
|
8884
8931
|
*
|
|
8885
8932
|
* @example
|
|
8886
8933
|
* const res = await client.twitter.search({ query: "openai" });
|
|
@@ -10075,6 +10122,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10075
10122
|
this._core
|
|
10076
10123
|
);
|
|
10077
10124
|
}
|
|
10125
|
+
/**
|
|
10126
|
+
* Typed methods for the cards platform.
|
|
10127
|
+
*/
|
|
10128
|
+
get cards() {
|
|
10129
|
+
return this._namespaces["cards"] ??= new CardsNamespace(
|
|
10130
|
+
this._core
|
|
10131
|
+
);
|
|
10132
|
+
}
|
|
10078
10133
|
/**
|
|
10079
10134
|
* Typed methods for the chatgpt platform.
|
|
10080
10135
|
*/
|
|
@@ -10754,6 +10809,7 @@ export {
|
|
|
10754
10809
|
BookingNamespace,
|
|
10755
10810
|
BraveNamespace,
|
|
10756
10811
|
CapterraNamespace,
|
|
10812
|
+
CardsNamespace,
|
|
10757
10813
|
ChatgptNamespace,
|
|
10758
10814
|
CoinmarketcapNamespace,
|
|
10759
10815
|
CompanyEnrichmentNamespace,
|