@getanyapi/sdk 0.175.6 → 0.176.1
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 +63 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +591 -7
- package/dist/index.d.ts +591 -7
- package/dist/index.js +62 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
BookingNamespace: () => BookingNamespace,
|
|
38
38
|
BraveNamespace: () => BraveNamespace,
|
|
39
39
|
CapterraNamespace: () => CapterraNamespace,
|
|
40
|
+
CardsNamespace: () => CardsNamespace,
|
|
40
41
|
ChatgptNamespace: () => ChatgptNamespace,
|
|
41
42
|
CoinmarketcapNamespace: () => CoinmarketcapNamespace,
|
|
42
43
|
CompanyEnrichmentNamespace: () => CompanyEnrichmentNamespace,
|
|
@@ -1753,6 +1754,53 @@ var CapterraNamespace = class {
|
|
|
1753
1754
|
}
|
|
1754
1755
|
};
|
|
1755
1756
|
|
|
1757
|
+
// src/generated/platforms/cards.ts
|
|
1758
|
+
var CardsNamespace = class {
|
|
1759
|
+
constructor(_core) {
|
|
1760
|
+
this._core = _core;
|
|
1761
|
+
}
|
|
1762
|
+
_core;
|
|
1763
|
+
/**
|
|
1764
|
+
* Graded Card Cert Lookup
|
|
1765
|
+
*
|
|
1766
|
+
* 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.
|
|
1767
|
+
*
|
|
1768
|
+
* Price: $0.00338 per request.
|
|
1769
|
+
*
|
|
1770
|
+
* @example
|
|
1771
|
+
* const res = await client.cards.gradedCert({ certNumber: "0011562845", gradingCompany: "BGS" });
|
|
1772
|
+
*/
|
|
1773
|
+
gradedCert(input, options) {
|
|
1774
|
+
return this._core.run("cards.graded_cert", input, options);
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Graded Card Population
|
|
1778
|
+
*
|
|
1779
|
+
* 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.
|
|
1780
|
+
*
|
|
1781
|
+
* Price: $0.00338 per request.
|
|
1782
|
+
*
|
|
1783
|
+
* @example
|
|
1784
|
+
* const res = await client.cards.population({ cardId: "ffb8699bb7f435eff4e9761f8e29358e351d777e" });
|
|
1785
|
+
*/
|
|
1786
|
+
population(input, options) {
|
|
1787
|
+
return this._core.run("cards.population", input, options);
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Graded Card Population Search
|
|
1791
|
+
*
|
|
1792
|
+
* 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.
|
|
1793
|
+
*
|
|
1794
|
+
* Price: $0.00225 per request.
|
|
1795
|
+
*
|
|
1796
|
+
* @example
|
|
1797
|
+
* const res = await client.cards.populationSearch({ query: "1999 Pokemon Base Charizard" });
|
|
1798
|
+
*/
|
|
1799
|
+
populationSearch(input, options) {
|
|
1800
|
+
return this._core.run("cards.population_search", input, options);
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1756
1804
|
// src/generated/platforms/chatgpt.ts
|
|
1757
1805
|
var ChatgptNamespace = class {
|
|
1758
1806
|
constructor(_core) {
|
|
@@ -2711,7 +2759,7 @@ var FacebookNamespace = class {
|
|
|
2711
2759
|
*
|
|
2712
2760
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
2713
2761
|
*
|
|
2714
|
-
* Price: $0.
|
|
2762
|
+
* Price: $0.00105 per request.
|
|
2715
2763
|
*
|
|
2716
2764
|
* @example
|
|
2717
2765
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -3025,7 +3073,7 @@ var FacebookNamespace = class {
|
|
|
3025
3073
|
*
|
|
3026
3074
|
* Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).
|
|
3027
3075
|
*
|
|
3028
|
-
* Price: $0.
|
|
3076
|
+
* Price: $0.00072 per request.
|
|
3029
3077
|
*
|
|
3030
3078
|
* @example
|
|
3031
3079
|
* const res = await client.facebook.post({ url: "https://www.facebook.com/reel/2166091230582141/" });
|
|
@@ -5215,7 +5263,7 @@ var LinkedinNamespace = class {
|
|
|
5215
5263
|
*
|
|
5216
5264
|
* Basic company: name, description, employee count, industry, logo, website, tagline. No follower count, founded year, office locations, or funding data - for those use linkedin.company.
|
|
5217
5265
|
*
|
|
5218
|
-
* Price: $0.
|
|
5266
|
+
* Price: $0.0008 per request.
|
|
5219
5267
|
*
|
|
5220
5268
|
* @example
|
|
5221
5269
|
* const res = await client.linkedin.companyThin({ url: "https://www.linkedin.com/company/stripe" });
|
|
@@ -5267,7 +5315,7 @@ var LinkedinNamespace = class {
|
|
|
5267
5315
|
*
|
|
5268
5316
|
* Fetch one LinkedIn job posting by URL: title, full description, location, salary when disclosed, applicant count, employment and workplace type, seniority, benefits, industries, apply links, posting and expiry dates, the hiring team, the applicant tracking system behind it, and the hiring company with its size, follower count, website and description.
|
|
5269
5317
|
*
|
|
5270
|
-
* Price: $0.
|
|
5318
|
+
* Price: $0.0012 per request.
|
|
5271
5319
|
*
|
|
5272
5320
|
* @example
|
|
5273
5321
|
* const res = await client.linkedin.job({ url: "https://www.linkedin.com/jobs/view/4431721875/" });
|
|
@@ -5390,7 +5438,7 @@ var LinkedinNamespace = class {
|
|
|
5390
5438
|
*
|
|
5391
5439
|
* Fetch a rich LinkedIn member profile by URL: name, headline, avatar, location, connections and followers, current position, and full work experience with job titles, descriptions, dates, employment/workplace type, and per-role skills, plus education, skills, certifications, honors and awards, languages, projects, publications, and verified/premium/open-to-work flags.
|
|
5392
5440
|
*
|
|
5393
|
-
* Price: $0.
|
|
5441
|
+
* Price: $0.00249 per request.
|
|
5394
5442
|
*
|
|
5395
5443
|
* @example
|
|
5396
5444
|
* const res = await client.linkedin.profile({ url: "https://www.linkedin.com/in/patrickcollison" });
|
|
@@ -9018,7 +9066,7 @@ var TwitterNamespace = class {
|
|
|
9018
9066
|
*
|
|
9019
9067
|
* 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.
|
|
9020
9068
|
*
|
|
9021
|
-
* Price: $0.
|
|
9069
|
+
* Price: $0.00049 per request.
|
|
9022
9070
|
*
|
|
9023
9071
|
* @example
|
|
9024
9072
|
* const res = await client.twitter.search({ query: "openai" });
|
|
@@ -10213,6 +10261,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10213
10261
|
this._core
|
|
10214
10262
|
);
|
|
10215
10263
|
}
|
|
10264
|
+
/**
|
|
10265
|
+
* Typed methods for the cards platform.
|
|
10266
|
+
*/
|
|
10267
|
+
get cards() {
|
|
10268
|
+
return this._namespaces["cards"] ??= new CardsNamespace(
|
|
10269
|
+
this._core
|
|
10270
|
+
);
|
|
10271
|
+
}
|
|
10216
10272
|
/**
|
|
10217
10273
|
* Typed methods for the chatgpt platform.
|
|
10218
10274
|
*/
|
|
@@ -10893,6 +10949,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10893
10949
|
BookingNamespace,
|
|
10894
10950
|
BraveNamespace,
|
|
10895
10951
|
CapterraNamespace,
|
|
10952
|
+
CardsNamespace,
|
|
10896
10953
|
ChatgptNamespace,
|
|
10897
10954
|
CoinmarketcapNamespace,
|
|
10898
10955
|
CompanyEnrichmentNamespace,
|