@getanyapi/sdk 0.169.0 → 0.170.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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -60
- package/dist/index.d.ts +69 -60
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18573,10 +18573,18 @@ interface FacebookPageContactInput {
|
|
|
18573
18573
|
source?: string[];
|
|
18574
18574
|
}
|
|
18575
18575
|
interface FacebookPageContactItem {
|
|
18576
|
+
/**
|
|
18577
|
+
* The page's intro text.
|
|
18578
|
+
*/
|
|
18579
|
+
about?: string;
|
|
18576
18580
|
/**
|
|
18577
18581
|
* The page's Facebook Ad Library id, the `pageId` facebook.company_ads takes. It differs from `id`. Absent when Facebook shows none.
|
|
18578
18582
|
*/
|
|
18579
18583
|
adLibraryPageId?: string;
|
|
18584
|
+
/**
|
|
18585
|
+
* Facebook Ad Library status sentence for the page, or null when the source does not report it.
|
|
18586
|
+
*/
|
|
18587
|
+
adStatus?: string | null;
|
|
18580
18588
|
/**
|
|
18581
18589
|
* The page's public physical address. Empty when the page lists none.
|
|
18582
18590
|
*/
|
|
@@ -18586,14 +18594,26 @@ interface FacebookPageContactItem {
|
|
|
18586
18594
|
* Present whenever the upstream returns this record.
|
|
18587
18595
|
*/
|
|
18588
18596
|
category?: string;
|
|
18597
|
+
/**
|
|
18598
|
+
* Cover photo image URL of the page.
|
|
18599
|
+
*/
|
|
18600
|
+
coverPhotoUrl?: string;
|
|
18601
|
+
/**
|
|
18602
|
+
* UTC epoch timestamp in seconds (Unix time) the page was created, or null when the source does not report it. Absent when Facebook shows no creation date, as on age-restricted Pages. Multiply by 1000 for a JS Date in milliseconds.
|
|
18603
|
+
*/
|
|
18604
|
+
createdUtc?: number | null;
|
|
18589
18605
|
/**
|
|
18590
18606
|
* The page's public contact email. Empty when the page lists none.
|
|
18591
18607
|
*/
|
|
18592
18608
|
email?: string;
|
|
18593
18609
|
/**
|
|
18594
|
-
* The page's follower count. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
|
|
18610
|
+
* The page's follower count, or null when the source does not report it. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
|
|
18595
18611
|
*/
|
|
18596
|
-
followers?: number;
|
|
18612
|
+
followers?: number | null;
|
|
18613
|
+
/**
|
|
18614
|
+
* Numeric Facebook id of the page, as a string.
|
|
18615
|
+
*/
|
|
18616
|
+
id?: string;
|
|
18597
18617
|
/**
|
|
18598
18618
|
* URL of the page's profile picture, a signed CDN URL whose query must be kept. Empty when the upstream omits it.
|
|
18599
18619
|
*/
|
|
@@ -18606,6 +18626,18 @@ interface FacebookPageContactItem {
|
|
|
18606
18626
|
* The page's public phone number. Empty when the page lists none.
|
|
18607
18627
|
*/
|
|
18608
18628
|
phone?: string;
|
|
18629
|
+
/**
|
|
18630
|
+
* Price range the page advertises, e.g. "$$".
|
|
18631
|
+
*/
|
|
18632
|
+
priceRange?: string;
|
|
18633
|
+
/**
|
|
18634
|
+
* Recommendation summary Facebook shows for the page, e.g. "94% recommend (14,553 reviews)", or null when the source does not report it.
|
|
18635
|
+
*/
|
|
18636
|
+
rating?: string | null;
|
|
18637
|
+
/**
|
|
18638
|
+
* Services the page lists, e.g. dine-in or online booking.
|
|
18639
|
+
*/
|
|
18640
|
+
services?: string;
|
|
18609
18641
|
/**
|
|
18610
18642
|
* The page's public name. Populated whenever the provider has data for the entity.
|
|
18611
18643
|
*/
|
|
@@ -18624,42 +18656,10 @@ interface FacebookPageContactItem {
|
|
|
18624
18656
|
* The `data` payload of Facebook Page Contact Info (facebook.page_contact).
|
|
18625
18657
|
*/
|
|
18626
18658
|
interface FacebookPageContactData {
|
|
18627
|
-
/**
|
|
18628
|
-
* The page's intro text.
|
|
18629
|
-
*/
|
|
18630
|
-
about?: string;
|
|
18631
|
-
/**
|
|
18632
|
-
* Facebook Ad Library status sentence for the page.
|
|
18633
|
-
*/
|
|
18634
|
-
adStatus?: string;
|
|
18635
|
-
/**
|
|
18636
|
-
* Cover photo image URL of the page.
|
|
18637
|
-
*/
|
|
18638
|
-
coverPhotoUrl?: string;
|
|
18639
|
-
/**
|
|
18640
|
-
* UTC epoch timestamp in seconds (Unix time) the page was created. Multiply by 1000 for a JS Date in milliseconds.
|
|
18641
|
-
*/
|
|
18642
|
-
createdUtc?: number;
|
|
18643
|
-
/**
|
|
18644
|
-
* Numeric Facebook id of the page, as a string.
|
|
18645
|
-
*/
|
|
18646
|
-
id?: string;
|
|
18647
18659
|
/**
|
|
18648
18660
|
* Contact record for the requested Facebook Page (one item). Populated whenever the provider has data for the entity.
|
|
18649
18661
|
*/
|
|
18650
18662
|
items: FacebookPageContactItem[];
|
|
18651
|
-
/**
|
|
18652
|
-
* Price range the page advertises, e.g. "$$".
|
|
18653
|
-
*/
|
|
18654
|
-
priceRange?: string;
|
|
18655
|
-
/**
|
|
18656
|
-
* Recommendation summary Facebook shows for the page, e.g. "94% recommend (14,553 reviews)".
|
|
18657
|
-
*/
|
|
18658
|
-
rating?: string;
|
|
18659
|
-
/**
|
|
18660
|
-
* Services the page lists, e.g. dine-in or online booking.
|
|
18661
|
-
*/
|
|
18662
|
-
services?: string;
|
|
18663
18663
|
}
|
|
18664
18664
|
/**
|
|
18665
18665
|
* Input for Facebook Page Lookup (facebook.page_lookup).
|
|
@@ -21690,6 +21690,10 @@ interface GithubUserInput {
|
|
|
21690
21690
|
* Range: minimum 1.
|
|
21691
21691
|
*/
|
|
21692
21692
|
preferLatencyUnderMs?: number;
|
|
21693
|
+
/**
|
|
21694
|
+
* 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 `company`, 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 empty on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
21695
|
+
*/
|
|
21696
|
+
requireFields?: ("blog" | "company" | "location" | "publicGists" | "twitterUsername" | "type")[];
|
|
21693
21697
|
/**
|
|
21694
21698
|
* 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`.
|
|
21695
21699
|
*/
|
|
@@ -21708,13 +21712,13 @@ interface GithubUserData {
|
|
|
21708
21712
|
*/
|
|
21709
21713
|
bio: string;
|
|
21710
21714
|
/**
|
|
21711
|
-
* Blog or website URL from the profile.
|
|
21715
|
+
* Blog or website URL from the profile, or null when the source does not report it.
|
|
21712
21716
|
*/
|
|
21713
|
-
blog?: string;
|
|
21717
|
+
blog?: string | null;
|
|
21714
21718
|
/**
|
|
21715
|
-
* Company listed on the profile.
|
|
21719
|
+
* Company listed on the profile, or null when the source does not report it.
|
|
21716
21720
|
*/
|
|
21717
|
-
company?: string;
|
|
21721
|
+
company?: string | null;
|
|
21718
21722
|
/**
|
|
21719
21723
|
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
|
|
21720
21724
|
* Present whenever the upstream returns this record.
|
|
@@ -21733,9 +21737,9 @@ interface GithubUserData {
|
|
|
21733
21737
|
*/
|
|
21734
21738
|
id?: string;
|
|
21735
21739
|
/**
|
|
21736
|
-
* Location listed on the profile.
|
|
21740
|
+
* Location listed on the profile, or null when the source does not report it.
|
|
21737
21741
|
*/
|
|
21738
|
-
location?: string;
|
|
21742
|
+
location?: string | null;
|
|
21739
21743
|
/**
|
|
21740
21744
|
* GitHub username (handle). Populated whenever the provider has data for the entity.
|
|
21741
21745
|
*/
|
|
@@ -21749,21 +21753,21 @@ interface GithubUserData {
|
|
|
21749
21753
|
*/
|
|
21750
21754
|
profileUrl?: string;
|
|
21751
21755
|
/**
|
|
21752
|
-
* Count of public gists.
|
|
21756
|
+
* Count of public gists, or null when the source does not report it.
|
|
21753
21757
|
*/
|
|
21754
|
-
publicGists?: number;
|
|
21758
|
+
publicGists?: number | null;
|
|
21755
21759
|
/**
|
|
21756
21760
|
* Count of public repositories.
|
|
21757
21761
|
*/
|
|
21758
21762
|
publicRepos: number;
|
|
21759
21763
|
/**
|
|
21760
|
-
* Linked X/Twitter username.
|
|
21764
|
+
* Linked X/Twitter username, or null when the source does not report it.
|
|
21761
21765
|
*/
|
|
21762
|
-
twitterUsername?: string;
|
|
21766
|
+
twitterUsername?: string | null;
|
|
21763
21767
|
/**
|
|
21764
|
-
* "User" or "Organization".
|
|
21768
|
+
* "User" or "Organization", or null when the source does not report it.
|
|
21765
21769
|
*/
|
|
21766
|
-
type?: string;
|
|
21770
|
+
type?: string | null;
|
|
21767
21771
|
[extra: string]: unknown;
|
|
21768
21772
|
}
|
|
21769
21773
|
/**
|
|
@@ -27480,6 +27484,10 @@ interface InstagramHighlightDetailInput {
|
|
|
27480
27484
|
* Range: minimum 1.
|
|
27481
27485
|
*/
|
|
27482
27486
|
preferLatencyUnderMs?: number;
|
|
27487
|
+
/**
|
|
27488
|
+
* 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 `createdUtc`, 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. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
27489
|
+
*/
|
|
27490
|
+
requireFields?: "createdUtc"[];
|
|
27483
27491
|
/**
|
|
27484
27492
|
* 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`.
|
|
27485
27493
|
*/
|
|
@@ -27549,9 +27557,9 @@ interface InstagramHighlightDetailData {
|
|
|
27549
27557
|
*/
|
|
27550
27558
|
coverUrl: string;
|
|
27551
27559
|
/**
|
|
27552
|
-
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
|
|
27560
|
+
* UTC epoch timestamp in seconds (Unix time) the highlight was created, or null when the source does not report it. Multiply by 1000 for a JS Date in milliseconds.
|
|
27553
27561
|
*/
|
|
27554
|
-
createdUtc: number;
|
|
27562
|
+
createdUtc: number | null;
|
|
27555
27563
|
/**
|
|
27556
27564
|
* Highlight identifier. Populated whenever the provider has data for the entity.
|
|
27557
27565
|
*/
|
|
@@ -32137,7 +32145,7 @@ declare class InstagramNamespace {
|
|
|
32137
32145
|
*
|
|
32138
32146
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32139
32147
|
*
|
|
32140
|
-
* Price: $0.
|
|
32148
|
+
* Price: $0.00188 per request.
|
|
32141
32149
|
*
|
|
32142
32150
|
* @example
|
|
32143
32151
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -36061,6 +36069,7 @@ interface LinkedinPostReactionsInput {
|
|
|
36061
36069
|
/**
|
|
36062
36070
|
* Maximum number of reactions to return (1-100, default 100).
|
|
36063
36071
|
* Range: minimum 1, maximum 100.
|
|
36072
|
+
* Default: 100.
|
|
36064
36073
|
*/
|
|
36065
36074
|
limit?: number;
|
|
36066
36075
|
/**
|
|
@@ -39774,7 +39783,7 @@ declare class LinkedinNamespace {
|
|
|
39774
39783
|
*
|
|
39775
39784
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
39776
39785
|
*
|
|
39777
|
-
* Price: $0.
|
|
39786
|
+
* Price: $0.0025 per request.
|
|
39778
39787
|
*
|
|
39779
39788
|
* @example
|
|
39780
39789
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
|
@@ -67786,7 +67795,7 @@ interface TiktokTrendingHashtagsInput {
|
|
|
67786
67795
|
*/
|
|
67787
67796
|
industry?: "apparel_accessories" | "baby_kids_maternity" | "beauty_personal_care" | "education" | "food_beverage" | "games" | "health" | "home_improvement" | "household_products" | "news_entertainment" | "pets" | "sports_outdoor" | "tech_electronics" | "travel" | "vehicle_transportation";
|
|
67788
67797
|
/**
|
|
67789
|
-
* Maximum number of ranked hashtags to return, from 1 through 100 (default 3)
|
|
67798
|
+
* Maximum number of ranked hashtags to return, from 1 through 100 (default 3), counted from the top of the board.
|
|
67790
67799
|
* Range: minimum 1, maximum 100.
|
|
67791
67800
|
* Default: 3.
|
|
67792
67801
|
*/
|
|
@@ -69038,7 +69047,7 @@ declare class TiktokNamespace {
|
|
|
69038
69047
|
*
|
|
69039
69048
|
* Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
|
|
69040
69049
|
*
|
|
69041
|
-
* Price: $0.
|
|
69050
|
+
* Price: $0.0012 per request.
|
|
69042
69051
|
*
|
|
69043
69052
|
* @example
|
|
69044
69053
|
* const res = await client.tiktok.trendingFeed({ region: "US" });
|
|
@@ -69047,7 +69056,7 @@ declare class TiktokNamespace {
|
|
|
69047
69056
|
/**
|
|
69048
69057
|
* TikTok Trending Hashtags
|
|
69049
69058
|
*
|
|
69050
|
-
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board.
|
|
69059
|
+
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board. Returns up to the top 100 hashtags of a board in one call. Covers 27 markets: AE, AR, AU, BR, CA, CO, DE, EG, ES, FR, GB, ID, IL, IT, JP, KR, MX, MY, PH, SA, SG, TH, TR, TW, US, VN, ZA.
|
|
69051
69060
|
*
|
|
69052
69061
|
* Price: $0.0012 per request.
|
|
69053
69062
|
*
|
|
@@ -71534,7 +71543,7 @@ interface TwitterRepliesInput {
|
|
|
71534
71543
|
*/
|
|
71535
71544
|
ignoreSources?: string[];
|
|
71536
71545
|
/**
|
|
71537
|
-
*
|
|
71546
|
+
* Most replies to return (1-40, default 40). Ignored on sources that page: each call returns one full page of up to about 36 replies, never trimmed; follow nextCursor for more. Sources that cannot page return up to `limit` replies in one call with no nextCursor, and per-result ones cost less at lower limits; a source that bills its native page may cost up to the advertised request price.
|
|
71538
71547
|
* Range: minimum 1, maximum 40.
|
|
71539
71548
|
*/
|
|
71540
71549
|
limit?: number;
|
|
@@ -76615,17 +76624,17 @@ interface YoutubePlaylistData {
|
|
|
76615
76624
|
*/
|
|
76616
76625
|
nextCursor: string | null;
|
|
76617
76626
|
/**
|
|
76618
|
-
* Name of the channel that owns the playlist. Filled on the first page only;
|
|
76627
|
+
* Name of the channel that owns the playlist. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
|
|
76619
76628
|
*/
|
|
76620
|
-
owner: string;
|
|
76629
|
+
owner: string | null;
|
|
76621
76630
|
/**
|
|
76622
|
-
* Playlist title. Filled on the first page only;
|
|
76631
|
+
* Playlist title. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
|
|
76623
76632
|
*/
|
|
76624
|
-
title: string;
|
|
76633
|
+
title: string | null;
|
|
76625
76634
|
/**
|
|
76626
|
-
* Number of videos in the playlist. Filled on the first page only;
|
|
76635
|
+
* Number of videos in the playlist. Filled on the first page only; null on a page fetched with cursor.
|
|
76627
76636
|
*/
|
|
76628
|
-
totalVideos: number;
|
|
76637
|
+
totalVideos: number | null;
|
|
76629
76638
|
/**
|
|
76630
76639
|
* Populated whenever the provider has data for the entity.
|
|
76631
76640
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -18573,10 +18573,18 @@ interface FacebookPageContactInput {
|
|
|
18573
18573
|
source?: string[];
|
|
18574
18574
|
}
|
|
18575
18575
|
interface FacebookPageContactItem {
|
|
18576
|
+
/**
|
|
18577
|
+
* The page's intro text.
|
|
18578
|
+
*/
|
|
18579
|
+
about?: string;
|
|
18576
18580
|
/**
|
|
18577
18581
|
* The page's Facebook Ad Library id, the `pageId` facebook.company_ads takes. It differs from `id`. Absent when Facebook shows none.
|
|
18578
18582
|
*/
|
|
18579
18583
|
adLibraryPageId?: string;
|
|
18584
|
+
/**
|
|
18585
|
+
* Facebook Ad Library status sentence for the page, or null when the source does not report it.
|
|
18586
|
+
*/
|
|
18587
|
+
adStatus?: string | null;
|
|
18580
18588
|
/**
|
|
18581
18589
|
* The page's public physical address. Empty when the page lists none.
|
|
18582
18590
|
*/
|
|
@@ -18586,14 +18594,26 @@ interface FacebookPageContactItem {
|
|
|
18586
18594
|
* Present whenever the upstream returns this record.
|
|
18587
18595
|
*/
|
|
18588
18596
|
category?: string;
|
|
18597
|
+
/**
|
|
18598
|
+
* Cover photo image URL of the page.
|
|
18599
|
+
*/
|
|
18600
|
+
coverPhotoUrl?: string;
|
|
18601
|
+
/**
|
|
18602
|
+
* UTC epoch timestamp in seconds (Unix time) the page was created, or null when the source does not report it. Absent when Facebook shows no creation date, as on age-restricted Pages. Multiply by 1000 for a JS Date in milliseconds.
|
|
18603
|
+
*/
|
|
18604
|
+
createdUtc?: number | null;
|
|
18589
18605
|
/**
|
|
18590
18606
|
* The page's public contact email. Empty when the page lists none.
|
|
18591
18607
|
*/
|
|
18592
18608
|
email?: string;
|
|
18593
18609
|
/**
|
|
18594
|
-
* The page's follower count. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
|
|
18610
|
+
* The page's follower count, or null when the source does not report it. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
|
|
18595
18611
|
*/
|
|
18596
|
-
followers?: number;
|
|
18612
|
+
followers?: number | null;
|
|
18613
|
+
/**
|
|
18614
|
+
* Numeric Facebook id of the page, as a string.
|
|
18615
|
+
*/
|
|
18616
|
+
id?: string;
|
|
18597
18617
|
/**
|
|
18598
18618
|
* URL of the page's profile picture, a signed CDN URL whose query must be kept. Empty when the upstream omits it.
|
|
18599
18619
|
*/
|
|
@@ -18606,6 +18626,18 @@ interface FacebookPageContactItem {
|
|
|
18606
18626
|
* The page's public phone number. Empty when the page lists none.
|
|
18607
18627
|
*/
|
|
18608
18628
|
phone?: string;
|
|
18629
|
+
/**
|
|
18630
|
+
* Price range the page advertises, e.g. "$$".
|
|
18631
|
+
*/
|
|
18632
|
+
priceRange?: string;
|
|
18633
|
+
/**
|
|
18634
|
+
* Recommendation summary Facebook shows for the page, e.g. "94% recommend (14,553 reviews)", or null when the source does not report it.
|
|
18635
|
+
*/
|
|
18636
|
+
rating?: string | null;
|
|
18637
|
+
/**
|
|
18638
|
+
* Services the page lists, e.g. dine-in or online booking.
|
|
18639
|
+
*/
|
|
18640
|
+
services?: string;
|
|
18609
18641
|
/**
|
|
18610
18642
|
* The page's public name. Populated whenever the provider has data for the entity.
|
|
18611
18643
|
*/
|
|
@@ -18624,42 +18656,10 @@ interface FacebookPageContactItem {
|
|
|
18624
18656
|
* The `data` payload of Facebook Page Contact Info (facebook.page_contact).
|
|
18625
18657
|
*/
|
|
18626
18658
|
interface FacebookPageContactData {
|
|
18627
|
-
/**
|
|
18628
|
-
* The page's intro text.
|
|
18629
|
-
*/
|
|
18630
|
-
about?: string;
|
|
18631
|
-
/**
|
|
18632
|
-
* Facebook Ad Library status sentence for the page.
|
|
18633
|
-
*/
|
|
18634
|
-
adStatus?: string;
|
|
18635
|
-
/**
|
|
18636
|
-
* Cover photo image URL of the page.
|
|
18637
|
-
*/
|
|
18638
|
-
coverPhotoUrl?: string;
|
|
18639
|
-
/**
|
|
18640
|
-
* UTC epoch timestamp in seconds (Unix time) the page was created. Multiply by 1000 for a JS Date in milliseconds.
|
|
18641
|
-
*/
|
|
18642
|
-
createdUtc?: number;
|
|
18643
|
-
/**
|
|
18644
|
-
* Numeric Facebook id of the page, as a string.
|
|
18645
|
-
*/
|
|
18646
|
-
id?: string;
|
|
18647
18659
|
/**
|
|
18648
18660
|
* Contact record for the requested Facebook Page (one item). Populated whenever the provider has data for the entity.
|
|
18649
18661
|
*/
|
|
18650
18662
|
items: FacebookPageContactItem[];
|
|
18651
|
-
/**
|
|
18652
|
-
* Price range the page advertises, e.g. "$$".
|
|
18653
|
-
*/
|
|
18654
|
-
priceRange?: string;
|
|
18655
|
-
/**
|
|
18656
|
-
* Recommendation summary Facebook shows for the page, e.g. "94% recommend (14,553 reviews)".
|
|
18657
|
-
*/
|
|
18658
|
-
rating?: string;
|
|
18659
|
-
/**
|
|
18660
|
-
* Services the page lists, e.g. dine-in or online booking.
|
|
18661
|
-
*/
|
|
18662
|
-
services?: string;
|
|
18663
18663
|
}
|
|
18664
18664
|
/**
|
|
18665
18665
|
* Input for Facebook Page Lookup (facebook.page_lookup).
|
|
@@ -21690,6 +21690,10 @@ interface GithubUserInput {
|
|
|
21690
21690
|
* Range: minimum 1.
|
|
21691
21691
|
*/
|
|
21692
21692
|
preferLatencyUnderMs?: number;
|
|
21693
|
+
/**
|
|
21694
|
+
* 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 `company`, 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 empty on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
21695
|
+
*/
|
|
21696
|
+
requireFields?: ("blog" | "company" | "location" | "publicGists" | "twitterUsername" | "type")[];
|
|
21693
21697
|
/**
|
|
21694
21698
|
* 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`.
|
|
21695
21699
|
*/
|
|
@@ -21708,13 +21712,13 @@ interface GithubUserData {
|
|
|
21708
21712
|
*/
|
|
21709
21713
|
bio: string;
|
|
21710
21714
|
/**
|
|
21711
|
-
* Blog or website URL from the profile.
|
|
21715
|
+
* Blog or website URL from the profile, or null when the source does not report it.
|
|
21712
21716
|
*/
|
|
21713
|
-
blog?: string;
|
|
21717
|
+
blog?: string | null;
|
|
21714
21718
|
/**
|
|
21715
|
-
* Company listed on the profile.
|
|
21719
|
+
* Company listed on the profile, or null when the source does not report it.
|
|
21716
21720
|
*/
|
|
21717
|
-
company?: string;
|
|
21721
|
+
company?: string | null;
|
|
21718
21722
|
/**
|
|
21719
21723
|
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
|
|
21720
21724
|
* Present whenever the upstream returns this record.
|
|
@@ -21733,9 +21737,9 @@ interface GithubUserData {
|
|
|
21733
21737
|
*/
|
|
21734
21738
|
id?: string;
|
|
21735
21739
|
/**
|
|
21736
|
-
* Location listed on the profile.
|
|
21740
|
+
* Location listed on the profile, or null when the source does not report it.
|
|
21737
21741
|
*/
|
|
21738
|
-
location?: string;
|
|
21742
|
+
location?: string | null;
|
|
21739
21743
|
/**
|
|
21740
21744
|
* GitHub username (handle). Populated whenever the provider has data for the entity.
|
|
21741
21745
|
*/
|
|
@@ -21749,21 +21753,21 @@ interface GithubUserData {
|
|
|
21749
21753
|
*/
|
|
21750
21754
|
profileUrl?: string;
|
|
21751
21755
|
/**
|
|
21752
|
-
* Count of public gists.
|
|
21756
|
+
* Count of public gists, or null when the source does not report it.
|
|
21753
21757
|
*/
|
|
21754
|
-
publicGists?: number;
|
|
21758
|
+
publicGists?: number | null;
|
|
21755
21759
|
/**
|
|
21756
21760
|
* Count of public repositories.
|
|
21757
21761
|
*/
|
|
21758
21762
|
publicRepos: number;
|
|
21759
21763
|
/**
|
|
21760
|
-
* Linked X/Twitter username.
|
|
21764
|
+
* Linked X/Twitter username, or null when the source does not report it.
|
|
21761
21765
|
*/
|
|
21762
|
-
twitterUsername?: string;
|
|
21766
|
+
twitterUsername?: string | null;
|
|
21763
21767
|
/**
|
|
21764
|
-
* "User" or "Organization".
|
|
21768
|
+
* "User" or "Organization", or null when the source does not report it.
|
|
21765
21769
|
*/
|
|
21766
|
-
type?: string;
|
|
21770
|
+
type?: string | null;
|
|
21767
21771
|
[extra: string]: unknown;
|
|
21768
21772
|
}
|
|
21769
21773
|
/**
|
|
@@ -27480,6 +27484,10 @@ interface InstagramHighlightDetailInput {
|
|
|
27480
27484
|
* Range: minimum 1.
|
|
27481
27485
|
*/
|
|
27482
27486
|
preferLatencyUnderMs?: number;
|
|
27487
|
+
/**
|
|
27488
|
+
* 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 `createdUtc`, 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. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
27489
|
+
*/
|
|
27490
|
+
requireFields?: "createdUtc"[];
|
|
27483
27491
|
/**
|
|
27484
27492
|
* 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`.
|
|
27485
27493
|
*/
|
|
@@ -27549,9 +27557,9 @@ interface InstagramHighlightDetailData {
|
|
|
27549
27557
|
*/
|
|
27550
27558
|
coverUrl: string;
|
|
27551
27559
|
/**
|
|
27552
|
-
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
|
|
27560
|
+
* UTC epoch timestamp in seconds (Unix time) the highlight was created, or null when the source does not report it. Multiply by 1000 for a JS Date in milliseconds.
|
|
27553
27561
|
*/
|
|
27554
|
-
createdUtc: number;
|
|
27562
|
+
createdUtc: number | null;
|
|
27555
27563
|
/**
|
|
27556
27564
|
* Highlight identifier. Populated whenever the provider has data for the entity.
|
|
27557
27565
|
*/
|
|
@@ -32137,7 +32145,7 @@ declare class InstagramNamespace {
|
|
|
32137
32145
|
*
|
|
32138
32146
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32139
32147
|
*
|
|
32140
|
-
* Price: $0.
|
|
32148
|
+
* Price: $0.00188 per request.
|
|
32141
32149
|
*
|
|
32142
32150
|
* @example
|
|
32143
32151
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -36061,6 +36069,7 @@ interface LinkedinPostReactionsInput {
|
|
|
36061
36069
|
/**
|
|
36062
36070
|
* Maximum number of reactions to return (1-100, default 100).
|
|
36063
36071
|
* Range: minimum 1, maximum 100.
|
|
36072
|
+
* Default: 100.
|
|
36064
36073
|
*/
|
|
36065
36074
|
limit?: number;
|
|
36066
36075
|
/**
|
|
@@ -39774,7 +39783,7 @@ declare class LinkedinNamespace {
|
|
|
39774
39783
|
*
|
|
39775
39784
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
39776
39785
|
*
|
|
39777
|
-
* Price: $0.
|
|
39786
|
+
* Price: $0.0025 per request.
|
|
39778
39787
|
*
|
|
39779
39788
|
* @example
|
|
39780
39789
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
|
@@ -67786,7 +67795,7 @@ interface TiktokTrendingHashtagsInput {
|
|
|
67786
67795
|
*/
|
|
67787
67796
|
industry?: "apparel_accessories" | "baby_kids_maternity" | "beauty_personal_care" | "education" | "food_beverage" | "games" | "health" | "home_improvement" | "household_products" | "news_entertainment" | "pets" | "sports_outdoor" | "tech_electronics" | "travel" | "vehicle_transportation";
|
|
67788
67797
|
/**
|
|
67789
|
-
* Maximum number of ranked hashtags to return, from 1 through 100 (default 3)
|
|
67798
|
+
* Maximum number of ranked hashtags to return, from 1 through 100 (default 3), counted from the top of the board.
|
|
67790
67799
|
* Range: minimum 1, maximum 100.
|
|
67791
67800
|
* Default: 3.
|
|
67792
67801
|
*/
|
|
@@ -69038,7 +69047,7 @@ declare class TiktokNamespace {
|
|
|
69038
69047
|
*
|
|
69039
69048
|
* Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
|
|
69040
69049
|
*
|
|
69041
|
-
* Price: $0.
|
|
69050
|
+
* Price: $0.0012 per request.
|
|
69042
69051
|
*
|
|
69043
69052
|
* @example
|
|
69044
69053
|
* const res = await client.tiktok.trendingFeed({ region: "US" });
|
|
@@ -69047,7 +69056,7 @@ declare class TiktokNamespace {
|
|
|
69047
69056
|
/**
|
|
69048
69057
|
* TikTok Trending Hashtags
|
|
69049
69058
|
*
|
|
69050
|
-
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board.
|
|
69059
|
+
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board. Returns up to the top 100 hashtags of a board in one call. Covers 27 markets: AE, AR, AU, BR, CA, CO, DE, EG, ES, FR, GB, ID, IL, IT, JP, KR, MX, MY, PH, SA, SG, TH, TR, TW, US, VN, ZA.
|
|
69051
69060
|
*
|
|
69052
69061
|
* Price: $0.0012 per request.
|
|
69053
69062
|
*
|
|
@@ -71534,7 +71543,7 @@ interface TwitterRepliesInput {
|
|
|
71534
71543
|
*/
|
|
71535
71544
|
ignoreSources?: string[];
|
|
71536
71545
|
/**
|
|
71537
|
-
*
|
|
71546
|
+
* Most replies to return (1-40, default 40). Ignored on sources that page: each call returns one full page of up to about 36 replies, never trimmed; follow nextCursor for more. Sources that cannot page return up to `limit` replies in one call with no nextCursor, and per-result ones cost less at lower limits; a source that bills its native page may cost up to the advertised request price.
|
|
71538
71547
|
* Range: minimum 1, maximum 40.
|
|
71539
71548
|
*/
|
|
71540
71549
|
limit?: number;
|
|
@@ -76615,17 +76624,17 @@ interface YoutubePlaylistData {
|
|
|
76615
76624
|
*/
|
|
76616
76625
|
nextCursor: string | null;
|
|
76617
76626
|
/**
|
|
76618
|
-
* Name of the channel that owns the playlist. Filled on the first page only;
|
|
76627
|
+
* Name of the channel that owns the playlist. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
|
|
76619
76628
|
*/
|
|
76620
|
-
owner: string;
|
|
76629
|
+
owner: string | null;
|
|
76621
76630
|
/**
|
|
76622
|
-
* Playlist title. Filled on the first page only;
|
|
76631
|
+
* Playlist title. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
|
|
76623
76632
|
*/
|
|
76624
|
-
title: string;
|
|
76633
|
+
title: string | null;
|
|
76625
76634
|
/**
|
|
76626
|
-
* Number of videos in the playlist. Filled on the first page only;
|
|
76635
|
+
* Number of videos in the playlist. Filled on the first page only; null on a page fetched with cursor.
|
|
76627
76636
|
*/
|
|
76628
|
-
totalVideos: number;
|
|
76637
|
+
totalVideos: number | null;
|
|
76629
76638
|
/**
|
|
76630
76639
|
* Populated whenever the provider has data for the entity.
|
|
76631
76640
|
*/
|
package/dist/index.js
CHANGED
|
@@ -4697,7 +4697,7 @@ var InstagramNamespace = class {
|
|
|
4697
4697
|
*
|
|
4698
4698
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
4699
4699
|
*
|
|
4700
|
-
* Price: $0.
|
|
4700
|
+
* Price: $0.00188 per request.
|
|
4701
4701
|
*
|
|
4702
4702
|
* @example
|
|
4703
4703
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -5430,7 +5430,7 @@ var LinkedinNamespace = class {
|
|
|
5430
5430
|
*
|
|
5431
5431
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
5432
5432
|
*
|
|
5433
|
-
* Price: $0.
|
|
5433
|
+
* Price: $0.0025 per request.
|
|
5434
5434
|
*
|
|
5435
5435
|
* @example
|
|
5436
5436
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
|
@@ -8335,7 +8335,7 @@ var TiktokNamespace = class {
|
|
|
8335
8335
|
*
|
|
8336
8336
|
* Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
|
|
8337
8337
|
*
|
|
8338
|
-
* Price: $0.
|
|
8338
|
+
* Price: $0.0012 per request.
|
|
8339
8339
|
*
|
|
8340
8340
|
* @example
|
|
8341
8341
|
* const res = await client.tiktok.trendingFeed({ region: "US" });
|
|
@@ -8346,7 +8346,7 @@ var TiktokNamespace = class {
|
|
|
8346
8346
|
/**
|
|
8347
8347
|
* TikTok Trending Hashtags
|
|
8348
8348
|
*
|
|
8349
|
-
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board.
|
|
8349
|
+
* Rank TikTok's trending hashtags for one country and industry, with each hashtag's daily popularity curve, post count, video views, and leading creators. Ranks 15 industry categories, or omit industry for the all-industries board. Returns up to the top 100 hashtags of a board in one call. Covers 27 markets: AE, AR, AU, BR, CA, CO, DE, EG, ES, FR, GB, ID, IL, IT, JP, KR, MX, MY, PH, SA, SG, TH, TR, TW, US, VN, ZA.
|
|
8350
8350
|
*
|
|
8351
8351
|
* Price: $0.0012 per request.
|
|
8352
8352
|
*
|