@crawlora-org/sdk 1.5.0-sdk.2 → 1.6.0-sdk.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/CHANGELOG.md +7 -0
- package/README.md +3 -2
- package/docs/operations.md +11 -5
- package/docs/recipes.md +9 -0
- package/openapi/public.json +1301 -110
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/operations.js +310 -5
- package/src/types.d.ts +310 -0
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { operations, groups } from "./operations.js";
|
|
2
2
|
|
|
3
3
|
const DEFAULT_BASE_URL = "https://api.crawlora.net/api/v1";
|
|
4
|
-
export const VERSION = "1.
|
|
4
|
+
export const VERSION = "1.6.0-sdk.1";
|
|
5
5
|
const DEFAULT_USER_AGENT = `crawlora-js-sdk/${VERSION}`;
|
|
6
6
|
|
|
7
7
|
export class CrawloraError extends Error {
|
package/src/operations.js
CHANGED
|
@@ -1297,6 +1297,52 @@ export const operations = {
|
|
|
1297
1297
|
"ApiKeyAuth"
|
|
1298
1298
|
]
|
|
1299
1299
|
},
|
|
1300
|
+
"brand-retrieve": {
|
|
1301
|
+
"bodyParam": null,
|
|
1302
|
+
"bodyRequired": false,
|
|
1303
|
+
"consumes": [
|
|
1304
|
+
"application/json"
|
|
1305
|
+
],
|
|
1306
|
+
"formParams": [],
|
|
1307
|
+
"id": "brand-retrieve",
|
|
1308
|
+
"method": "GET",
|
|
1309
|
+
"path": "/brand/retrieve",
|
|
1310
|
+
"pathParams": [],
|
|
1311
|
+
"produces": [
|
|
1312
|
+
"application/json"
|
|
1313
|
+
],
|
|
1314
|
+
"queryParams": [
|
|
1315
|
+
{
|
|
1316
|
+
"in": "query",
|
|
1317
|
+
"name": "domain",
|
|
1318
|
+
"required": true,
|
|
1319
|
+
"type": "string"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"in": "query",
|
|
1323
|
+
"name": "force_language",
|
|
1324
|
+
"type": "string"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"in": "query",
|
|
1328
|
+
"name": "maxSpeed",
|
|
1329
|
+
"type": "boolean"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"in": "query",
|
|
1333
|
+
"name": "maxAgeMs",
|
|
1334
|
+
"type": "integer"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"in": "query",
|
|
1338
|
+
"name": "timeoutMS",
|
|
1339
|
+
"type": "integer"
|
|
1340
|
+
}
|
|
1341
|
+
],
|
|
1342
|
+
"security": [
|
|
1343
|
+
"ApiKeyAuth"
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1300
1346
|
"brave-images": {
|
|
1301
1347
|
"bodyParam": null,
|
|
1302
1348
|
"bodyRequired": false,
|
|
@@ -7206,6 +7252,194 @@ export const operations = {
|
|
|
7206
7252
|
"queryParams": [],
|
|
7207
7253
|
"security": []
|
|
7208
7254
|
},
|
|
7255
|
+
"reddit-comments": {
|
|
7256
|
+
"bodyParam": null,
|
|
7257
|
+
"bodyRequired": false,
|
|
7258
|
+
"consumes": [
|
|
7259
|
+
"application/json"
|
|
7260
|
+
],
|
|
7261
|
+
"formParams": [],
|
|
7262
|
+
"id": "reddit-comments",
|
|
7263
|
+
"method": "GET",
|
|
7264
|
+
"path": "/reddit/comments/{id}",
|
|
7265
|
+
"pathParams": [
|
|
7266
|
+
"id"
|
|
7267
|
+
],
|
|
7268
|
+
"produces": [
|
|
7269
|
+
"application/json"
|
|
7270
|
+
],
|
|
7271
|
+
"queryParams": [
|
|
7272
|
+
{
|
|
7273
|
+
"enum": [
|
|
7274
|
+
"confidence",
|
|
7275
|
+
"top",
|
|
7276
|
+
"new",
|
|
7277
|
+
"controversial",
|
|
7278
|
+
"old",
|
|
7279
|
+
"qa"
|
|
7280
|
+
],
|
|
7281
|
+
"in": "query",
|
|
7282
|
+
"name": "sort",
|
|
7283
|
+
"type": "string"
|
|
7284
|
+
},
|
|
7285
|
+
{
|
|
7286
|
+
"in": "query",
|
|
7287
|
+
"name": "limit",
|
|
7288
|
+
"type": "integer"
|
|
7289
|
+
},
|
|
7290
|
+
{
|
|
7291
|
+
"in": "query",
|
|
7292
|
+
"name": "depth",
|
|
7293
|
+
"type": "integer"
|
|
7294
|
+
}
|
|
7295
|
+
],
|
|
7296
|
+
"security": [
|
|
7297
|
+
"ApiKeyAuth"
|
|
7298
|
+
]
|
|
7299
|
+
},
|
|
7300
|
+
"reddit-post": {
|
|
7301
|
+
"bodyParam": null,
|
|
7302
|
+
"bodyRequired": false,
|
|
7303
|
+
"consumes": [
|
|
7304
|
+
"application/json"
|
|
7305
|
+
],
|
|
7306
|
+
"formParams": [],
|
|
7307
|
+
"id": "reddit-post",
|
|
7308
|
+
"method": "GET",
|
|
7309
|
+
"path": "/reddit/post/{id}",
|
|
7310
|
+
"pathParams": [
|
|
7311
|
+
"id"
|
|
7312
|
+
],
|
|
7313
|
+
"produces": [
|
|
7314
|
+
"application/json"
|
|
7315
|
+
],
|
|
7316
|
+
"queryParams": [],
|
|
7317
|
+
"security": [
|
|
7318
|
+
"ApiKeyAuth"
|
|
7319
|
+
]
|
|
7320
|
+
},
|
|
7321
|
+
"reddit-search": {
|
|
7322
|
+
"bodyParam": null,
|
|
7323
|
+
"bodyRequired": false,
|
|
7324
|
+
"consumes": [
|
|
7325
|
+
"application/json"
|
|
7326
|
+
],
|
|
7327
|
+
"formParams": [],
|
|
7328
|
+
"id": "reddit-search",
|
|
7329
|
+
"method": "GET",
|
|
7330
|
+
"path": "/reddit/search",
|
|
7331
|
+
"pathParams": [],
|
|
7332
|
+
"produces": [
|
|
7333
|
+
"application/json"
|
|
7334
|
+
],
|
|
7335
|
+
"queryParams": [
|
|
7336
|
+
{
|
|
7337
|
+
"in": "query",
|
|
7338
|
+
"name": "q",
|
|
7339
|
+
"required": true,
|
|
7340
|
+
"type": "string"
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"in": "query",
|
|
7344
|
+
"name": "subreddit",
|
|
7345
|
+
"type": "string"
|
|
7346
|
+
},
|
|
7347
|
+
{
|
|
7348
|
+
"enum": [
|
|
7349
|
+
"relevance",
|
|
7350
|
+
"hot",
|
|
7351
|
+
"new",
|
|
7352
|
+
"top",
|
|
7353
|
+
"comments"
|
|
7354
|
+
],
|
|
7355
|
+
"in": "query",
|
|
7356
|
+
"name": "sort",
|
|
7357
|
+
"type": "string"
|
|
7358
|
+
},
|
|
7359
|
+
{
|
|
7360
|
+
"enum": [
|
|
7361
|
+
"hour",
|
|
7362
|
+
"day",
|
|
7363
|
+
"week",
|
|
7364
|
+
"month",
|
|
7365
|
+
"year",
|
|
7366
|
+
"all"
|
|
7367
|
+
],
|
|
7368
|
+
"in": "query",
|
|
7369
|
+
"name": "time",
|
|
7370
|
+
"type": "string"
|
|
7371
|
+
},
|
|
7372
|
+
{
|
|
7373
|
+
"in": "query",
|
|
7374
|
+
"name": "limit",
|
|
7375
|
+
"type": "integer"
|
|
7376
|
+
},
|
|
7377
|
+
{
|
|
7378
|
+
"in": "query",
|
|
7379
|
+
"name": "after",
|
|
7380
|
+
"type": "string"
|
|
7381
|
+
}
|
|
7382
|
+
],
|
|
7383
|
+
"security": [
|
|
7384
|
+
"ApiKeyAuth"
|
|
7385
|
+
]
|
|
7386
|
+
},
|
|
7387
|
+
"reddit-subreddit-posts": {
|
|
7388
|
+
"bodyParam": null,
|
|
7389
|
+
"bodyRequired": false,
|
|
7390
|
+
"consumes": [
|
|
7391
|
+
"application/json"
|
|
7392
|
+
],
|
|
7393
|
+
"formParams": [],
|
|
7394
|
+
"id": "reddit-subreddit-posts",
|
|
7395
|
+
"method": "GET",
|
|
7396
|
+
"path": "/reddit/subreddit/{subreddit}/posts",
|
|
7397
|
+
"pathParams": [
|
|
7398
|
+
"subreddit"
|
|
7399
|
+
],
|
|
7400
|
+
"produces": [
|
|
7401
|
+
"application/json"
|
|
7402
|
+
],
|
|
7403
|
+
"queryParams": [
|
|
7404
|
+
{
|
|
7405
|
+
"enum": [
|
|
7406
|
+
"hot",
|
|
7407
|
+
"new",
|
|
7408
|
+
"top",
|
|
7409
|
+
"rising"
|
|
7410
|
+
],
|
|
7411
|
+
"in": "query",
|
|
7412
|
+
"name": "sort",
|
|
7413
|
+
"type": "string"
|
|
7414
|
+
},
|
|
7415
|
+
{
|
|
7416
|
+
"enum": [
|
|
7417
|
+
"hour",
|
|
7418
|
+
"day",
|
|
7419
|
+
"week",
|
|
7420
|
+
"month",
|
|
7421
|
+
"year",
|
|
7422
|
+
"all"
|
|
7423
|
+
],
|
|
7424
|
+
"in": "query",
|
|
7425
|
+
"name": "time",
|
|
7426
|
+
"type": "string"
|
|
7427
|
+
},
|
|
7428
|
+
{
|
|
7429
|
+
"in": "query",
|
|
7430
|
+
"name": "limit",
|
|
7431
|
+
"type": "integer"
|
|
7432
|
+
},
|
|
7433
|
+
{
|
|
7434
|
+
"in": "query",
|
|
7435
|
+
"name": "after",
|
|
7436
|
+
"type": "string"
|
|
7437
|
+
}
|
|
7438
|
+
],
|
|
7439
|
+
"security": [
|
|
7440
|
+
"ApiKeyAuth"
|
|
7441
|
+
]
|
|
7442
|
+
},
|
|
7209
7443
|
"referrals-click": {
|
|
7210
7444
|
"bodyParam": "request",
|
|
7211
7445
|
"bodyRequired": true,
|
|
@@ -11342,7 +11576,7 @@ export const operations = {
|
|
|
11342
11576
|
}
|
|
11343
11577
|
],
|
|
11344
11578
|
"security": [
|
|
11345
|
-
"
|
|
11579
|
+
"ApiKeyAuth"
|
|
11346
11580
|
]
|
|
11347
11581
|
},
|
|
11348
11582
|
"usage-me-overview": {
|
|
@@ -11384,7 +11618,7 @@ export const operations = {
|
|
|
11384
11618
|
}
|
|
11385
11619
|
],
|
|
11386
11620
|
"security": [
|
|
11387
|
-
"
|
|
11621
|
+
"ApiKeyAuth"
|
|
11388
11622
|
]
|
|
11389
11623
|
},
|
|
11390
11624
|
"usage-me-recent-ips": {
|
|
@@ -11431,7 +11665,7 @@ export const operations = {
|
|
|
11431
11665
|
}
|
|
11432
11666
|
],
|
|
11433
11667
|
"security": [
|
|
11434
|
-
"
|
|
11668
|
+
"ApiKeyAuth"
|
|
11435
11669
|
]
|
|
11436
11670
|
},
|
|
11437
11671
|
"usage-me-timeseries": {
|
|
@@ -11487,7 +11721,7 @@ export const operations = {
|
|
|
11487
11721
|
}
|
|
11488
11722
|
],
|
|
11489
11723
|
"security": [
|
|
11490
|
-
"
|
|
11724
|
+
"ApiKeyAuth"
|
|
11491
11725
|
]
|
|
11492
11726
|
},
|
|
11493
11727
|
"user-me": {
|
|
@@ -11702,6 +11936,61 @@ export const operations = {
|
|
|
11702
11936
|
"ApiKeyAuth"
|
|
11703
11937
|
]
|
|
11704
11938
|
},
|
|
11939
|
+
"yahoo-finance-lookup": {
|
|
11940
|
+
"bodyParam": null,
|
|
11941
|
+
"bodyRequired": false,
|
|
11942
|
+
"consumes": [
|
|
11943
|
+
"application/json"
|
|
11944
|
+
],
|
|
11945
|
+
"cursorParams": [
|
|
11946
|
+
"start"
|
|
11947
|
+
],
|
|
11948
|
+
"formParams": [],
|
|
11949
|
+
"id": "yahoo-finance-lookup",
|
|
11950
|
+
"method": "GET",
|
|
11951
|
+
"paginatable": true,
|
|
11952
|
+
"path": "/yahoo-finance/lookup",
|
|
11953
|
+
"pathParams": [],
|
|
11954
|
+
"produces": [
|
|
11955
|
+
"application/json"
|
|
11956
|
+
],
|
|
11957
|
+
"queryParams": [
|
|
11958
|
+
{
|
|
11959
|
+
"in": "query",
|
|
11960
|
+
"name": "query",
|
|
11961
|
+
"required": true,
|
|
11962
|
+
"type": "string"
|
|
11963
|
+
},
|
|
11964
|
+
{
|
|
11965
|
+
"enum": [
|
|
11966
|
+
"all",
|
|
11967
|
+
"equity",
|
|
11968
|
+
"etf",
|
|
11969
|
+
"mutualfund",
|
|
11970
|
+
"index",
|
|
11971
|
+
"future",
|
|
11972
|
+
"currency",
|
|
11973
|
+
"cryptocurrency"
|
|
11974
|
+
],
|
|
11975
|
+
"in": "query",
|
|
11976
|
+
"name": "type",
|
|
11977
|
+
"type": "string"
|
|
11978
|
+
},
|
|
11979
|
+
{
|
|
11980
|
+
"in": "query",
|
|
11981
|
+
"name": "count",
|
|
11982
|
+
"type": "integer"
|
|
11983
|
+
},
|
|
11984
|
+
{
|
|
11985
|
+
"in": "query",
|
|
11986
|
+
"name": "start",
|
|
11987
|
+
"type": "integer"
|
|
11988
|
+
}
|
|
11989
|
+
],
|
|
11990
|
+
"security": [
|
|
11991
|
+
"ApiKeyAuth"
|
|
11992
|
+
]
|
|
11993
|
+
},
|
|
11705
11994
|
"yahoo-finance-market-status": {
|
|
11706
11995
|
"bodyParam": null,
|
|
11707
11996
|
"bodyRequired": false,
|
|
@@ -13152,6 +13441,9 @@ export const groups = {
|
|
|
13152
13441
|
"suggest": "bing-suggest",
|
|
13153
13442
|
"videos": "bing-videos"
|
|
13154
13443
|
},
|
|
13444
|
+
"brand": {
|
|
13445
|
+
"retrieve": "brand-retrieve"
|
|
13446
|
+
},
|
|
13155
13447
|
"brave": {
|
|
13156
13448
|
"images": "brave-images",
|
|
13157
13449
|
"news": "brave-news",
|
|
@@ -13302,6 +13594,12 @@ export const groups = {
|
|
|
13302
13594
|
"reviews": "producthunt-reviews",
|
|
13303
13595
|
"search": "producthunt-search"
|
|
13304
13596
|
},
|
|
13597
|
+
"reddit": {
|
|
13598
|
+
"comments": "reddit-comments",
|
|
13599
|
+
"post": "reddit-post",
|
|
13600
|
+
"search": "reddit-search",
|
|
13601
|
+
"subredditPosts": "reddit-subreddit-posts"
|
|
13602
|
+
},
|
|
13305
13603
|
"referrals": {
|
|
13306
13604
|
"click": "referrals-click",
|
|
13307
13605
|
"me": "referrals-me",
|
|
@@ -13445,6 +13743,7 @@ export const groups = {
|
|
|
13445
13743
|
"download": "yahoo-finance-download",
|
|
13446
13744
|
"industries": "yahoo-finance-industries",
|
|
13447
13745
|
"industry": "yahoo-finance-industry",
|
|
13746
|
+
"lookup": "yahoo-finance-lookup",
|
|
13448
13747
|
"marketStatus": "yahoo-finance-market-status",
|
|
13449
13748
|
"marketSummary": "yahoo-finance-market-summary",
|
|
13450
13749
|
"screener": "yahoo-finance-screener",
|
|
@@ -13501,7 +13800,7 @@ export const groups = {
|
|
|
13501
13800
|
}
|
|
13502
13801
|
};
|
|
13503
13802
|
|
|
13504
|
-
export const operationCount =
|
|
13803
|
+
export const operationCount = 336;
|
|
13505
13804
|
|
|
13506
13805
|
// PascalCase aliases for every operation id, for discoverable, typo-safe
|
|
13507
13806
|
// dynamic calls: client.request(OperationIds.BingSearch, { q: "coffee" }).
|
|
@@ -13541,6 +13840,7 @@ export const OperationIds = Object.freeze({
|
|
|
13541
13840
|
"BingSearch": "bing-search",
|
|
13542
13841
|
"BingSuggest": "bing-suggest",
|
|
13543
13842
|
"BingVideos": "bing-videos",
|
|
13843
|
+
"BrandRetrieve": "brand-retrieve",
|
|
13544
13844
|
"BraveImages": "brave-images",
|
|
13545
13845
|
"BraveNews": "brave-news",
|
|
13546
13846
|
"BraveSearch": "brave-search",
|
|
@@ -13667,6 +13967,10 @@ export const OperationIds = Object.freeze({
|
|
|
13667
13967
|
"ProductHuntProduct": "producthunt-product",
|
|
13668
13968
|
"ProductHuntReviews": "producthunt-reviews",
|
|
13669
13969
|
"ProductHuntSearch": "producthunt-search",
|
|
13970
|
+
"RedditComments": "reddit-comments",
|
|
13971
|
+
"RedditPost": "reddit-post",
|
|
13972
|
+
"RedditSearch": "reddit-search",
|
|
13973
|
+
"RedditSubredditPosts": "reddit-subreddit-posts",
|
|
13670
13974
|
"ReferralsClick": "referrals-click",
|
|
13671
13975
|
"ReferralsMe": "referrals-me",
|
|
13672
13976
|
"ReferralsMeEvents": "referrals-me-events",
|
|
@@ -13787,6 +14091,7 @@ export const OperationIds = Object.freeze({
|
|
|
13787
14091
|
"YahooFinanceDownload": "yahoo-finance-download",
|
|
13788
14092
|
"YahooFinanceIndustries": "yahoo-finance-industries",
|
|
13789
14093
|
"YahooFinanceIndustry": "yahoo-finance-industry",
|
|
14094
|
+
"YahooFinanceLookup": "yahoo-finance-lookup",
|
|
13790
14095
|
"YahooFinanceMarketStatus": "yahoo-finance-market-status",
|
|
13791
14096
|
"YahooFinanceMarketSummary": "yahoo-finance-market-summary",
|
|
13792
14097
|
"YahooFinanceScreener": "yahoo-finance-screener",
|