scavio 0.23.1 → 0.24.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/README.md +21 -8
- package/dist/index.cjs +58 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -43
- package/dist/index.d.ts +100 -43
- package/dist/index.js +58 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Amazon
|
|
3
|
-
*
|
|
4
|
-
* with the old provider: language, currency, device, sort_by, pages,
|
|
2
|
+
* The Amazon API changed in 2026-07 and now returns a normalized shape
|
|
3
|
+
* instead of the old raw payload. Nine options were removed: language, currency, device, sort_by, pages,
|
|
5
4
|
* category_id, merchant_id, zip_code and autoselect_variant. They are removed
|
|
6
5
|
* rather than kept as no-ops - notably `sort_by`, which the marketplace was
|
|
7
6
|
* verified to ignore entirely (every sort value returned the same unordered
|
|
@@ -57,9 +56,9 @@ declare class AmazonNamespace {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
|
-
* Google endpoints (
|
|
61
|
-
*
|
|
62
|
-
*
|
|
59
|
+
* Google endpoints (/api/v2/google). A faithful passthrough that returns
|
|
60
|
+
* Google's full response. Every endpoint costs 1 credit. Any additional
|
|
61
|
+
* API parameter can be added to the options object.
|
|
63
62
|
* See https://scavio.dev/docs/search-api.
|
|
64
63
|
*/
|
|
65
64
|
interface GoogleSearchOptions {
|
|
@@ -981,14 +980,17 @@ declare class TikTokShopNamespace {
|
|
|
981
980
|
}
|
|
982
981
|
|
|
983
982
|
/**
|
|
984
|
-
* Instagram endpoints (/api/v1/instagram).
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
* -
|
|
988
|
-
*
|
|
989
|
-
* `
|
|
990
|
-
* `
|
|
991
|
-
*
|
|
983
|
+
* Instagram endpoints (/api/v1/instagram). Typical credit cost per call:
|
|
984
|
+
* - 1: `profile`, `musicPosts` (per page), `userReels` and `userTagged`
|
|
985
|
+
* (2 the first time a username is looked up)
|
|
986
|
+
* - 2: everything else - `userPosts`, `userStories`, `post`, `postComments`,
|
|
987
|
+
* `commentReplies`, `searchUsers`, `searchHashtags`, `userFollowers`,
|
|
988
|
+
* `userFollowings`, `userHighlights`, `highlightStories`, `searchReels`,
|
|
989
|
+
* `searchMusic`, `searchLocations`, `userSimilar`, `postLikers`
|
|
990
|
+
* - 8: `searchUsers` / `searchHashtags` when a `cursor` is sent
|
|
991
|
+
*
|
|
992
|
+
* A request can cost up to 10 when it needs extra work; `credits_used` in the
|
|
993
|
+
* response is the exact charge. See https://scavio.dev/docs/instagram-api.
|
|
992
994
|
*/
|
|
993
995
|
interface InstagramProfileOptions {
|
|
994
996
|
/** Instagram username (without the @). */
|
|
@@ -1062,21 +1064,80 @@ interface InstagramFollowOptions {
|
|
|
1062
1064
|
cursor?: string;
|
|
1063
1065
|
[key: string]: unknown;
|
|
1064
1066
|
}
|
|
1067
|
+
interface InstagramUserRefOptions {
|
|
1068
|
+
/** Instagram username (without the @). */
|
|
1069
|
+
username?: string;
|
|
1070
|
+
/** Instagram numeric user id. */
|
|
1071
|
+
user_id?: string;
|
|
1072
|
+
[key: string]: unknown;
|
|
1073
|
+
}
|
|
1074
|
+
interface InstagramHighlightStoriesOptions {
|
|
1075
|
+
/** Highlight id from `userHighlights`, with or without the `highlight:` prefix. */
|
|
1076
|
+
highlight_id: string;
|
|
1077
|
+
[key: string]: unknown;
|
|
1078
|
+
}
|
|
1079
|
+
interface InstagramKeywordOptions {
|
|
1080
|
+
/** Search keyword (1-500 characters). */
|
|
1081
|
+
keyword: string;
|
|
1082
|
+
[key: string]: unknown;
|
|
1083
|
+
}
|
|
1084
|
+
interface InstagramMusicPostsOptions {
|
|
1085
|
+
/** Numeric audio id (the `id` field from `searchMusic`). */
|
|
1086
|
+
music_id: string;
|
|
1087
|
+
/** Pagination cursor (`paging_info.max_id`) from a prior response. */
|
|
1088
|
+
cursor?: string;
|
|
1089
|
+
[key: string]: unknown;
|
|
1090
|
+
}
|
|
1091
|
+
interface InstagramPostLikersOptions {
|
|
1092
|
+
/** Instagram shortcode (from the post URL). */
|
|
1093
|
+
shortcode?: string;
|
|
1094
|
+
/** Full Instagram post URL. */
|
|
1095
|
+
url?: string;
|
|
1096
|
+
[key: string]: unknown;
|
|
1097
|
+
}
|
|
1065
1098
|
declare class InstagramNamespace {
|
|
1066
1099
|
private client;
|
|
1067
1100
|
constructor(client: Scavio);
|
|
1101
|
+
/** Get a user profile by username or user_id. 1 credit. */
|
|
1068
1102
|
profile(options: InstagramProfileOptions): Promise<Record<string, unknown>>;
|
|
1103
|
+
/** Get a user's posts, about 12 per page; page with `data.pagination_token`. 2 credits per page. */
|
|
1069
1104
|
userPosts(options: InstagramUserFeedOptions): Promise<Record<string, unknown>>;
|
|
1105
|
+
/** Get a user's Reels. 1 credit (2 the first time a username is looked up). */
|
|
1070
1106
|
userReels(options: InstagramUserFeedOptions): Promise<Record<string, unknown>>;
|
|
1107
|
+
/** Get posts a user is tagged in. 1 credit (2 the first time a username is looked up). */
|
|
1071
1108
|
userTagged(options: InstagramUserFeedOptions): Promise<Record<string, unknown>>;
|
|
1109
|
+
/** Get a user's active stories. 2 credits. */
|
|
1072
1110
|
userStories(options: InstagramStoriesOptions): Promise<Record<string, unknown>>;
|
|
1111
|
+
/** Get a single post by url, media_id or shortcode. 2 credits. */
|
|
1073
1112
|
post(options: InstagramPostOptions): Promise<Record<string, unknown>>;
|
|
1113
|
+
/** Get comments on a post; page with `next_min_id`. 2 credits per page. */
|
|
1074
1114
|
postComments(options: InstagramPostCommentsOptions): Promise<Record<string, unknown>>;
|
|
1115
|
+
/** Get replies to a comment. 2 credits. */
|
|
1075
1116
|
commentReplies(options: InstagramCommentRepliesOptions): Promise<Record<string, unknown>>;
|
|
1117
|
+
/** Search users by keyword. 2 credits; 8 when a `cursor` is sent. */
|
|
1076
1118
|
searchUsers(options: InstagramSearchOptions): Promise<Record<string, unknown>>;
|
|
1119
|
+
/** Search hashtags by keyword. 2 credits; 8 when a `cursor` is sent. */
|
|
1077
1120
|
searchHashtags(options: InstagramSearchOptions): Promise<Record<string, unknown>>;
|
|
1121
|
+
/** Get a user's followers; page with `next_max_id`. 2 credits per page. */
|
|
1078
1122
|
userFollowers(options: InstagramFollowOptions): Promise<Record<string, unknown>>;
|
|
1123
|
+
/** Get the accounts a user follows; page with `next_max_id`. 2 credits per page. */
|
|
1079
1124
|
userFollowings(options: InstagramFollowOptions): Promise<Record<string, unknown>>;
|
|
1125
|
+
/** List a user's story highlights (id, title, cover, item count). 2 credits. */
|
|
1126
|
+
userHighlights(options: InstagramUserRefOptions): Promise<Record<string, unknown>>;
|
|
1127
|
+
/** Get every story saved in one highlight, with media URLs. 2 credits. */
|
|
1128
|
+
highlightStories(options: InstagramHighlightStoriesOptions): Promise<Record<string, unknown>>;
|
|
1129
|
+
/** Search Reels by keyword; page with `pagination_token`. 2 credits per page. */
|
|
1130
|
+
searchReels(options: InstagramSearchOptions): Promise<Record<string, unknown>>;
|
|
1131
|
+
/** Search audio tracks by song or artist; returns the id `musicPosts` takes. 2 credits. */
|
|
1132
|
+
searchMusic(options: InstagramKeywordOptions): Promise<Record<string, unknown>>;
|
|
1133
|
+
/** Get the Reels that use an audio track, plus its total reel count. 1 credit per page. */
|
|
1134
|
+
musicPosts(options: InstagramMusicPostsOptions): Promise<Record<string, unknown>>;
|
|
1135
|
+
/** Search places by name (id, name, address, coordinates). 2 credits. */
|
|
1136
|
+
searchLocations(options: InstagramKeywordOptions): Promise<Record<string, unknown>>;
|
|
1137
|
+
/** Get accounts similar to a user. Most creator accounts have them; some brand accounts return none. 2 credits. */
|
|
1138
|
+
userSimilar(options: InstagramUserRefOptions): Promise<Record<string, unknown>>;
|
|
1139
|
+
/** Get accounts that liked a post (up to about 1,000) and its total like count. 2 credits. */
|
|
1140
|
+
postLikers(options: InstagramPostLikersOptions): Promise<Record<string, unknown>>;
|
|
1080
1141
|
}
|
|
1081
1142
|
|
|
1082
1143
|
interface WalmartSearchOptions {
|
|
@@ -1665,18 +1726,18 @@ interface LinkedInPostCommentsOptions extends LinkedInPostOptions {
|
|
|
1665
1726
|
/** 1-based page number. Page size varies, so page until a page comes back empty. */
|
|
1666
1727
|
page?: number;
|
|
1667
1728
|
}
|
|
1668
|
-
/** @deprecated Retired
|
|
1729
|
+
/** @deprecated Retired; always returns HTTP 410. */
|
|
1669
1730
|
interface LinkedInPersonContactOptions {
|
|
1670
1731
|
username?: string;
|
|
1671
1732
|
[key: string]: unknown;
|
|
1672
1733
|
}
|
|
1673
|
-
/** @deprecated Retired
|
|
1734
|
+
/** @deprecated Retired; always returns HTTP 410. */
|
|
1674
1735
|
interface LinkedInCompanyRefOptions {
|
|
1675
1736
|
company_id?: string;
|
|
1676
1737
|
company?: string;
|
|
1677
1738
|
[key: string]: unknown;
|
|
1678
1739
|
}
|
|
1679
|
-
/** @deprecated Retired
|
|
1740
|
+
/** @deprecated Retired; always returns HTTP 410. */
|
|
1680
1741
|
interface LinkedInSearchPeopleOptions {
|
|
1681
1742
|
search?: string;
|
|
1682
1743
|
title?: string;
|
|
@@ -1685,7 +1746,7 @@ interface LinkedInSearchPeopleOptions {
|
|
|
1685
1746
|
location?: string;
|
|
1686
1747
|
[key: string]: unknown;
|
|
1687
1748
|
}
|
|
1688
|
-
/** @deprecated Retired
|
|
1749
|
+
/** @deprecated Retired; always returns HTTP 410. */
|
|
1689
1750
|
interface LinkedInSearchPostsOptions {
|
|
1690
1751
|
search?: string;
|
|
1691
1752
|
[key: string]: unknown;
|
|
@@ -1718,28 +1779,28 @@ declare class LinkedInNamespace {
|
|
|
1718
1779
|
/** Comments with their replies. Page size varies - keep paging until empty. */
|
|
1719
1780
|
postComments(options: LinkedInPostCommentsOptions): Promise<Record<string, unknown>>;
|
|
1720
1781
|
/**
|
|
1721
|
-
* @deprecated Retired
|
|
1782
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1722
1783
|
* never billed.
|
|
1723
1784
|
*/
|
|
1724
1785
|
personContact(options: LinkedInPersonContactOptions): Promise<Record<string, unknown>>;
|
|
1725
1786
|
/**
|
|
1726
|
-
* @deprecated Retired
|
|
1787
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1727
1788
|
* never billed. `company()` returns `featured_employees`, a small sample of
|
|
1728
1789
|
* staff profiles.
|
|
1729
1790
|
*/
|
|
1730
1791
|
companyPeople(options: LinkedInCompanyRefOptions): Promise<Record<string, unknown>>;
|
|
1731
1792
|
/**
|
|
1732
|
-
* @deprecated Retired
|
|
1793
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1733
1794
|
* never billed. Use `searchJobs()` with the company name as the search term.
|
|
1734
1795
|
*/
|
|
1735
1796
|
companyJobs(options: LinkedInCompanyRefOptions): Promise<Record<string, unknown>>;
|
|
1736
1797
|
/**
|
|
1737
|
-
* @deprecated Retired
|
|
1798
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1738
1799
|
* never billed.
|
|
1739
1800
|
*/
|
|
1740
1801
|
searchPeople(options: LinkedInSearchPeopleOptions): Promise<Record<string, unknown>>;
|
|
1741
1802
|
/**
|
|
1742
|
-
* @deprecated Retired
|
|
1803
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1743
1804
|
* never billed.
|
|
1744
1805
|
*/
|
|
1745
1806
|
searchPosts(options: LinkedInSearchPostsOptions): Promise<Record<string, unknown>>;
|
|
@@ -1753,7 +1814,7 @@ interface ThreadsProfileOptions {
|
|
|
1753
1814
|
user_id?: string;
|
|
1754
1815
|
/**
|
|
1755
1816
|
* Handle without the leading @ (1-60 characters). Costs 2 extra credits
|
|
1756
|
-
* because the id has to be resolved
|
|
1817
|
+
* because the id has to be resolved first - prefer `user_id`.
|
|
1757
1818
|
*/
|
|
1758
1819
|
username?: string;
|
|
1759
1820
|
[key: string]: unknown;
|
|
@@ -2184,7 +2245,7 @@ declare class TargetNamespace {
|
|
|
2184
2245
|
* Paged with `page` + `count` (1-28, default 24). `seller_id` and
|
|
2185
2246
|
* `seller_name` are null on first-party rows, which means "sold by Target".
|
|
2186
2247
|
*
|
|
2187
|
-
* Costs 1 credit. Typically ~9s
|
|
2248
|
+
* Costs 1 credit. Typically ~9s.
|
|
2188
2249
|
*/
|
|
2189
2250
|
search(options: TargetSearchOptions): Promise<Record<string, unknown>>;
|
|
2190
2251
|
/**
|
|
@@ -2559,9 +2620,8 @@ declare class RedfinNamespace {
|
|
|
2559
2620
|
* houses, schools, climate risk, walkability and location scores, sun
|
|
2560
2621
|
* exposure, monthly weather, permits, zoning, comparable sales and photos.
|
|
2561
2622
|
*
|
|
2562
|
-
*
|
|
2563
|
-
*
|
|
2564
|
-
* search().
|
|
2623
|
+
* Returns the whole property page in one call, which is why it is the same
|
|
2624
|
+
* price as search().
|
|
2565
2625
|
*
|
|
2566
2626
|
* Costs 1 credit. Single response, no pagination.
|
|
2567
2627
|
*/
|
|
@@ -2638,7 +2698,7 @@ interface BookingSearchOptions {
|
|
|
2638
2698
|
rooms?: number;
|
|
2639
2699
|
/**
|
|
2640
2700
|
* ISO 4217 currency, 3 letters (default "USD"). Leave it set - without a
|
|
2641
|
-
* currency Booking
|
|
2701
|
+
* currency Booking picks a currency itself.
|
|
2642
2702
|
*/
|
|
2643
2703
|
currency?: string;
|
|
2644
2704
|
[key: string]: unknown;
|
|
@@ -2797,7 +2857,7 @@ interface AirbnbSearchOptions {
|
|
|
2797
2857
|
amenities?: string;
|
|
2798
2858
|
/**
|
|
2799
2859
|
* ISO 4217 currency (default "USD"). Leave it set - without a currency
|
|
2800
|
-
* Airbnb
|
|
2860
|
+
* Airbnb picks a currency itself.
|
|
2801
2861
|
*/
|
|
2802
2862
|
currency?: string;
|
|
2803
2863
|
/**
|
|
@@ -3053,8 +3113,7 @@ interface YelpSearchOptions {
|
|
|
3053
3113
|
term?: string;
|
|
3054
3114
|
/**
|
|
3055
3115
|
* Where to search (1-200 characters), e.g. "Austin, TX". Effectively
|
|
3056
|
-
* REQUIRED - without it Yelp
|
|
3057
|
-
* request answers about a different metro run to run.
|
|
3116
|
+
* REQUIRED - without it Yelp picks a location itself and the same request can answer about a different metro run to run.
|
|
3058
3117
|
*/
|
|
3059
3118
|
location?: string;
|
|
3060
3119
|
/** Result page, 1-indexed. Yelp fixes the page size at 10. */
|
|
@@ -3126,7 +3185,7 @@ declare class YelpNamespace {
|
|
|
3126
3185
|
* count.
|
|
3127
3186
|
*
|
|
3128
3187
|
* `term` + `location` or `url` is required, and `location` is effectively
|
|
3129
|
-
* mandatory - Yelp
|
|
3188
|
+
* mandatory - without it Yelp picks a location itself.
|
|
3130
3189
|
* Paged with `page`; the page size is fixed at 10.
|
|
3131
3190
|
*
|
|
3132
3191
|
* Costs 2 credits.
|
|
@@ -3246,8 +3305,7 @@ declare class IndeedNamespace {
|
|
|
3246
3305
|
* employment types, benefits, geocoded address, employer rating, applicant
|
|
3247
3306
|
* count and the original ATS link.
|
|
3248
3307
|
*
|
|
3249
|
-
* Single response, no pagination. An unknown job key is a real 404
|
|
3250
|
-
* scrape.do BILLS - take `job_id` from a search row.
|
|
3308
|
+
* Single response, no pagination. An unknown job key is a real 404 and IS BILLED - take `job_id` from a search row.
|
|
3251
3309
|
*
|
|
3252
3310
|
* Costs 2 credits.
|
|
3253
3311
|
*/
|
|
@@ -3257,8 +3315,7 @@ declare class IndeedNamespace {
|
|
|
3257
3315
|
* approval, overall and per-category ratings, reported salaries, open roles
|
|
3258
3316
|
* and locations.
|
|
3259
3317
|
*
|
|
3260
|
-
* Single response, no pagination. An unknown company slug is a real 404
|
|
3261
|
-
* that scrape.do BILLS.
|
|
3318
|
+
* Single response, no pagination. An unknown company slug is a real 404 and IS BILLED.
|
|
3262
3319
|
*
|
|
3263
3320
|
* Costs 2 credits.
|
|
3264
3321
|
*/
|
|
@@ -3303,7 +3360,7 @@ interface GlassdoorCompanyOptions {
|
|
|
3303
3360
|
interface GlassdoorReviewsOptions {
|
|
3304
3361
|
/**
|
|
3305
3362
|
* Glassdoor employer id as a STRING (1699, E1699 or IE1699). Either this or
|
|
3306
|
-
* `url` is required. Addressing by employer_id costs two
|
|
3363
|
+
* `url` is required. Addressing by employer_id costs two lookups -
|
|
3307
3364
|
* pass reviews_url from company() as `url` instead.
|
|
3308
3365
|
*/
|
|
3309
3366
|
employer_id?: string;
|
|
@@ -3330,7 +3387,7 @@ interface GlassdoorReviewsOptions {
|
|
|
3330
3387
|
interface GlassdoorSalariesOptions {
|
|
3331
3388
|
/**
|
|
3332
3389
|
* Glassdoor employer id as a STRING (1699, E1699 or IE1699). Either this or
|
|
3333
|
-
* `url` is required. Addressing by employer_id costs two
|
|
3390
|
+
* `url` is required. Addressing by employer_id costs two lookups -
|
|
3334
3391
|
* pass salaries_url from company() as `url` instead.
|
|
3335
3392
|
*/
|
|
3336
3393
|
employer_id?: string;
|
|
@@ -3370,7 +3427,7 @@ declare class GlassdoorNamespace {
|
|
|
3370
3427
|
* server-rendered reviews, AND reviews_url / salaries_url.
|
|
3371
3428
|
*
|
|
3372
3429
|
* THE CHAINING ENDPOINT: pass reviews_url / salaries_url back as `url` on
|
|
3373
|
-
* reviews() and salaries() to halve the
|
|
3430
|
+
* reviews() and salaries() to halve the lookups. `employer_id` or
|
|
3374
3431
|
* `url` is required - `company` is cosmetic and does not satisfy it.
|
|
3375
3432
|
*
|
|
3376
3433
|
* Costs 1 credit. Single response, no pagination. Typically ~3-47s.
|
|
@@ -4031,7 +4088,7 @@ declare class SECNamespace {
|
|
|
4031
4088
|
* filer had more.
|
|
4032
4089
|
*
|
|
4033
4090
|
* Costs 1 credit - including with `include_history`, which is the one call
|
|
4034
|
-
* that can buy more than one
|
|
4091
|
+
* that can buy more than one lookup.
|
|
4035
4092
|
*/
|
|
4036
4093
|
filings(options: SECFilingsOptions): Promise<Record<string, unknown>>;
|
|
4037
4094
|
/**
|
|
@@ -5659,7 +5716,7 @@ interface ExtractOptions {
|
|
|
5659
5716
|
*
|
|
5660
5717
|
* - "normal": the standard fetch - 1 credit.
|
|
5661
5718
|
* - "advanced": renders JavaScript, for JS-built pages - 1 credit.
|
|
5662
|
-
* - "ultra": the hardest pages
|
|
5719
|
+
* - "ultra": the hardest pages - 2 credits.
|
|
5663
5720
|
*/
|
|
5664
5721
|
mode?: "normal" | "advanced" | "ultra";
|
|
5665
5722
|
[key: string]: unknown;
|
|
@@ -5841,4 +5898,4 @@ declare class ScavioJobTimeoutError extends ScavioError {
|
|
|
5841
5898
|
constructor(jobType: "crawl" | "batch", jobId: string, statusUrl: string, lastStatus: string);
|
|
5842
5899
|
}
|
|
5843
5900
|
|
|
5844
|
-
export { type AirbnbListingOptions, AirbnbNamespace, type AirbnbReviewsOptions, type AirbnbSearchOptions, AmazonNamespace, type AmazonOffersOptions, type AmazonProductOptions, type AmazonSearchOptions, type AppStoreAppOptions, AppStoreNamespace, type AppStoreReviewsOptions, type AppStoreSearchOptions, BadRequestError, type BookingHotelOptions, BookingNamespace, type BookingReviewsOptions, type BookingSearchOptions, CapterraNamespace, type CapterraProductOptions, type CapterraReviewsOptions, type CapterraSearchOptions, type CompaniesHouseCompanyOptions, type CompaniesHouseFilingHistoryOptions, CompaniesHouseNamespace, type CompaniesHouseOfficersOptions, type CompaniesHouseSearchOptions, type CostcoAutocompleteOptions, type CostcoAvailabilityOptions, type CostcoCategoriesOptions, type CostcoCategoryOptions, type CostcoClearanceOptions, type CostcoCountry, type CostcoCouponsOptions, type CostcoDealType, type CostcoDealsOptions, type CostcoGasOptions, type CostcoListingFilters, type CostcoNaCountry, CostcoNamespace, type CostcoPriceCode, type CostcoPricesOptions, type CostcoProductOptions, type CostcoReviewsOptions, type CostcoSearchOptions, type CostcoSortBy, type CostcoWarehousesOptions, DEFAULT_MAX_REQUESTS_PER_SECOND, EbayNamespace, type EbayProductOptions, type EbaySearchOptions, type EbaySellerOptions, type Extract, type ExtractBatchOptions, type ExtractCrawlOptions, type ExtractFormat, type ExtractJobCreatedResponse, type ExtractJobRequestOptions, type ExtractJobResult, type ExtractJobState, type ExtractJobStatusQuery, type ExtractJobStatusResponse, type ExtractJobSummary, type ExtractJobSummaryResponse, type ExtractJobWaitResponse, type ExtractMapLink, type ExtractMapOptions, type ExtractMapResponse, type ExtractMode, ExtractNamespace, type ExtractOptions, type ExtractSitemapMode, G2Namespace, type G2ProductOptions, type G2ReviewsOptions, type G2SearchOptions, type GlassdoorCompaniesOptions, type GlassdoorCompanyOptions, GlassdoorNamespace, type GlassdoorReviewsOptions, type GlassdoorSalariesOptions, type GoogleAdsAdvertisersOptions, type GoogleAdsCreativeOptions, GoogleAdsNamespace, type GoogleAdsSearchOptions, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, GoogleNamespace, type GoogleNewsOptions, type GooglePlayAppOptions, GooglePlayNamespace, type GooglePlayReviewsOptions, type GooglePlaySearchOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, HomeDepotNamespace, type HomeDepotProductOptions, type HomeDepotReviewsOptions, type HomeDepotSearchOptions, type IndeedCompanyOptions, type IndeedCompanyReviewsOptions, type IndeedJobOptions, IndeedNamespace, type IndeedSearchOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, InstagramNamespace, type InstagramPostCommentsOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, InsufficientCreditsError, InvalidAPIKeyError, type KuaishouCommentRepliesOptions, KuaishouNamespace, type KuaishouProfileOptions, type KuaishouSearchLiveOptions, type KuaishouSearchOptions, type KuaishouSearchUsersOptions, type KuaishouSearchVideosOptions, type KuaishouTagFeedOptions, type KuaishouTrendingOptions, type KuaishouUserLiveOptions, type KuaishouUserPostsOptions, type KuaishouUserResolveOptions, type KuaishouVideoCommentsOptions, type KuaishouVideoOptions, type KuaishouVideosBatchOptions, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyPostsRequest, type LinkedInCompanyRefOptions, type LinkedInJobOptions, LinkedInNamespace, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonPostsRequest, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MAX_REQUESTS_PER_SECOND, type MercadoLibreBestSellersCountry, type MercadoLibreBestSellersOptions, type MercadoLibreCondition, type MercadoLibreCountry, type MercadoLibreDiscount, MercadoLibreNamespace, type MercadoLibreProductOptions, type MercadoLibreQuestionsOptions, type MercadoLibreReviewsOptions, type MercadoLibreSearchOptions, type MercadoLibreSort, type MetaAdsAdOptions, type MetaAdsAdvertiserOptions, MetaAdsNamespace, type MetaAdsSearchOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RealtorAgentOptions, type RealtorAgentsOptions, type RealtorListingStatus, type RealtorLocationsOptions, type RealtorMarketOptions, RealtorNamespace, type RealtorPropertyOptions, type RealtorPropertyType, type RealtorSearchOptions, type RealtorSort, type RedditCommentRepliesOptions, type RedditCommentSearchSort, type RedditFeedSort, RedditNamespace, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchCommentsOptions, type RedditSearchOptions, type RedditSearchSubredditsOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, type RedfinMarketOptions, RedfinNamespace, type RedfinPropertyOptions, type RedfinSearchOptions, type RightmoveAgentOptions, type RightmoveAgentsOptions, type RightmoveExclude, type RightmoveFurnishing, type RightmoveLetType, type RightmoveListingStatus, type RightmoveLocationsOptions, type RightmoveMustHave, RightmoveNamespace, type RightmovePropertyOptions, type RightmovePropertyType, type RightmoveRadius, type RightmoveSearchOptions, type RightmoveSoldOptions, type RightmoveSoldPropertyOptions, type RightmoveSoldPropertyType, type RightmoveSoldSort, type RightmoveSort, type RightmoveTenure, type SECCompanyOptions, type SECConceptOptions, type SECFactsOptions, type SECFilingsOptions, type SECLookupOptions, SECNamespace, type SECSearchOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioJobTimeoutError, ScavioTimeoutError, type TargetCategoryOptions, TargetNamespace, type TargetProductOptions, type TargetReviewsOptions, type TargetSearchOptions, ThreadsNamespace, type ThreadsPostCommentsOptions, type ThreadsPostOptions, type ThreadsProfileOptions, type ThreadsSearchUsersOptions, type ThreadsUserPostsOptions, type ThreadsUserRepliesOptions, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokMusicChartOptions, type TikTokMusicOptions, type TikTokMusicVideosOptions, TikTokNamespace, type TikTokPlaylistVideosOptions, type TikTokProfileOptions, type TikTokSearchMusicOptions, type TikTokSearchSuggestionsOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, TikTokShopNamespace, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokTrendingVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPlaylistsOptions, type TikTokUserPostsOptions, type TikTokUserSimilarOptions, type TikTokUsernameOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type TikTokVideoTranscriptOptions, type TripadvisorLocationOptions, type TripadvisorLocationsOptions, TripadvisorNamespace, type TripadvisorReviewsOptions, type TripadvisorSearchOptions, type TrustpilotBusinessAddress, type TrustpilotBusinessOptions, type TrustpilotCategoriesOptions, type TrustpilotCategoryOptions, type TrustpilotCategorySort, TrustpilotNamespace, type TrustpilotReviewOptions, type TrustpilotReviewsDateRange, type TrustpilotReviewsOptions, type TrustpilotReviewsSort, type TrustpilotSearchOptions, type TrustpilotStars, type WalmartCategoryOptions, WalmartNamespace, type WalmartOffersOptions, type WalmartProductOptions, type WalmartReviewsOptions, type WalmartSearchOptions, type WalmartSellerOptions, type WalmartSellerProductsOptions, type WalmartStore, type WalmartStoresData, type WalmartStoresOptions, type WalmartStoresResponse, type XCommunityOptions, type XCommunityTweetsOptions, XNamespace, type XSearchCommunitiesOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YelpBusinessOptions, YelpNamespace, type YelpReviewsOptions, type YelpSearchOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeCommunityPostCommentsOptions, type YouTubeCommunityPostOptions, type YouTubeMetadataOptions, YouTubeNamespace, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions, type ZillowAgentReviewsOptions, ZillowNamespace, type ZillowPropertyOptions, type ZillowSearchOptions, verifyWebhook };
|
|
5901
|
+
export { type AirbnbListingOptions, AirbnbNamespace, type AirbnbReviewsOptions, type AirbnbSearchOptions, AmazonNamespace, type AmazonOffersOptions, type AmazonProductOptions, type AmazonSearchOptions, type AppStoreAppOptions, AppStoreNamespace, type AppStoreReviewsOptions, type AppStoreSearchOptions, BadRequestError, type BookingHotelOptions, BookingNamespace, type BookingReviewsOptions, type BookingSearchOptions, CapterraNamespace, type CapterraProductOptions, type CapterraReviewsOptions, type CapterraSearchOptions, type CompaniesHouseCompanyOptions, type CompaniesHouseFilingHistoryOptions, CompaniesHouseNamespace, type CompaniesHouseOfficersOptions, type CompaniesHouseSearchOptions, type CostcoAutocompleteOptions, type CostcoAvailabilityOptions, type CostcoCategoriesOptions, type CostcoCategoryOptions, type CostcoClearanceOptions, type CostcoCountry, type CostcoCouponsOptions, type CostcoDealType, type CostcoDealsOptions, type CostcoGasOptions, type CostcoListingFilters, type CostcoNaCountry, CostcoNamespace, type CostcoPriceCode, type CostcoPricesOptions, type CostcoProductOptions, type CostcoReviewsOptions, type CostcoSearchOptions, type CostcoSortBy, type CostcoWarehousesOptions, DEFAULT_MAX_REQUESTS_PER_SECOND, EbayNamespace, type EbayProductOptions, type EbaySearchOptions, type EbaySellerOptions, type Extract, type ExtractBatchOptions, type ExtractCrawlOptions, type ExtractFormat, type ExtractJobCreatedResponse, type ExtractJobRequestOptions, type ExtractJobResult, type ExtractJobState, type ExtractJobStatusQuery, type ExtractJobStatusResponse, type ExtractJobSummary, type ExtractJobSummaryResponse, type ExtractJobWaitResponse, type ExtractMapLink, type ExtractMapOptions, type ExtractMapResponse, type ExtractMode, ExtractNamespace, type ExtractOptions, type ExtractSitemapMode, G2Namespace, type G2ProductOptions, type G2ReviewsOptions, type G2SearchOptions, type GlassdoorCompaniesOptions, type GlassdoorCompanyOptions, GlassdoorNamespace, type GlassdoorReviewsOptions, type GlassdoorSalariesOptions, type GoogleAdsAdvertisersOptions, type GoogleAdsCreativeOptions, GoogleAdsNamespace, type GoogleAdsSearchOptions, type GoogleAiModeOptions, type GoogleFlightsOptions, type GoogleHotelsDetailOptions, type GoogleHotelsOptions, type GoogleMapsPlaceOptions, type GoogleMapsReviewsOptions, type GoogleMapsSearchOptions, GoogleNamespace, type GoogleNewsOptions, type GooglePlayAppOptions, GooglePlayNamespace, type GooglePlayReviewsOptions, type GooglePlaySearchOptions, type GoogleSearchOptions, type GoogleShoppingOptions, type GoogleShoppingProductOptions, type GoogleShoppingStoresOptions, type GoogleTrendingOptions, type GoogleTrendsOptions, HomeDepotNamespace, type HomeDepotProductOptions, type HomeDepotReviewsOptions, type HomeDepotSearchOptions, type IndeedCompanyOptions, type IndeedCompanyReviewsOptions, type IndeedJobOptions, IndeedNamespace, type IndeedSearchOptions, type InstagramCommentRepliesOptions, type InstagramFollowOptions, type InstagramHighlightStoriesOptions, type InstagramKeywordOptions, type InstagramMusicPostsOptions, InstagramNamespace, type InstagramPostCommentsOptions, type InstagramPostLikersOptions, type InstagramPostOptions, type InstagramProfileOptions, type InstagramSearchOptions, type InstagramStoriesOptions, type InstagramUserFeedOptions, type InstagramUserRefOptions, InsufficientCreditsError, InvalidAPIKeyError, type KuaishouCommentRepliesOptions, KuaishouNamespace, type KuaishouProfileOptions, type KuaishouSearchLiveOptions, type KuaishouSearchOptions, type KuaishouSearchUsersOptions, type KuaishouSearchVideosOptions, type KuaishouTagFeedOptions, type KuaishouTrendingOptions, type KuaishouUserLiveOptions, type KuaishouUserPostsOptions, type KuaishouUserResolveOptions, type KuaishouVideoCommentsOptions, type KuaishouVideoOptions, type KuaishouVideosBatchOptions, type LinkedInCompanyOptions, type LinkedInCompanyPostsOptions, type LinkedInCompanyPostsRequest, type LinkedInCompanyRefOptions, type LinkedInJobOptions, LinkedInNamespace, type LinkedInPersonContactOptions, type LinkedInPersonOptions, type LinkedInPersonPostsOptions, type LinkedInPersonPostsRequest, type LinkedInPersonRefOptions, type LinkedInPostCommentsOptions, type LinkedInPostOptions, type LinkedInSearchJobsOptions, type LinkedInSearchPeopleOptions, type LinkedInSearchPostsOptions, MAX_REQUESTS_PER_SECOND, type MercadoLibreBestSellersCountry, type MercadoLibreBestSellersOptions, type MercadoLibreCondition, type MercadoLibreCountry, type MercadoLibreDiscount, MercadoLibreNamespace, type MercadoLibreProductOptions, type MercadoLibreQuestionsOptions, type MercadoLibreReviewsOptions, type MercadoLibreSearchOptions, type MercadoLibreSort, type MetaAdsAdOptions, type MetaAdsAdvertiserOptions, MetaAdsNamespace, type MetaAdsSearchOptions, MissingAPIKeyError, NotFoundError, RateLimitError, type RealtorAgentOptions, type RealtorAgentsOptions, type RealtorListingStatus, type RealtorLocationsOptions, type RealtorMarketOptions, RealtorNamespace, type RealtorPropertyOptions, type RealtorPropertyType, type RealtorSearchOptions, type RealtorSort, type RedditCommentRepliesOptions, type RedditCommentSearchSort, type RedditFeedSort, RedditNamespace, type RedditPopularOptions, type RedditPostCommentsOptions, type RedditPostOptions, type RedditSearchCommentsOptions, type RedditSearchOptions, type RedditSearchSubredditsOptions, type RedditSearchSuggestionsOptions, type RedditSort, type RedditSubredditOptions, type RedditSubredditPostsOptions, type RedditUserFeedOptions, type RedditUserOptions, type RedfinMarketOptions, RedfinNamespace, type RedfinPropertyOptions, type RedfinSearchOptions, type RightmoveAgentOptions, type RightmoveAgentsOptions, type RightmoveExclude, type RightmoveFurnishing, type RightmoveLetType, type RightmoveListingStatus, type RightmoveLocationsOptions, type RightmoveMustHave, RightmoveNamespace, type RightmovePropertyOptions, type RightmovePropertyType, type RightmoveRadius, type RightmoveSearchOptions, type RightmoveSoldOptions, type RightmoveSoldPropertyOptions, type RightmoveSoldPropertyType, type RightmoveSoldSort, type RightmoveSort, type RightmoveTenure, type SECCompanyOptions, type SECConceptOptions, type SECFactsOptions, type SECFilingsOptions, type SECLookupOptions, SECNamespace, type SECSearchOptions, Scavio, ScavioAPIError, type ScavioConfig, ScavioConnectionError, ScavioError, ScavioJobTimeoutError, ScavioTimeoutError, type TargetCategoryOptions, TargetNamespace, type TargetProductOptions, type TargetReviewsOptions, type TargetSearchOptions, ThreadsNamespace, type ThreadsPostCommentsOptions, type ThreadsPostOptions, type ThreadsProfileOptions, type ThreadsSearchUsersOptions, type ThreadsUserPostsOptions, type ThreadsUserRepliesOptions, type TikTokCommentRepliesOptions, type TikTokHashtagOptions, type TikTokHashtagVideosOptions, type TikTokMusicChartOptions, type TikTokMusicOptions, type TikTokMusicVideosOptions, TikTokNamespace, type TikTokPlaylistVideosOptions, type TikTokProfileOptions, type TikTokSearchMusicOptions, type TikTokSearchSuggestionsOptions, type TikTokSearchUsersOptions, type TikTokSearchVideosOptions, type TikTokShopCategoryProductsOptions, type TikTokShopListingRegion, TikTokShopNamespace, type TikTokShopProductOptions, type TikTokShopProductReviewsOptions, type TikTokShopRegion, type TikTokShopResolveOptions, type TikTokShopReviewSort, type TikTokShopSearchOptions, type TikTokShopShopProductsOptions, type TikTokShopSuggestionsOptions, type TikTokTrendingVideosOptions, type TikTokUserFollowersOptions, type TikTokUserFollowingsOptions, type TikTokUserPlaylistsOptions, type TikTokUserPostsOptions, type TikTokUserSimilarOptions, type TikTokUsernameOptions, type TikTokVideoCommentsOptions, type TikTokVideoOptions, type TikTokVideoTranscriptOptions, type TripadvisorLocationOptions, type TripadvisorLocationsOptions, TripadvisorNamespace, type TripadvisorReviewsOptions, type TripadvisorSearchOptions, type TrustpilotBusinessAddress, type TrustpilotBusinessOptions, type TrustpilotCategoriesOptions, type TrustpilotCategoryOptions, type TrustpilotCategorySort, TrustpilotNamespace, type TrustpilotReviewOptions, type TrustpilotReviewsDateRange, type TrustpilotReviewsOptions, type TrustpilotReviewsSort, type TrustpilotSearchOptions, type TrustpilotStars, type WalmartCategoryOptions, WalmartNamespace, type WalmartOffersOptions, type WalmartProductOptions, type WalmartReviewsOptions, type WalmartSearchOptions, type WalmartSellerOptions, type WalmartSellerProductsOptions, type WalmartStore, type WalmartStoresData, type WalmartStoresOptions, type WalmartStoresResponse, type XCommunityOptions, type XCommunityTweetsOptions, XNamespace, type XSearchCommunitiesOptions, type XSearchOptions, type XTrendingOptions, type XTweetCommentsOptions, type XTweetOptions, type XTweetRetweetersOptions, type XUserFeedOptions, type XUserOptions, type YelpBusinessOptions, YelpNamespace, type YelpReviewsOptions, type YelpSearchOptions, type YouTubeChannelCommunityOptions, type YouTubeChannelOptions, type YouTubeChannelResolveOptions, type YouTubeChannelSearchOptions, type YouTubeChannelShortsOptions, type YouTubeChannelVideosOptions, type YouTubeCommentRepliesOptions, type YouTubeCommentsOptions, type YouTubeCommunityPostCommentsOptions, type YouTubeCommunityPostOptions, type YouTubeMetadataOptions, YouTubeNamespace, type YouTubeRelatedOptions, type YouTubeSearchOptions, type YouTubeShortsOptions, type YouTubeStreamsOptions, type YouTubeSuggestionsOptions, type YouTubeTranscriptOptions, type YouTubeVideoOptions, type ZillowAgentReviewsOptions, ZillowNamespace, type ZillowPropertyOptions, type ZillowSearchOptions, verifyWebhook };
|
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ function parseRetryAfter(header) {
|
|
|
145
145
|
var BASE_URL = "https://api.scavio.dev";
|
|
146
146
|
var DEFAULT_TIMEOUT = 3e4;
|
|
147
147
|
var DEFAULT_MAX_RETRIES = 2;
|
|
148
|
-
var SDK_VERSION = true ? "0.
|
|
148
|
+
var SDK_VERSION = true ? "0.24.1" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|
|
@@ -725,42 +725,86 @@ var InstagramNamespace = class {
|
|
|
725
725
|
this.client = client;
|
|
726
726
|
}
|
|
727
727
|
client;
|
|
728
|
+
/** Get a user profile by username or user_id. 1 credit. */
|
|
728
729
|
async profile(options) {
|
|
729
730
|
return this.client._post("/api/v1/instagram/profile", options);
|
|
730
731
|
}
|
|
732
|
+
/** Get a user's posts, about 12 per page; page with `data.pagination_token`. 2 credits per page. */
|
|
731
733
|
async userPosts(options) {
|
|
732
734
|
return this.client._post("/api/v1/instagram/user/posts", options);
|
|
733
735
|
}
|
|
736
|
+
/** Get a user's Reels. 1 credit (2 the first time a username is looked up). */
|
|
734
737
|
async userReels(options) {
|
|
735
738
|
return this.client._post("/api/v1/instagram/user/reels", options);
|
|
736
739
|
}
|
|
740
|
+
/** Get posts a user is tagged in. 1 credit (2 the first time a username is looked up). */
|
|
737
741
|
async userTagged(options) {
|
|
738
742
|
return this.client._post("/api/v1/instagram/user/tagged", options);
|
|
739
743
|
}
|
|
744
|
+
/** Get a user's active stories. 2 credits. */
|
|
740
745
|
async userStories(options) {
|
|
741
746
|
return this.client._post("/api/v1/instagram/user/stories", options);
|
|
742
747
|
}
|
|
748
|
+
/** Get a single post by url, media_id or shortcode. 2 credits. */
|
|
743
749
|
async post(options) {
|
|
744
750
|
return this.client._post("/api/v1/instagram/post", options);
|
|
745
751
|
}
|
|
752
|
+
/** Get comments on a post; page with `next_min_id`. 2 credits per page. */
|
|
746
753
|
async postComments(options) {
|
|
747
754
|
return this.client._post("/api/v1/instagram/post/comments", options);
|
|
748
755
|
}
|
|
756
|
+
/** Get replies to a comment. 2 credits. */
|
|
749
757
|
async commentReplies(options) {
|
|
750
758
|
return this.client._post("/api/v1/instagram/post/comments/replies", options);
|
|
751
759
|
}
|
|
760
|
+
/** Search users by keyword. 2 credits; 8 when a `cursor` is sent. */
|
|
752
761
|
async searchUsers(options) {
|
|
753
762
|
return this.client._post("/api/v1/instagram/search/users", options);
|
|
754
763
|
}
|
|
764
|
+
/** Search hashtags by keyword. 2 credits; 8 when a `cursor` is sent. */
|
|
755
765
|
async searchHashtags(options) {
|
|
756
766
|
return this.client._post("/api/v1/instagram/search/hashtags", options);
|
|
757
767
|
}
|
|
768
|
+
/** Get a user's followers; page with `next_max_id`. 2 credits per page. */
|
|
758
769
|
async userFollowers(options) {
|
|
759
770
|
return this.client._post("/api/v1/instagram/user/followers", options);
|
|
760
771
|
}
|
|
772
|
+
/** Get the accounts a user follows; page with `next_max_id`. 2 credits per page. */
|
|
761
773
|
async userFollowings(options) {
|
|
762
774
|
return this.client._post("/api/v1/instagram/user/followings", options);
|
|
763
775
|
}
|
|
776
|
+
/** List a user's story highlights (id, title, cover, item count). 2 credits. */
|
|
777
|
+
async userHighlights(options) {
|
|
778
|
+
return this.client._post("/api/v1/instagram/user/highlights", options);
|
|
779
|
+
}
|
|
780
|
+
/** Get every story saved in one highlight, with media URLs. 2 credits. */
|
|
781
|
+
async highlightStories(options) {
|
|
782
|
+
return this.client._post("/api/v1/instagram/highlight/stories", options);
|
|
783
|
+
}
|
|
784
|
+
/** Search Reels by keyword; page with `pagination_token`. 2 credits per page. */
|
|
785
|
+
async searchReels(options) {
|
|
786
|
+
return this.client._post("/api/v1/instagram/search/reels", options);
|
|
787
|
+
}
|
|
788
|
+
/** Search audio tracks by song or artist; returns the id `musicPosts` takes. 2 credits. */
|
|
789
|
+
async searchMusic(options) {
|
|
790
|
+
return this.client._post("/api/v1/instagram/search/music", options);
|
|
791
|
+
}
|
|
792
|
+
/** Get the Reels that use an audio track, plus its total reel count. 1 credit per page. */
|
|
793
|
+
async musicPosts(options) {
|
|
794
|
+
return this.client._post("/api/v1/instagram/music/posts", options);
|
|
795
|
+
}
|
|
796
|
+
/** Search places by name (id, name, address, coordinates). 2 credits. */
|
|
797
|
+
async searchLocations(options) {
|
|
798
|
+
return this.client._post("/api/v1/instagram/search/locations", options);
|
|
799
|
+
}
|
|
800
|
+
/** Get accounts similar to a user. Most creator accounts have them; some brand accounts return none. 2 credits. */
|
|
801
|
+
async userSimilar(options) {
|
|
802
|
+
return this.client._post("/api/v1/instagram/user/similar", options);
|
|
803
|
+
}
|
|
804
|
+
/** Get accounts that liked a post (up to about 1,000) and its total like count. 2 credits. */
|
|
805
|
+
async postLikers(options) {
|
|
806
|
+
return this.client._post("/api/v1/instagram/post/likers", options);
|
|
807
|
+
}
|
|
764
808
|
};
|
|
765
809
|
|
|
766
810
|
// src/namespaces/walmart.ts
|
|
@@ -1061,14 +1105,14 @@ var LinkedInNamespace = class {
|
|
|
1061
1105
|
return this.client._post("/api/v1/linkedin/post/comments", options);
|
|
1062
1106
|
}
|
|
1063
1107
|
/**
|
|
1064
|
-
* @deprecated Retired
|
|
1108
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1065
1109
|
* never billed.
|
|
1066
1110
|
*/
|
|
1067
1111
|
async personContact(options) {
|
|
1068
1112
|
return this.client._post("/api/v1/linkedin/person/contact", options);
|
|
1069
1113
|
}
|
|
1070
1114
|
/**
|
|
1071
|
-
* @deprecated Retired
|
|
1115
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1072
1116
|
* never billed. `company()` returns `featured_employees`, a small sample of
|
|
1073
1117
|
* staff profiles.
|
|
1074
1118
|
*/
|
|
@@ -1076,21 +1120,21 @@ var LinkedInNamespace = class {
|
|
|
1076
1120
|
return this.client._post("/api/v1/linkedin/company/people", options);
|
|
1077
1121
|
}
|
|
1078
1122
|
/**
|
|
1079
|
-
* @deprecated Retired
|
|
1123
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1080
1124
|
* never billed. Use `searchJobs()` with the company name as the search term.
|
|
1081
1125
|
*/
|
|
1082
1126
|
async companyJobs(options) {
|
|
1083
1127
|
return this.client._post("/api/v1/linkedin/company/jobs", options);
|
|
1084
1128
|
}
|
|
1085
1129
|
/**
|
|
1086
|
-
* @deprecated Retired
|
|
1130
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1087
1131
|
* never billed.
|
|
1088
1132
|
*/
|
|
1089
1133
|
async searchPeople(options) {
|
|
1090
1134
|
return this.client._post("/api/v1/linkedin/search/people", options);
|
|
1091
1135
|
}
|
|
1092
1136
|
/**
|
|
1093
|
-
* @deprecated Retired
|
|
1137
|
+
* @deprecated Retired. Always returns HTTP 410 and is
|
|
1094
1138
|
* never billed.
|
|
1095
1139
|
*/
|
|
1096
1140
|
async searchPosts(options) {
|
|
@@ -1350,7 +1394,7 @@ var TargetNamespace = class {
|
|
|
1350
1394
|
* Paged with `page` + `count` (1-28, default 24). `seller_id` and
|
|
1351
1395
|
* `seller_name` are null on first-party rows, which means "sold by Target".
|
|
1352
1396
|
*
|
|
1353
|
-
* Costs 1 credit. Typically ~9s
|
|
1397
|
+
* Costs 1 credit. Typically ~9s.
|
|
1354
1398
|
*/
|
|
1355
1399
|
async search(options) {
|
|
1356
1400
|
return this.client._post("/api/v1/target/search", options);
|
|
@@ -1516,9 +1560,8 @@ var RedfinNamespace = class {
|
|
|
1516
1560
|
* houses, schools, climate risk, walkability and location scores, sun
|
|
1517
1561
|
* exposure, monthly weather, permits, zoning, comparable sales and photos.
|
|
1518
1562
|
*
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
1521
|
-
* search().
|
|
1563
|
+
* Returns the whole property page in one call, which is why it is the same
|
|
1564
|
+
* price as search().
|
|
1522
1565
|
*
|
|
1523
1566
|
* Costs 1 credit. Single response, no pagination.
|
|
1524
1567
|
*/
|
|
@@ -1748,7 +1791,7 @@ var YelpNamespace = class {
|
|
|
1748
1791
|
* count.
|
|
1749
1792
|
*
|
|
1750
1793
|
* `term` + `location` or `url` is required, and `location` is effectively
|
|
1751
|
-
* mandatory - Yelp
|
|
1794
|
+
* mandatory - without it Yelp picks a location itself.
|
|
1752
1795
|
* Paged with `page`; the page size is fixed at 10.
|
|
1753
1796
|
*
|
|
1754
1797
|
* Costs 2 credits.
|
|
@@ -1820,8 +1863,7 @@ var IndeedNamespace = class {
|
|
|
1820
1863
|
* employment types, benefits, geocoded address, employer rating, applicant
|
|
1821
1864
|
* count and the original ATS link.
|
|
1822
1865
|
*
|
|
1823
|
-
* Single response, no pagination. An unknown job key is a real 404
|
|
1824
|
-
* scrape.do BILLS - take `job_id` from a search row.
|
|
1866
|
+
* Single response, no pagination. An unknown job key is a real 404 and IS BILLED - take `job_id` from a search row.
|
|
1825
1867
|
*
|
|
1826
1868
|
* Costs 2 credits.
|
|
1827
1869
|
*/
|
|
@@ -1833,8 +1875,7 @@ var IndeedNamespace = class {
|
|
|
1833
1875
|
* approval, overall and per-category ratings, reported salaries, open roles
|
|
1834
1876
|
* and locations.
|
|
1835
1877
|
*
|
|
1836
|
-
* Single response, no pagination. An unknown company slug is a real 404
|
|
1837
|
-
* that scrape.do BILLS.
|
|
1878
|
+
* Single response, no pagination. An unknown company slug is a real 404 and IS BILLED.
|
|
1838
1879
|
*
|
|
1839
1880
|
* Costs 2 credits.
|
|
1840
1881
|
*/
|
|
@@ -1882,7 +1923,7 @@ var GlassdoorNamespace = class {
|
|
|
1882
1923
|
* server-rendered reviews, AND reviews_url / salaries_url.
|
|
1883
1924
|
*
|
|
1884
1925
|
* THE CHAINING ENDPOINT: pass reviews_url / salaries_url back as `url` on
|
|
1885
|
-
* reviews() and salaries() to halve the
|
|
1926
|
+
* reviews() and salaries() to halve the lookups. `employer_id` or
|
|
1886
1927
|
* `url` is required - `company` is cosmetic and does not satisfy it.
|
|
1887
1928
|
*
|
|
1888
1929
|
* Costs 1 credit. Single response, no pagination. Typically ~3-47s.
|
|
@@ -2206,7 +2247,7 @@ var SECNamespace = class {
|
|
|
2206
2247
|
* filer had more.
|
|
2207
2248
|
*
|
|
2208
2249
|
* Costs 1 credit - including with `include_history`, which is the one call
|
|
2209
|
-
* that can buy more than one
|
|
2250
|
+
* that can buy more than one lookup.
|
|
2210
2251
|
*/
|
|
2211
2252
|
async filings(options) {
|
|
2212
2253
|
return this.client._post("/api/v1/sec/filings", options);
|