@getanyapi/sdk 0.136.8 → 0.137.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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3095,7 +3095,7 @@ declare class AmazonNamespace {
|
|
|
3095
3095
|
*
|
|
3096
3096
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
3097
3097
|
*
|
|
3098
|
-
* Price: $0.
|
|
3098
|
+
* Price: $0.0021 per request.
|
|
3099
3099
|
*
|
|
3100
3100
|
* @example
|
|
3101
3101
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -7320,7 +7320,7 @@ declare class BingNamespace {
|
|
|
7320
7320
|
*
|
|
7321
7321
|
* Ask Microsoft Copilot (the AI answer in Bing) a question and get its web-grounded answer with the sources it cites as clean JSON - for tracking how Copilot answers and which sites it cites.
|
|
7322
7322
|
*
|
|
7323
|
-
* Price: $0.
|
|
7323
|
+
* Price: $0.00644 per request.
|
|
7324
7324
|
*
|
|
7325
7325
|
* @example
|
|
7326
7326
|
* const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
|
|
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
|
|
|
7761
7761
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
7762
7762
|
*
|
|
7763
7763
|
* @example
|
|
7764
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
7764
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-27", checkOut: "2026-11-29", limit: 3 });
|
|
7765
7765
|
*/
|
|
7766
7766
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
7767
7767
|
}
|
|
@@ -16305,7 +16305,7 @@ declare class EmailNamespace {
|
|
|
16305
16305
|
*
|
|
16306
16306
|
* Find a person's work email address from their name and company domain.
|
|
16307
16307
|
*
|
|
16308
|
-
* Price: $0.
|
|
16308
|
+
* Price: $0.0154 per request.
|
|
16309
16309
|
*
|
|
16310
16310
|
* @example
|
|
16311
16311
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -26914,7 +26914,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26914
26914
|
* Price: $0.0015 per request.
|
|
26915
26915
|
*
|
|
26916
26916
|
* @example
|
|
26917
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
26917
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
26918
26918
|
*/
|
|
26919
26919
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
26920
26920
|
/**
|
|
@@ -26925,7 +26925,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26925
26925
|
* Price: $0.0015 per request.
|
|
26926
26926
|
*
|
|
26927
26927
|
* @example
|
|
26928
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
26928
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", query: "hotels near times square new york" });
|
|
26929
26929
|
*/
|
|
26930
26930
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
26931
26931
|
}
|
|
@@ -30920,9 +30920,9 @@ interface InstagramTaggedPostsInput {
|
|
|
30920
30920
|
*/
|
|
30921
30921
|
preferLatencyUnderMs?: number;
|
|
30922
30922
|
/**
|
|
30923
|
-
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `
|
|
30923
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `audioId`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
30924
30924
|
*/
|
|
30925
|
-
requireFields?: ("audioId" | "carouselCount"
|
|
30925
|
+
requireFields?: ("audioId" | "carouselCount")[];
|
|
30926
30926
|
/**
|
|
30927
30927
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
30928
30928
|
*/
|
|
@@ -39907,7 +39907,7 @@ declare class LinkedinNamespace {
|
|
|
39907
39907
|
*
|
|
39908
39908
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
39909
39909
|
*
|
|
39910
|
-
* Price: $0.
|
|
39910
|
+
* Price: $0.0008 per request.
|
|
39911
39911
|
*
|
|
39912
39912
|
* @example
|
|
39913
39913
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -40020,7 +40020,7 @@ declare class LinkedinNamespace {
|
|
|
40020
40020
|
*
|
|
40021
40021
|
* Lightweight profile: name, avatar, location, followers, public id, current company, and a basic experience/education list (company + dates; job titles, the current-role flag and the connections label only where the source and the profile show them; no descriptions or skills; past companies may be redacted). For full experience detail, skills, certifications, and verified flags use linkedin.profile.
|
|
40022
40022
|
*
|
|
40023
|
-
* Price: $0.
|
|
40023
|
+
* Price: $0.0008 per request.
|
|
40024
40024
|
*
|
|
40025
40025
|
* @example
|
|
40026
40026
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -71867,7 +71867,7 @@ declare class TwitterNamespace {
|
|
|
71867
71867
|
*
|
|
71868
71868
|
* Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
|
|
71869
71869
|
*
|
|
71870
|
-
* Price: $0.
|
|
71870
|
+
* Price: $0.00075 per request.
|
|
71871
71871
|
*
|
|
71872
71872
|
* @example
|
|
71873
71873
|
* const res = await client.twitter.trends({ limit: 10, location: "US" });
|
|
@@ -75910,7 +75910,7 @@ declare class YoutubeNamespace {
|
|
|
75910
75910
|
*
|
|
75911
75911
|
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads.
|
|
75912
75912
|
*
|
|
75913
|
-
* Price: $0.
|
|
75913
|
+
* Price: $0.0718 per request plus $0 per result (maximum $0.0718).
|
|
75914
75914
|
*
|
|
75915
75915
|
* @example
|
|
75916
75916
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|
package/dist/index.d.ts
CHANGED
|
@@ -3095,7 +3095,7 @@ declare class AmazonNamespace {
|
|
|
3095
3095
|
*
|
|
3096
3096
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
3097
3097
|
*
|
|
3098
|
-
* Price: $0.
|
|
3098
|
+
* Price: $0.0021 per request.
|
|
3099
3099
|
*
|
|
3100
3100
|
* @example
|
|
3101
3101
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -7320,7 +7320,7 @@ declare class BingNamespace {
|
|
|
7320
7320
|
*
|
|
7321
7321
|
* Ask Microsoft Copilot (the AI answer in Bing) a question and get its web-grounded answer with the sources it cites as clean JSON - for tracking how Copilot answers and which sites it cites.
|
|
7322
7322
|
*
|
|
7323
|
-
* Price: $0.
|
|
7323
|
+
* Price: $0.00644 per request.
|
|
7324
7324
|
*
|
|
7325
7325
|
* @example
|
|
7326
7326
|
* const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
|
|
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
|
|
|
7761
7761
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
7762
7762
|
*
|
|
7763
7763
|
* @example
|
|
7764
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
7764
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-27", checkOut: "2026-11-29", limit: 3 });
|
|
7765
7765
|
*/
|
|
7766
7766
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
7767
7767
|
}
|
|
@@ -16305,7 +16305,7 @@ declare class EmailNamespace {
|
|
|
16305
16305
|
*
|
|
16306
16306
|
* Find a person's work email address from their name and company domain.
|
|
16307
16307
|
*
|
|
16308
|
-
* Price: $0.
|
|
16308
|
+
* Price: $0.0154 per request.
|
|
16309
16309
|
*
|
|
16310
16310
|
* @example
|
|
16311
16311
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -26914,7 +26914,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26914
26914
|
* Price: $0.0015 per request.
|
|
26915
26915
|
*
|
|
26916
26916
|
* @example
|
|
26917
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
26917
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
26918
26918
|
*/
|
|
26919
26919
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
26920
26920
|
/**
|
|
@@ -26925,7 +26925,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26925
26925
|
* Price: $0.0015 per request.
|
|
26926
26926
|
*
|
|
26927
26927
|
* @example
|
|
26928
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
26928
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", query: "hotels near times square new york" });
|
|
26929
26929
|
*/
|
|
26930
26930
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
26931
26931
|
}
|
|
@@ -30920,9 +30920,9 @@ interface InstagramTaggedPostsInput {
|
|
|
30920
30920
|
*/
|
|
30921
30921
|
preferLatencyUnderMs?: number;
|
|
30922
30922
|
/**
|
|
30923
|
-
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `
|
|
30923
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `audioId`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
30924
30924
|
*/
|
|
30925
|
-
requireFields?: ("audioId" | "carouselCount"
|
|
30925
|
+
requireFields?: ("audioId" | "carouselCount")[];
|
|
30926
30926
|
/**
|
|
30927
30927
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
30928
30928
|
*/
|
|
@@ -39907,7 +39907,7 @@ declare class LinkedinNamespace {
|
|
|
39907
39907
|
*
|
|
39908
39908
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
39909
39909
|
*
|
|
39910
|
-
* Price: $0.
|
|
39910
|
+
* Price: $0.0008 per request.
|
|
39911
39911
|
*
|
|
39912
39912
|
* @example
|
|
39913
39913
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -40020,7 +40020,7 @@ declare class LinkedinNamespace {
|
|
|
40020
40020
|
*
|
|
40021
40021
|
* Lightweight profile: name, avatar, location, followers, public id, current company, and a basic experience/education list (company + dates; job titles, the current-role flag and the connections label only where the source and the profile show them; no descriptions or skills; past companies may be redacted). For full experience detail, skills, certifications, and verified flags use linkedin.profile.
|
|
40022
40022
|
*
|
|
40023
|
-
* Price: $0.
|
|
40023
|
+
* Price: $0.0008 per request.
|
|
40024
40024
|
*
|
|
40025
40025
|
* @example
|
|
40026
40026
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -71867,7 +71867,7 @@ declare class TwitterNamespace {
|
|
|
71867
71867
|
*
|
|
71868
71868
|
* Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
|
|
71869
71869
|
*
|
|
71870
|
-
* Price: $0.
|
|
71870
|
+
* Price: $0.00075 per request.
|
|
71871
71871
|
*
|
|
71872
71872
|
* @example
|
|
71873
71873
|
* const res = await client.twitter.trends({ limit: 10, location: "US" });
|
|
@@ -75910,7 +75910,7 @@ declare class YoutubeNamespace {
|
|
|
75910
75910
|
*
|
|
75911
75911
|
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads.
|
|
75912
75912
|
*
|
|
75913
|
-
* Price: $0.
|
|
75913
|
+
* Price: $0.0718 per request plus $0 per result (maximum $0.0718).
|
|
75914
75914
|
*
|
|
75915
75915
|
* @example
|
|
75916
75916
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|
package/dist/index.js
CHANGED
|
@@ -1284,7 +1284,7 @@ var AmazonNamespace = class {
|
|
|
1284
1284
|
*
|
|
1285
1285
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1286
1286
|
*
|
|
1287
|
-
* Price: $0.
|
|
1287
|
+
* Price: $0.0021 per request.
|
|
1288
1288
|
*
|
|
1289
1289
|
* @example
|
|
1290
1290
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -1587,7 +1587,7 @@ var BingNamespace = class {
|
|
|
1587
1587
|
*
|
|
1588
1588
|
* Ask Microsoft Copilot (the AI answer in Bing) a question and get its web-grounded answer with the sources it cites as clean JSON - for tracking how Copilot answers and which sites it cites.
|
|
1589
1589
|
*
|
|
1590
|
-
* Price: $0.
|
|
1590
|
+
* Price: $0.00644 per request.
|
|
1591
1591
|
*
|
|
1592
1592
|
* @example
|
|
1593
1593
|
* const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
|
|
@@ -1671,7 +1671,7 @@ var BookingNamespace = class {
|
|
|
1671
1671
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1672
1672
|
*
|
|
1673
1673
|
* @example
|
|
1674
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1674
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-27", checkOut: "2026-11-29", limit: 3 });
|
|
1675
1675
|
*/
|
|
1676
1676
|
search(input, options) {
|
|
1677
1677
|
return this._core.run("booking.search", input, options);
|
|
@@ -2270,7 +2270,7 @@ var EmailNamespace = class {
|
|
|
2270
2270
|
*
|
|
2271
2271
|
* Find a person's work email address from their name and company domain.
|
|
2272
2272
|
*
|
|
2273
|
-
* Price: $0.
|
|
2273
|
+
* Price: $0.0154 per request.
|
|
2274
2274
|
*
|
|
2275
2275
|
* @example
|
|
2276
2276
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -3839,7 +3839,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3839
3839
|
* Price: $0.0015 per request.
|
|
3840
3840
|
*
|
|
3841
3841
|
* @example
|
|
3842
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3842
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3843
3843
|
*/
|
|
3844
3844
|
details(input, options) {
|
|
3845
3845
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3852,7 +3852,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3852
3852
|
* Price: $0.0015 per request.
|
|
3853
3853
|
*
|
|
3854
3854
|
* @example
|
|
3855
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3855
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-27", checkOut: "2026-11-29", country: "us", query: "hotels near times square new york" });
|
|
3856
3856
|
*/
|
|
3857
3857
|
search(input, options) {
|
|
3858
3858
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -5020,7 +5020,7 @@ var LinkedinNamespace = class {
|
|
|
5020
5020
|
*
|
|
5021
5021
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
5022
5022
|
*
|
|
5023
|
-
* Price: $0.
|
|
5023
|
+
* Price: $0.0008 per request.
|
|
5024
5024
|
*
|
|
5025
5025
|
* @example
|
|
5026
5026
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -5169,7 +5169,7 @@ var LinkedinNamespace = class {
|
|
|
5169
5169
|
*
|
|
5170
5170
|
* Lightweight profile: name, avatar, location, followers, public id, current company, and a basic experience/education list (company + dates; job titles, the current-role flag and the connections label only where the source and the profile show them; no descriptions or skills; past companies may be redacted). For full experience detail, skills, certifications, and verified flags use linkedin.profile.
|
|
5171
5171
|
*
|
|
5172
|
-
* Price: $0.
|
|
5172
|
+
* Price: $0.0008 per request.
|
|
5173
5173
|
*
|
|
5174
5174
|
* @example
|
|
5175
5175
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -8649,7 +8649,7 @@ var TwitterNamespace = class {
|
|
|
8649
8649
|
*
|
|
8650
8650
|
* Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
|
|
8651
8651
|
*
|
|
8652
|
-
* Price: $0.
|
|
8652
|
+
* Price: $0.00075 per request.
|
|
8653
8653
|
*
|
|
8654
8654
|
* @example
|
|
8655
8655
|
* const res = await client.twitter.trends({ limit: 10, location: "US" });
|
|
@@ -9105,7 +9105,7 @@ var YoutubeNamespace = class {
|
|
|
9105
9105
|
*
|
|
9106
9106
|
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads.
|
|
9107
9107
|
*
|
|
9108
|
-
* Price: $0.
|
|
9108
|
+
* Price: $0.0718 per request plus $0 per result (maximum $0.0718).
|
|
9109
9109
|
*
|
|
9110
9110
|
* @example
|
|
9111
9111
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|