@getanyapi/sdk 0.191.1 → 0.192.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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -32567,7 +32567,7 @@ declare class InstagramNamespace {
|
|
|
32567
32567
|
*
|
|
32568
32568
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
32569
32569
|
*
|
|
32570
|
-
* Price: $0.
|
|
32570
|
+
* Price: $0.00037 per request.
|
|
32571
32571
|
*
|
|
32572
32572
|
* @example
|
|
32573
32573
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -41666,7 +41666,7 @@ declare class MapsNamespace {
|
|
|
41666
41666
|
*
|
|
41667
41667
|
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
41668
41668
|
*
|
|
41669
|
-
* Price: $0.
|
|
41669
|
+
* Price: $0.001 per request.
|
|
41670
41670
|
*
|
|
41671
41671
|
* @example
|
|
41672
41672
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA" });
|
|
@@ -72504,10 +72504,6 @@ interface TwitterSearchInput {
|
|
|
72504
72504
|
* Default: Latest.
|
|
72505
72505
|
*/
|
|
72506
72506
|
queryType?: "Latest" | "Top" | "Photos" | "Videos";
|
|
72507
|
-
/**
|
|
72508
|
-
* 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 `nextCursor`, 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. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
72509
|
-
*/
|
|
72510
|
-
requireFields?: "nextCursor"[];
|
|
72511
72507
|
/**
|
|
72512
72508
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
|
|
72513
72509
|
*/
|
|
@@ -72610,7 +72606,7 @@ interface TwitterSearchData {
|
|
|
72610
72606
|
*/
|
|
72611
72607
|
items: TwitterSearchItem[];
|
|
72612
72608
|
/**
|
|
72613
|
-
* Opaque cursor for the next page of search results
|
|
72609
|
+
* Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.
|
|
72614
72610
|
*/
|
|
72615
72611
|
nextCursor?: string | null;
|
|
72616
72612
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -32567,7 +32567,7 @@ declare class InstagramNamespace {
|
|
|
32567
32567
|
*
|
|
32568
32568
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
32569
32569
|
*
|
|
32570
|
-
* Price: $0.
|
|
32570
|
+
* Price: $0.00037 per request.
|
|
32571
32571
|
*
|
|
32572
32572
|
* @example
|
|
32573
32573
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -41666,7 +41666,7 @@ declare class MapsNamespace {
|
|
|
41666
41666
|
*
|
|
41667
41667
|
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
41668
41668
|
*
|
|
41669
|
-
* Price: $0.
|
|
41669
|
+
* Price: $0.001 per request.
|
|
41670
41670
|
*
|
|
41671
41671
|
* @example
|
|
41672
41672
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA" });
|
|
@@ -72504,10 +72504,6 @@ interface TwitterSearchInput {
|
|
|
72504
72504
|
* Default: Latest.
|
|
72505
72505
|
*/
|
|
72506
72506
|
queryType?: "Latest" | "Top" | "Photos" | "Videos";
|
|
72507
|
-
/**
|
|
72508
|
-
* 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 `nextCursor`, 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. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
72509
|
-
*/
|
|
72510
|
-
requireFields?: "nextCursor"[];
|
|
72511
72507
|
/**
|
|
72512
72508
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
|
|
72513
72509
|
*/
|
|
@@ -72610,7 +72606,7 @@ interface TwitterSearchData {
|
|
|
72610
72606
|
*/
|
|
72611
72607
|
items: TwitterSearchItem[];
|
|
72612
72608
|
/**
|
|
72613
|
-
* Opaque cursor for the next page of search results
|
|
72609
|
+
* Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.
|
|
72614
72610
|
*/
|
|
72615
72611
|
nextCursor?: string | null;
|
|
72616
72612
|
}
|
package/dist/index.js
CHANGED
|
@@ -4429,7 +4429,7 @@ var InstagramNamespace = class {
|
|
|
4429
4429
|
*
|
|
4430
4430
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
4431
4431
|
*
|
|
4432
|
-
* Price: $0.
|
|
4432
|
+
* Price: $0.00037 per request.
|
|
4433
4433
|
*
|
|
4434
4434
|
* @example
|
|
4435
4435
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -5638,7 +5638,7 @@ var MapsNamespace = class {
|
|
|
5638
5638
|
*
|
|
5639
5639
|
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
5640
5640
|
*
|
|
5641
|
-
* Price: $0.
|
|
5641
|
+
* Price: $0.001 per request.
|
|
5642
5642
|
*
|
|
5643
5643
|
* @example
|
|
5644
5644
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA" });
|