@getanyapi/sdk 0.9.2 → 0.9.6
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 -4
- package/dist/index.cjs +239 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -97
- package/dist/index.d.ts +105 -97
- package/dist/index.js +239 -108
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,13 +4,18 @@ var AnyAPIError = class extends Error {
|
|
|
4
4
|
status;
|
|
5
5
|
/** The x-request-id response header when present, else undefined. */
|
|
6
6
|
requestId;
|
|
7
|
-
|
|
7
|
+
/** Stable gateway error code when the JSON body includes one, else undefined. */
|
|
8
|
+
code;
|
|
9
|
+
constructor(message, status, requestId, code) {
|
|
8
10
|
super(message);
|
|
9
11
|
this.name = new.target.name;
|
|
10
12
|
this.status = status;
|
|
11
13
|
if (requestId !== void 0) {
|
|
12
14
|
this.requestId = requestId;
|
|
13
15
|
}
|
|
16
|
+
if (code !== void 0) {
|
|
17
|
+
this.code = code;
|
|
18
|
+
}
|
|
14
19
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
15
20
|
}
|
|
16
21
|
};
|
|
@@ -32,25 +37,72 @@ var ConnectionError = class extends AnyAPIError {
|
|
|
32
37
|
};
|
|
33
38
|
var TimeoutError = class extends AnyAPIError {
|
|
34
39
|
};
|
|
35
|
-
function errorFromStatus(status, message, requestId) {
|
|
40
|
+
function errorFromStatus(status, message, requestId, code) {
|
|
36
41
|
switch (status) {
|
|
37
42
|
case 400:
|
|
38
|
-
return new BadRequestError(message, status, requestId);
|
|
43
|
+
return new BadRequestError(message, status, requestId, code);
|
|
39
44
|
case 401:
|
|
40
|
-
return new AuthenticationError(message, status, requestId);
|
|
45
|
+
return new AuthenticationError(message, status, requestId, code);
|
|
41
46
|
case 402:
|
|
42
|
-
return new InsufficientBalanceError(message, status, requestId);
|
|
47
|
+
return new InsufficientBalanceError(message, status, requestId, code);
|
|
43
48
|
case 404:
|
|
44
|
-
return new NotFoundError(message, status, requestId);
|
|
49
|
+
return new NotFoundError(message, status, requestId, code);
|
|
45
50
|
case 429:
|
|
46
|
-
return new RateLimitedError(message, status, requestId);
|
|
51
|
+
return new RateLimitedError(message, status, requestId, code);
|
|
47
52
|
case 502:
|
|
48
|
-
return new UpstreamError(message, status, requestId);
|
|
53
|
+
return new UpstreamError(message, status, requestId, code);
|
|
49
54
|
default:
|
|
50
|
-
return new AnyAPIError(message, status, requestId);
|
|
55
|
+
return new AnyAPIError(message, status, requestId, code);
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
58
|
|
|
59
|
+
// src/core/idempotency.ts
|
|
60
|
+
var MAX_IDEMPOTENCY_KEY_BYTES = 255;
|
|
61
|
+
function generateIdempotencyKey() {
|
|
62
|
+
let runtimeCrypto;
|
|
63
|
+
try {
|
|
64
|
+
runtimeCrypto = globalThis.crypto;
|
|
65
|
+
} catch {
|
|
66
|
+
runtimeCrypto = void 0;
|
|
67
|
+
}
|
|
68
|
+
if (typeof runtimeCrypto?.randomUUID === "function") {
|
|
69
|
+
try {
|
|
70
|
+
return runtimeCrypto.randomUUID();
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (typeof runtimeCrypto?.getRandomValues === "function") {
|
|
75
|
+
try {
|
|
76
|
+
const bytes = runtimeCrypto.getRandomValues(new Uint8Array(16));
|
|
77
|
+
return Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
78
|
+
} catch {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return Array.from(
|
|
82
|
+
{ length: 4 },
|
|
83
|
+
() => Math.floor(Math.random() * 4294967296).toString(16).padStart(8, "0")
|
|
84
|
+
).join("");
|
|
85
|
+
}
|
|
86
|
+
function validateIdempotencyKey(key) {
|
|
87
|
+
if (key.length === 0 || key.length > MAX_IDEMPOTENCY_KEY_BYTES || [...key].some((char) => {
|
|
88
|
+
const code = char.charCodeAt(0);
|
|
89
|
+
return code < 33 || code > 126;
|
|
90
|
+
})) {
|
|
91
|
+
throw new TypeError(
|
|
92
|
+
"idempotencyKey must be 1-255 bytes of visible ASCII (0x21-0x7e)"
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function pageIdempotencyKey(key, pageNumber) {
|
|
97
|
+
validateIdempotencyKey(key);
|
|
98
|
+
const suffix = `-p${pageNumber}`;
|
|
99
|
+
const prefixLength = MAX_IDEMPOTENCY_KEY_BYTES - suffix.length;
|
|
100
|
+
if (prefixLength < 1) {
|
|
101
|
+
throw new TypeError("pagination page number is too large for an idempotency key");
|
|
102
|
+
}
|
|
103
|
+
return `${key.slice(0, prefixLength)}${suffix}`;
|
|
104
|
+
}
|
|
105
|
+
|
|
54
106
|
// src/core/account.ts
|
|
55
107
|
var DEFAULT_BASE_URL = "https://api.getanyapi.com";
|
|
56
108
|
function malformed(path) {
|
|
@@ -359,14 +411,18 @@ async function agentSignup(options = {}) {
|
|
|
359
411
|
const text = await response.text().catch(() => "");
|
|
360
412
|
if (response.status !== 200) {
|
|
361
413
|
let message = `request failed with status ${response.status}`;
|
|
414
|
+
let code;
|
|
362
415
|
try {
|
|
363
416
|
const parsed2 = JSON.parse(text);
|
|
364
417
|
if (typeof parsed2.error === "string" && parsed2.error !== "") {
|
|
365
418
|
message = parsed2.error;
|
|
366
419
|
}
|
|
420
|
+
if (typeof parsed2.code === "string" && parsed2.code !== "") {
|
|
421
|
+
code = parsed2.code;
|
|
422
|
+
}
|
|
367
423
|
} catch {
|
|
368
424
|
}
|
|
369
|
-
throw errorFromStatus(response.status, message, requestId);
|
|
425
|
+
throw errorFromStatus(response.status, message, requestId, code);
|
|
370
426
|
}
|
|
371
427
|
const parsed = JSON.parse(text);
|
|
372
428
|
return {
|
|
@@ -383,6 +439,18 @@ var DEFAULT_TIMEOUT_MS = 6e4;
|
|
|
383
439
|
var DEFAULT_MAX_RETRIES = 2;
|
|
384
440
|
var RETRY_BASE_DELAY_MS = 500;
|
|
385
441
|
var RETRY_MAX_DELAY_MS = 8e3;
|
|
442
|
+
var PRE_SEND_NETWORK_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
443
|
+
"EADDRNOTAVAIL",
|
|
444
|
+
"EAI_AGAIN",
|
|
445
|
+
"EAI_NODATA",
|
|
446
|
+
"EAI_NONAME",
|
|
447
|
+
"ECONNREFUSED",
|
|
448
|
+
"EHOSTUNREACH",
|
|
449
|
+
"ENETUNREACH",
|
|
450
|
+
"ENOTFOUND",
|
|
451
|
+
"UND_ERR_CONNECT_TIMEOUT",
|
|
452
|
+
"ConnectionRefused"
|
|
453
|
+
]);
|
|
386
454
|
function envApiKey() {
|
|
387
455
|
try {
|
|
388
456
|
if (typeof process !== "undefined" && process?.env) {
|
|
@@ -467,6 +535,33 @@ function isTimeoutSignal(timeoutSignal, callerSignal) {
|
|
|
467
535
|
}
|
|
468
536
|
return callerSignal?.aborted !== true || timeoutSignal.aborted;
|
|
469
537
|
}
|
|
538
|
+
function isDefinitelyPreSendConnectionError(error) {
|
|
539
|
+
const seen = /* @__PURE__ */ new Set();
|
|
540
|
+
const visit = (value) => {
|
|
541
|
+
if (typeof value !== "object" && typeof value !== "function" || value === null) {
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
if (seen.has(value)) {
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
seen.add(value);
|
|
548
|
+
const candidate = value;
|
|
549
|
+
if (typeof candidate.code === "string" && PRE_SEND_NETWORK_ERROR_CODES.has(candidate.code)) {
|
|
550
|
+
return true;
|
|
551
|
+
}
|
|
552
|
+
if (candidate.code === "ETIMEDOUT" && candidate.syscall === "connect") {
|
|
553
|
+
return true;
|
|
554
|
+
}
|
|
555
|
+
if (candidate.code === "UND_ERR_SOCKET" && candidate.socket?.bytesWritten === 0) {
|
|
556
|
+
return true;
|
|
557
|
+
}
|
|
558
|
+
if (Array.isArray(candidate.errors) && candidate.errors.length > 0) {
|
|
559
|
+
return candidate.errors.some((item) => visit(item)) || visit(candidate.cause);
|
|
560
|
+
}
|
|
561
|
+
return visit(candidate.cause);
|
|
562
|
+
};
|
|
563
|
+
return visit(error);
|
|
564
|
+
}
|
|
470
565
|
function buildUrl(baseUrl, slug, options) {
|
|
471
566
|
const base = baseUrl.replace(/\/+$/, "");
|
|
472
567
|
const url = new URL(`${base}/v1/run/${slug}`);
|
|
@@ -485,13 +580,21 @@ function messageFromBody(body, status) {
|
|
|
485
580
|
if (body) {
|
|
486
581
|
try {
|
|
487
582
|
const parsed = JSON.parse(body);
|
|
583
|
+
const code = typeof parsed.code === "string" && parsed.code !== "" ? parsed.code : void 0;
|
|
488
584
|
if (typeof parsed.error === "string" && parsed.error !== "") {
|
|
489
|
-
return
|
|
585
|
+
return {
|
|
586
|
+
message: parsed.error,
|
|
587
|
+
...code !== void 0 ? { code } : {}
|
|
588
|
+
};
|
|
490
589
|
}
|
|
590
|
+
return {
|
|
591
|
+
message: `request failed with status ${status}`,
|
|
592
|
+
...code !== void 0 ? { code } : {}
|
|
593
|
+
};
|
|
491
594
|
} catch {
|
|
492
595
|
}
|
|
493
596
|
}
|
|
494
|
-
return `request failed with status ${status}
|
|
597
|
+
return { message: `request failed with status ${status}` };
|
|
495
598
|
}
|
|
496
599
|
var AnyAPI = class {
|
|
497
600
|
apiKey;
|
|
@@ -499,6 +602,7 @@ var AnyAPI = class {
|
|
|
499
602
|
fetchImpl;
|
|
500
603
|
maxRetries;
|
|
501
604
|
timeoutMs;
|
|
605
|
+
idempotency;
|
|
502
606
|
/**
|
|
503
607
|
* The network seam the generated per-platform namespaces target. The base client IS a
|
|
504
608
|
* ClientCore (it implements `run`), so the generated subclass hands `this._core` to each
|
|
@@ -521,6 +625,11 @@ var AnyAPI = class {
|
|
|
521
625
|
this.fetchImpl = resolvedFetch;
|
|
522
626
|
this.maxRetries = options.maxRetries ?? DEFAULT_MAX_RETRIES;
|
|
523
627
|
this.timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
628
|
+
const idempotency = options.idempotency ?? "auto";
|
|
629
|
+
if (idempotency !== "auto" && idempotency !== "off") {
|
|
630
|
+
throw new TypeError('idempotency must be "auto" or "off"');
|
|
631
|
+
}
|
|
632
|
+
this.idempotency = idempotency;
|
|
524
633
|
}
|
|
525
634
|
/**
|
|
526
635
|
* Generic run for any SKU by slug (the untyped network seam + the string fallback). The
|
|
@@ -528,13 +637,15 @@ var AnyAPI = class {
|
|
|
528
637
|
* base signature is the fallback that returns RunResult<unknown> for an unknown slug.
|
|
529
638
|
*/
|
|
530
639
|
run(slug, input, options) {
|
|
640
|
+
const body = JSON.stringify(input ?? {});
|
|
531
641
|
return this.request(
|
|
532
642
|
"POST",
|
|
533
643
|
buildUrl(this.baseUrl, slug, options),
|
|
534
644
|
{
|
|
535
|
-
body
|
|
645
|
+
body,
|
|
536
646
|
timeoutMs: options?.timeoutMs ?? this.timeoutMs,
|
|
537
647
|
maxRetries: options?.maxRetries ?? this.maxRetries,
|
|
648
|
+
...options?.idempotencyKey !== void 0 ? { idempotencyKey: options.idempotencyKey } : {},
|
|
538
649
|
...options?.signal ? { signal: options.signal } : {}
|
|
539
650
|
}
|
|
540
651
|
);
|
|
@@ -599,6 +710,12 @@ var AnyAPI = class {
|
|
|
599
710
|
if (this.apiKey) {
|
|
600
711
|
headers["Authorization"] = `Bearer ${this.apiKey}`;
|
|
601
712
|
}
|
|
713
|
+
const billedPost = method === "POST" && opts.body !== void 0;
|
|
714
|
+
if (billedPost && this.idempotency === "auto") {
|
|
715
|
+
const key = opts.idempotencyKey ?? generateIdempotencyKey();
|
|
716
|
+
validateIdempotencyKey(key);
|
|
717
|
+
headers["Idempotency-Key"] = key;
|
|
718
|
+
}
|
|
602
719
|
let attempt = 0;
|
|
603
720
|
for (; ; ) {
|
|
604
721
|
const { signal, timeoutSignal } = composeSignal(
|
|
@@ -624,7 +741,9 @@ var AnyAPI = class {
|
|
|
624
741
|
err instanceof Error ? err.message : "connection failed",
|
|
625
742
|
0
|
|
626
743
|
);
|
|
627
|
-
|
|
744
|
+
const requestMayBeBilled = method === "POST" && opts.body !== void 0;
|
|
745
|
+
const safeToRetry = !requestMayBeBilled || isDefinitelyPreSendConnectionError(err);
|
|
746
|
+
if (safeToRetry && attempt < opts.maxRetries) {
|
|
628
747
|
await sleep(backoffDelay(attempt), opts.signal);
|
|
629
748
|
attempt += 1;
|
|
630
749
|
continue;
|
|
@@ -645,7 +764,7 @@ var AnyAPI = class {
|
|
|
645
764
|
}
|
|
646
765
|
}
|
|
647
766
|
const body = await response.text().catch(() => "");
|
|
648
|
-
const message = messageFromBody(body, response.status);
|
|
767
|
+
const { message, code } = messageFromBody(body, response.status);
|
|
649
768
|
if (response.status === 429 && attempt < opts.maxRetries) {
|
|
650
769
|
const retryAfter = parseRetryAfter(response.headers.get("retry-after"));
|
|
651
770
|
const delay = retryAfter ?? backoffDelay(attempt);
|
|
@@ -653,7 +772,7 @@ var AnyAPI = class {
|
|
|
653
772
|
attempt += 1;
|
|
654
773
|
continue;
|
|
655
774
|
}
|
|
656
|
-
throw errorFromStatus(response.status, message, requestId);
|
|
775
|
+
throw errorFromStatus(response.status, message, requestId, code);
|
|
657
776
|
}
|
|
658
777
|
}
|
|
659
778
|
/** Internal accessor for GET helpers in account.ts (same base URL / machinery). */
|
|
@@ -698,12 +817,14 @@ function paginate(core, slug, input, itemsField, bare, options) {
|
|
|
698
817
|
const maxItems = options?.maxItems;
|
|
699
818
|
async function* walkPages() {
|
|
700
819
|
let cursor;
|
|
820
|
+
let pageNumber = 1;
|
|
701
821
|
for (; ; ) {
|
|
702
822
|
const pageInput = { ...input };
|
|
703
823
|
if (cursor !== void 0) {
|
|
704
824
|
pageInput["cursor"] = cursor;
|
|
705
825
|
}
|
|
706
|
-
const
|
|
826
|
+
const pageOptions = optionsForPage(wireOptions, pageNumber);
|
|
827
|
+
const result = await core.run(slug, pageInput, pageOptions);
|
|
707
828
|
yield result;
|
|
708
829
|
const data = pageData(result, bare);
|
|
709
830
|
if (data === null) {
|
|
@@ -714,6 +835,7 @@ function paginate(core, slug, input, itemsField, bare, options) {
|
|
|
714
835
|
return;
|
|
715
836
|
}
|
|
716
837
|
cursor = next;
|
|
838
|
+
pageNumber += 1;
|
|
717
839
|
}
|
|
718
840
|
}
|
|
719
841
|
async function* walkItems() {
|
|
@@ -745,6 +867,15 @@ function paginate(core, slug, input, itemsField, bare, options) {
|
|
|
745
867
|
};
|
|
746
868
|
return paginator;
|
|
747
869
|
}
|
|
870
|
+
function optionsForPage(options, pageNumber) {
|
|
871
|
+
if (options?.idempotencyKey === void 0) {
|
|
872
|
+
return options;
|
|
873
|
+
}
|
|
874
|
+
return {
|
|
875
|
+
...options,
|
|
876
|
+
idempotencyKey: pageIdempotencyKey(options.idempotencyKey, pageNumber)
|
|
877
|
+
};
|
|
878
|
+
}
|
|
748
879
|
function stripMaxItems(options) {
|
|
749
880
|
if (!options) {
|
|
750
881
|
return void 0;
|
|
@@ -1097,7 +1228,7 @@ var BlueskyNamespace = class {
|
|
|
1097
1228
|
/**
|
|
1098
1229
|
* Bluesky User Posts
|
|
1099
1230
|
*
|
|
1100
|
-
* List a Bluesky account's recent posts (text, author handle, like, reply, and repost counts) by handle as clean JSON
|
|
1231
|
+
* List a Bluesky account's recent posts (text, author handle, like, reply, and repost counts) by handle as clean JSON.
|
|
1101
1232
|
*
|
|
1102
1233
|
* Price: $0.002 per request.
|
|
1103
1234
|
*
|
|
@@ -1322,7 +1453,7 @@ var EmailNamespace = class {
|
|
|
1322
1453
|
/**
|
|
1323
1454
|
* Email Verifier
|
|
1324
1455
|
*
|
|
1325
|
-
* Verify
|
|
1456
|
+
* Verify an email address for deliverability: a status verdict (valid, risky, or invalid) with domain, mailbox, catch-all, disposable, and role signals plus a confidence score. Malformed addresses are rejected by the input schema with no charge; every syntactically valid address returns a billed verdict, including undeliverable ones.
|
|
1326
1457
|
*
|
|
1327
1458
|
* Price: $0 per request plus $0.0008 per result (maximum $0.0008).
|
|
1328
1459
|
*
|
|
@@ -1369,7 +1500,7 @@ var FacebookNamespace = class {
|
|
|
1369
1500
|
/**
|
|
1370
1501
|
* Facebook Ad Search
|
|
1371
1502
|
*
|
|
1372
|
-
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination
|
|
1503
|
+
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
1373
1504
|
*
|
|
1374
1505
|
* Price: $0.002 per request.
|
|
1375
1506
|
*
|
|
@@ -1398,7 +1529,7 @@ var FacebookNamespace = class {
|
|
|
1398
1529
|
/**
|
|
1399
1530
|
* Facebook Comment Replies
|
|
1400
1531
|
*
|
|
1401
|
-
* List the replies to a Facebook post comment (text, author, reactions, and timestamps) as normalized JSON
|
|
1532
|
+
* List the replies to a Facebook post comment (text, author, reactions, and timestamps) as normalized JSON.
|
|
1402
1533
|
*
|
|
1403
1534
|
* Price: $0.002 per request.
|
|
1404
1535
|
*
|
|
@@ -1456,7 +1587,7 @@ var FacebookNamespace = class {
|
|
|
1456
1587
|
/**
|
|
1457
1588
|
* Facebook Event Details
|
|
1458
1589
|
*
|
|
1459
|
-
* Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON
|
|
1590
|
+
* Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON.
|
|
1460
1591
|
*
|
|
1461
1592
|
* Price: $0.002 per request.
|
|
1462
1593
|
*
|
|
@@ -1469,7 +1600,7 @@ var FacebookNamespace = class {
|
|
|
1469
1600
|
/**
|
|
1470
1601
|
* Facebook Events
|
|
1471
1602
|
*
|
|
1472
|
-
* List public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON
|
|
1603
|
+
* List public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON.
|
|
1473
1604
|
*
|
|
1474
1605
|
* Price: $0.002 per request.
|
|
1475
1606
|
*
|
|
@@ -1498,7 +1629,7 @@ var FacebookNamespace = class {
|
|
|
1498
1629
|
/**
|
|
1499
1630
|
* Facebook Events Search
|
|
1500
1631
|
*
|
|
1501
|
-
* Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON
|
|
1632
|
+
* Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON.
|
|
1502
1633
|
*
|
|
1503
1634
|
* Price: $0.002 per request.
|
|
1504
1635
|
*
|
|
@@ -1598,7 +1729,7 @@ var FacebookNamespace = class {
|
|
|
1598
1729
|
/**
|
|
1599
1730
|
* Facebook Marketplace Item
|
|
1600
1731
|
*
|
|
1601
|
-
* Fetch full details for a single Facebook Marketplace listing by ID or URL (title, price, location, photos, and attributes) as normalized JSON
|
|
1732
|
+
* Fetch full details for a single Facebook Marketplace listing by ID or URL (title, price, location, photos, and attributes) as normalized JSON.
|
|
1602
1733
|
*
|
|
1603
1734
|
* Price: $0.002 per request.
|
|
1604
1735
|
*
|
|
@@ -1611,7 +1742,7 @@ var FacebookNamespace = class {
|
|
|
1611
1742
|
/**
|
|
1612
1743
|
* Facebook Marketplace Location Search
|
|
1613
1744
|
*
|
|
1614
|
-
* Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON
|
|
1745
|
+
* Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON.
|
|
1615
1746
|
*
|
|
1616
1747
|
* Price: $0.002 per request.
|
|
1617
1748
|
*
|
|
@@ -1641,7 +1772,7 @@ var FacebookNamespace = class {
|
|
|
1641
1772
|
/**
|
|
1642
1773
|
* Facebook Page Photos
|
|
1643
1774
|
*
|
|
1644
|
-
* Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON
|
|
1775
|
+
* Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON.
|
|
1645
1776
|
*
|
|
1646
1777
|
* Price: $0.002 per request.
|
|
1647
1778
|
*
|
|
@@ -1670,7 +1801,7 @@ var FacebookNamespace = class {
|
|
|
1670
1801
|
/**
|
|
1671
1802
|
* Facebook Post
|
|
1672
1803
|
*
|
|
1673
|
-
* Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views)
|
|
1804
|
+
* Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).
|
|
1674
1805
|
*
|
|
1675
1806
|
* Price: $0.002 per request.
|
|
1676
1807
|
*
|
|
@@ -1683,7 +1814,7 @@ var FacebookNamespace = class {
|
|
|
1683
1814
|
/**
|
|
1684
1815
|
* Facebook Post Comments
|
|
1685
1816
|
*
|
|
1686
|
-
* List the comments on a Facebook post by URL with cursor pagination (text, author, reactions, reply count)
|
|
1817
|
+
* List the comments on a Facebook post by URL with cursor pagination (text, author, reactions, reply count).
|
|
1687
1818
|
*
|
|
1688
1819
|
* Price: $0.002 per request.
|
|
1689
1820
|
*
|
|
@@ -1712,7 +1843,7 @@ var FacebookNamespace = class {
|
|
|
1712
1843
|
/**
|
|
1713
1844
|
* Facebook Post Transcript
|
|
1714
1845
|
*
|
|
1715
|
-
* Get the spoken-word transcript of any public Facebook video post by URL as normalized JSON
|
|
1846
|
+
* Get the spoken-word transcript of any public Facebook video post by URL as normalized JSON.
|
|
1716
1847
|
*
|
|
1717
1848
|
* Price: $0.002 per request.
|
|
1718
1849
|
*
|
|
@@ -1725,7 +1856,7 @@ var FacebookNamespace = class {
|
|
|
1725
1856
|
/**
|
|
1726
1857
|
* Facebook Profile
|
|
1727
1858
|
*
|
|
1728
|
-
* Fetch a Facebook page's public profile (likes, followers, category, about) by URL or handle
|
|
1859
|
+
* Fetch a Facebook page's public profile (likes, followers, category, about) by URL or handle.
|
|
1729
1860
|
*
|
|
1730
1861
|
* Price: $0.002 per request.
|
|
1731
1862
|
*
|
|
@@ -1738,7 +1869,7 @@ var FacebookNamespace = class {
|
|
|
1738
1869
|
/**
|
|
1739
1870
|
* Facebook Page Events
|
|
1740
1871
|
*
|
|
1741
|
-
* List upcoming and past events hosted by any public Facebook page by URL (name, schedule, venue, and host) as normalized JSON
|
|
1872
|
+
* List upcoming and past events hosted by any public Facebook page by URL (name, schedule, venue, and host) as normalized JSON.
|
|
1742
1873
|
*
|
|
1743
1874
|
* Price: $0.002 per request.
|
|
1744
1875
|
*
|
|
@@ -1767,7 +1898,7 @@ var FacebookNamespace = class {
|
|
|
1767
1898
|
/**
|
|
1768
1899
|
* Facebook Profile Posts
|
|
1769
1900
|
*
|
|
1770
|
-
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, permalink)
|
|
1901
|
+
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, permalink).
|
|
1771
1902
|
*
|
|
1772
1903
|
* Price: $0.002 per request.
|
|
1773
1904
|
*
|
|
@@ -1780,7 +1911,7 @@ var FacebookNamespace = class {
|
|
|
1780
1911
|
/**
|
|
1781
1912
|
* Facebook Profile Reels
|
|
1782
1913
|
*
|
|
1783
|
-
* List a Facebook page's reels by URL with cursor pagination (caption, view count, permalink, thumbnail)
|
|
1914
|
+
* List a Facebook page's reels by URL with cursor pagination (caption, view count, permalink, thumbnail).
|
|
1784
1915
|
*
|
|
1785
1916
|
* Price: $0.002 per request.
|
|
1786
1917
|
*
|
|
@@ -1806,7 +1937,7 @@ var FacebookNamespace = class {
|
|
|
1806
1937
|
/**
|
|
1807
1938
|
* Facebook Page Search
|
|
1808
1939
|
*
|
|
1809
|
-
* Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details)
|
|
1940
|
+
* Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details).
|
|
1810
1941
|
*
|
|
1811
1942
|
* Price: $0.001 per request plus $0.011 per result (maximum $0.111).
|
|
1812
1943
|
*
|
|
@@ -1861,7 +1992,7 @@ var GithubNamespace = class {
|
|
|
1861
1992
|
/**
|
|
1862
1993
|
* GitHub Repository
|
|
1863
1994
|
*
|
|
1864
|
-
* Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps)
|
|
1995
|
+
* Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps).
|
|
1865
1996
|
*
|
|
1866
1997
|
* Price: $0.002 per request.
|
|
1867
1998
|
*
|
|
@@ -1887,7 +2018,7 @@ var GithubNamespace = class {
|
|
|
1887
2018
|
/**
|
|
1888
2019
|
* GitHub Trending Repositories
|
|
1889
2020
|
*
|
|
1890
|
-
* List GitHub Trending repositories (rank, stars, stars gained today, language, and description), filterable by language and time window
|
|
2021
|
+
* List GitHub Trending repositories (rank, stars, stars gained today, language, and description), filterable by language and time window.
|
|
1891
2022
|
*
|
|
1892
2023
|
* Price: $0.002 per request.
|
|
1893
2024
|
*
|
|
@@ -1900,7 +2031,7 @@ var GithubNamespace = class {
|
|
|
1900
2031
|
/**
|
|
1901
2032
|
* GitHub User
|
|
1902
2033
|
*
|
|
1903
|
-
* Fetch a GitHub user's public profile by handle (name, bio, company, location, followers, and repo counts)
|
|
2034
|
+
* Fetch a GitHub user's public profile by handle (name, bio, company, location, followers, and repo counts).
|
|
1904
2035
|
*
|
|
1905
2036
|
* Price: $0.002 per request.
|
|
1906
2037
|
*
|
|
@@ -1942,7 +2073,7 @@ var GithubNamespace = class {
|
|
|
1942
2073
|
/**
|
|
1943
2074
|
* GitHub User Contributions
|
|
1944
2075
|
*
|
|
1945
|
-
* Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity)
|
|
2076
|
+
* Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity).
|
|
1946
2077
|
*
|
|
1947
2078
|
* Price: $0.002 per request.
|
|
1948
2079
|
*
|
|
@@ -2042,7 +2173,7 @@ var GithubNamespace = class {
|
|
|
2042
2173
|
/**
|
|
2043
2174
|
* GitHub User Repositories
|
|
2044
2175
|
*
|
|
2045
|
-
* List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination
|
|
2176
|
+
* List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination.
|
|
2046
2177
|
*
|
|
2047
2178
|
* Price: $0.002 per request.
|
|
2048
2179
|
*
|
|
@@ -2395,7 +2526,7 @@ var InstagramNamespace = class {
|
|
|
2395
2526
|
/**
|
|
2396
2527
|
* Instagram Reels by Audio
|
|
2397
2528
|
*
|
|
2398
|
-
* List Instagram reels that use a given audio track by audio id
|
|
2529
|
+
* List Instagram reels that use a given audio track by audio id.
|
|
2399
2530
|
*
|
|
2400
2531
|
* Price: $0.002 per request.
|
|
2401
2532
|
*
|
|
@@ -2424,7 +2555,7 @@ var InstagramNamespace = class {
|
|
|
2424
2555
|
/**
|
|
2425
2556
|
* Instagram Basic Profile
|
|
2426
2557
|
*
|
|
2427
|
-
* Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id
|
|
2558
|
+
* Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id.
|
|
2428
2559
|
*
|
|
2429
2560
|
* Price: $0.002 per request.
|
|
2430
2561
|
*
|
|
@@ -2437,7 +2568,7 @@ var InstagramNamespace = class {
|
|
|
2437
2568
|
/**
|
|
2438
2569
|
* Instagram Profile Embed
|
|
2439
2570
|
*
|
|
2440
|
-
* Fetch the public embed HTML for an Instagram profile by handle
|
|
2571
|
+
* Fetch the public embed HTML for an Instagram profile by handle.
|
|
2441
2572
|
*
|
|
2442
2573
|
* Price: $0.002 per request.
|
|
2443
2574
|
*
|
|
@@ -2508,7 +2639,7 @@ var InstagramNamespace = class {
|
|
|
2508
2639
|
/**
|
|
2509
2640
|
* Instagram Hashtag Analytics
|
|
2510
2641
|
*
|
|
2511
|
-
* Get analytics for any Instagram hashtag (total post count, related hashtags, and usage signals)
|
|
2642
|
+
* Get analytics for any Instagram hashtag (total post count, related hashtags, and usage signals).
|
|
2512
2643
|
*
|
|
2513
2644
|
* Price: $0.001 per request plus $0.0017 per result (maximum $0.035).
|
|
2514
2645
|
*
|
|
@@ -2521,7 +2652,7 @@ var InstagramNamespace = class {
|
|
|
2521
2652
|
/**
|
|
2522
2653
|
* Instagram Highlight Detail
|
|
2523
2654
|
*
|
|
2524
|
-
* Fetch the details and media items of a single Instagram story highlight by id
|
|
2655
|
+
* Fetch the details and media items of a single Instagram story highlight by id.
|
|
2525
2656
|
*
|
|
2526
2657
|
* Price: $0.002 per request.
|
|
2527
2658
|
*
|
|
@@ -2534,7 +2665,7 @@ var InstagramNamespace = class {
|
|
|
2534
2665
|
/**
|
|
2535
2666
|
* Instagram Media Transcript
|
|
2536
2667
|
*
|
|
2537
|
-
* Get the spoken-audio transcript text for an Instagram post or reel by URL
|
|
2668
|
+
* Get the spoken-audio transcript text for an Instagram post or reel by URL.
|
|
2538
2669
|
*
|
|
2539
2670
|
* Price: $0.002 per request.
|
|
2540
2671
|
*
|
|
@@ -2547,7 +2678,7 @@ var InstagramNamespace = class {
|
|
|
2547
2678
|
/**
|
|
2548
2679
|
* Instagram Post
|
|
2549
2680
|
*
|
|
2550
|
-
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON
|
|
2681
|
+
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
|
|
2551
2682
|
*
|
|
2552
2683
|
* Price: $0.002 per request.
|
|
2553
2684
|
*
|
|
@@ -2560,7 +2691,7 @@ var InstagramNamespace = class {
|
|
|
2560
2691
|
/**
|
|
2561
2692
|
* Instagram Post Comments
|
|
2562
2693
|
*
|
|
2563
|
-
* List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes)
|
|
2694
|
+
* List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
|
|
2564
2695
|
*
|
|
2565
2696
|
* Price: $0.002 per request.
|
|
2566
2697
|
*
|
|
@@ -2573,7 +2704,7 @@ var InstagramNamespace = class {
|
|
|
2573
2704
|
/**
|
|
2574
2705
|
* Instagram Profile
|
|
2575
2706
|
*
|
|
2576
|
-
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle
|
|
2707
|
+
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
2577
2708
|
*
|
|
2578
2709
|
* Price: $0.002 per request.
|
|
2579
2710
|
*
|
|
@@ -2599,7 +2730,7 @@ var InstagramNamespace = class {
|
|
|
2599
2730
|
/**
|
|
2600
2731
|
* Instagram Reels Search
|
|
2601
2732
|
*
|
|
2602
|
-
* Search Instagram Reels by keyword and get matching reels (caption, views, likes, creator, and duration)
|
|
2733
|
+
* Search Instagram Reels by keyword and get matching reels (caption, views, likes, creator, and duration). Paging tops out around 110 reels per query (11 pages of 10).
|
|
2603
2734
|
*
|
|
2604
2735
|
* Price: $0.002 per request.
|
|
2605
2736
|
*
|
|
@@ -2625,7 +2756,7 @@ var InstagramNamespace = class {
|
|
|
2625
2756
|
/**
|
|
2626
2757
|
* Instagram Hashtag Search
|
|
2627
2758
|
*
|
|
2628
|
-
*
|
|
2759
|
+
* Search Instagram posts under a hashtag (caption, type, media URL). Results are relevance-ranked by Instagram, not date-ordered, so a page can mix recent and older posts.
|
|
2629
2760
|
*
|
|
2630
2761
|
* Price: $0.002 per request.
|
|
2631
2762
|
*
|
|
@@ -2638,7 +2769,7 @@ var InstagramNamespace = class {
|
|
|
2638
2769
|
/**
|
|
2639
2770
|
* Instagram Profile Search
|
|
2640
2771
|
*
|
|
2641
|
-
* Search public Instagram profiles by a bio or caption keyword
|
|
2772
|
+
* Search public Instagram profiles by a bio or caption keyword.
|
|
2642
2773
|
*
|
|
2643
2774
|
* Price: $0.002 per request.
|
|
2644
2775
|
*
|
|
@@ -2693,7 +2824,7 @@ var InstagramNamespace = class {
|
|
|
2693
2824
|
/**
|
|
2694
2825
|
* Instagram Trending Reels
|
|
2695
2826
|
*
|
|
2696
|
-
* List currently trending Instagram reels
|
|
2827
|
+
* List currently trending Instagram reels.
|
|
2697
2828
|
*
|
|
2698
2829
|
* Price: $0.002 per request.
|
|
2699
2830
|
*
|
|
@@ -2706,7 +2837,7 @@ var InstagramNamespace = class {
|
|
|
2706
2837
|
/**
|
|
2707
2838
|
* Instagram User Highlights
|
|
2708
2839
|
*
|
|
2709
|
-
* List an Instagram account's story highlight reels by handle
|
|
2840
|
+
* List an Instagram account's story highlight reels by handle.
|
|
2710
2841
|
*
|
|
2711
2842
|
* Price: $0.002 per request.
|
|
2712
2843
|
*
|
|
@@ -2719,7 +2850,7 @@ var InstagramNamespace = class {
|
|
|
2719
2850
|
/**
|
|
2720
2851
|
* Instagram User Posts
|
|
2721
2852
|
*
|
|
2722
|
-
* List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination
|
|
2853
|
+
* List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
|
|
2723
2854
|
*
|
|
2724
2855
|
* Price: $0.002 per request.
|
|
2725
2856
|
*
|
|
@@ -2748,7 +2879,7 @@ var InstagramNamespace = class {
|
|
|
2748
2879
|
/**
|
|
2749
2880
|
* Instagram User Reels
|
|
2750
2881
|
*
|
|
2751
|
-
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments)
|
|
2882
|
+
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
|
|
2752
2883
|
*
|
|
2753
2884
|
* Price: $0.002 per request.
|
|
2754
2885
|
*
|
|
@@ -2928,7 +3059,7 @@ var LinkedinNamespace = class {
|
|
|
2928
3059
|
/**
|
|
2929
3060
|
* LinkedIn Post
|
|
2930
3061
|
*
|
|
2931
|
-
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date)
|
|
3062
|
+
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
2932
3063
|
*
|
|
2933
3064
|
* Price: $0.001 per request.
|
|
2934
3065
|
*
|
|
@@ -3019,7 +3150,7 @@ var LinkedinNamespace = class {
|
|
|
3019
3150
|
/**
|
|
3020
3151
|
* LinkedIn Post Search
|
|
3021
3152
|
*
|
|
3022
|
-
* Search public LinkedIn posts by keyword (text, link, publish date)
|
|
3153
|
+
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
3023
3154
|
*
|
|
3024
3155
|
* Price: $0.002 per request.
|
|
3025
3156
|
*
|
|
@@ -3291,7 +3422,7 @@ var RedditNamespace = class {
|
|
|
3291
3422
|
/**
|
|
3292
3423
|
* Reddit Post Comments
|
|
3293
3424
|
*
|
|
3294
|
-
* List the top-level comments on a Reddit post by URL (author, body, score, timestamp)
|
|
3425
|
+
* List the top-level comments on a Reddit post by URL (author, body, score, timestamp).
|
|
3295
3426
|
*
|
|
3296
3427
|
* Price: $0.002 per request.
|
|
3297
3428
|
*
|
|
@@ -3304,7 +3435,7 @@ var RedditNamespace = class {
|
|
|
3304
3435
|
/**
|
|
3305
3436
|
* Reddit Post Transcript
|
|
3306
3437
|
*
|
|
3307
|
-
* Extract the spoken transcript from a Reddit video post by URL
|
|
3438
|
+
* Extract the spoken transcript from a Reddit video post by URL.
|
|
3308
3439
|
*
|
|
3309
3440
|
* Price: $0.002 per request.
|
|
3310
3441
|
*
|
|
@@ -3317,7 +3448,7 @@ var RedditNamespace = class {
|
|
|
3317
3448
|
/**
|
|
3318
3449
|
* Reddit Search
|
|
3319
3450
|
*
|
|
3320
|
-
* Search Reddit posts across all subreddits by query
|
|
3451
|
+
* Search Reddit posts across all subreddits by query.
|
|
3321
3452
|
*
|
|
3322
3453
|
* Price: $0.001 per request.
|
|
3323
3454
|
*
|
|
@@ -3346,7 +3477,7 @@ var RedditNamespace = class {
|
|
|
3346
3477
|
/**
|
|
3347
3478
|
* Reddit Subreddit Details
|
|
3348
3479
|
*
|
|
3349
|
-
* Fetch a subreddit's metadata (weekly active users, description, and category)
|
|
3480
|
+
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
3350
3481
|
*
|
|
3351
3482
|
* Price: $0.001 per request.
|
|
3352
3483
|
*
|
|
@@ -3359,7 +3490,7 @@ var RedditNamespace = class {
|
|
|
3359
3490
|
/**
|
|
3360
3491
|
* Reddit Subreddit Posts
|
|
3361
3492
|
*
|
|
3362
|
-
* Fetch posts from a subreddit listing (hot, new, or top)
|
|
3493
|
+
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
3363
3494
|
*
|
|
3364
3495
|
* Price: $0.002 per request.
|
|
3365
3496
|
*
|
|
@@ -3372,7 +3503,7 @@ var RedditNamespace = class {
|
|
|
3372
3503
|
/**
|
|
3373
3504
|
* Reddit Subreddit Search
|
|
3374
3505
|
*
|
|
3375
|
-
* Search posts within a single subreddit by query, sort, and timeframe
|
|
3506
|
+
* Search posts within a single subreddit by query, sort, and timeframe.
|
|
3376
3507
|
*
|
|
3377
3508
|
* Price: $0.002 per request.
|
|
3378
3509
|
*
|
|
@@ -4050,7 +4181,7 @@ var TiktokNamespace = class {
|
|
|
4050
4181
|
/**
|
|
4051
4182
|
* TikTok Ad Library Ad
|
|
4052
4183
|
*
|
|
4053
|
-
* Fetch full details for a single TikTok ad (brand, title, spend, CTR, objectives, landing page, and video info)
|
|
4184
|
+
* Fetch full details for a single TikTok ad (brand, title, spend, CTR, objectives, landing page, and video info).
|
|
4054
4185
|
*
|
|
4055
4186
|
* Price: $0.002 per request.
|
|
4056
4187
|
*
|
|
@@ -4063,7 +4194,7 @@ var TiktokNamespace = class {
|
|
|
4063
4194
|
/**
|
|
4064
4195
|
* TikTok Ad Library Search
|
|
4065
4196
|
*
|
|
4066
|
-
* Search TikTok's ad library by keyword (top ads with brand, title, spend, CTR, likes, and video info)
|
|
4197
|
+
* Search TikTok's ad library by keyword (top ads with brand, title, spend, CTR, likes, and video info).
|
|
4067
4198
|
*
|
|
4068
4199
|
* Price: $0.002 per request.
|
|
4069
4200
|
*
|
|
@@ -4092,7 +4223,7 @@ var TiktokNamespace = class {
|
|
|
4092
4223
|
/**
|
|
4093
4224
|
* TikTok Audience Demographics
|
|
4094
4225
|
*
|
|
4095
|
-
* Get the audience country breakdown (follower count and share per country) for a TikTok creator by handle
|
|
4226
|
+
* Get the audience country breakdown (follower count and share per country) for a TikTok creator by handle.
|
|
4096
4227
|
*
|
|
4097
4228
|
* Price: $0.01625 per request.
|
|
4098
4229
|
*
|
|
@@ -4105,7 +4236,7 @@ var TiktokNamespace = class {
|
|
|
4105
4236
|
/**
|
|
4106
4237
|
* TikTok Comment Replies
|
|
4107
4238
|
*
|
|
4108
|
-
* List the replies to a TikTok comment with cursor pagination (text, author, likes)
|
|
4239
|
+
* List the replies to a TikTok comment with cursor pagination (text, author, likes).
|
|
4109
4240
|
*
|
|
4110
4241
|
* Price: $0.002 per request.
|
|
4111
4242
|
*
|
|
@@ -4163,7 +4294,7 @@ var TiktokNamespace = class {
|
|
|
4163
4294
|
/**
|
|
4164
4295
|
* TikTok Following
|
|
4165
4296
|
*
|
|
4166
|
-
* List the accounts a TikTok user follows (handle, display name, follower count, bio) by username
|
|
4297
|
+
* List the accounts a TikTok user follows (handle, display name, follower count, bio) by username.
|
|
4167
4298
|
*
|
|
4168
4299
|
* Price: $0.002 per request.
|
|
4169
4300
|
*
|
|
@@ -4176,7 +4307,7 @@ var TiktokNamespace = class {
|
|
|
4176
4307
|
/**
|
|
4177
4308
|
* TikTok Hashtag Videos
|
|
4178
4309
|
*
|
|
4179
|
-
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares)
|
|
4310
|
+
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares).
|
|
4180
4311
|
*
|
|
4181
4312
|
* Price: $0.00325 per request.
|
|
4182
4313
|
*
|
|
@@ -4189,7 +4320,7 @@ var TiktokNamespace = class {
|
|
|
4189
4320
|
/**
|
|
4190
4321
|
* TikTok Live
|
|
4191
4322
|
*
|
|
4192
|
-
* Check whether a TikTok creator is live and get the current live room (title, viewers, start time) by handle
|
|
4323
|
+
* Check whether a TikTok creator is live and get the current live room (title, viewers, start time) by handle.
|
|
4193
4324
|
*
|
|
4194
4325
|
* Price: $0.002 per request.
|
|
4195
4326
|
*
|
|
@@ -4202,7 +4333,7 @@ var TiktokNamespace = class {
|
|
|
4202
4333
|
/**
|
|
4203
4334
|
* TikTok Profile
|
|
4204
4335
|
*
|
|
4205
|
-
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle
|
|
4336
|
+
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
4206
4337
|
*
|
|
4207
4338
|
* Price: $0.001 per request.
|
|
4208
4339
|
*
|
|
@@ -4215,7 +4346,7 @@ var TiktokNamespace = class {
|
|
|
4215
4346
|
/**
|
|
4216
4347
|
* TikTok Profile Region
|
|
4217
4348
|
*
|
|
4218
|
-
* Resolve the home region (country) of a TikTok creator by handle
|
|
4349
|
+
* Resolve the home region (country) of a TikTok creator by handle.
|
|
4219
4350
|
*
|
|
4220
4351
|
* Price: $0.002 per request.
|
|
4221
4352
|
*
|
|
@@ -4228,7 +4359,7 @@ var TiktokNamespace = class {
|
|
|
4228
4359
|
/**
|
|
4229
4360
|
* TikTok Profile Videos
|
|
4230
4361
|
*
|
|
4231
|
-
* List a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination
|
|
4362
|
+
* List a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination.
|
|
4232
4363
|
*
|
|
4233
4364
|
* Price: $0.001 per request.
|
|
4234
4365
|
*
|
|
@@ -4257,7 +4388,7 @@ var TiktokNamespace = class {
|
|
|
4257
4388
|
/**
|
|
4258
4389
|
* TikTok Hashtag Search
|
|
4259
4390
|
*
|
|
4260
|
-
* Search TikTok by hashtag and get matching videos (caption, views, likes, comments, shares) as normalized JSON
|
|
4391
|
+
* Search TikTok by hashtag and get matching videos (caption, views, likes, comments, shares) as normalized JSON.
|
|
4261
4392
|
*
|
|
4262
4393
|
* Price: $0.002 per request.
|
|
4263
4394
|
*
|
|
@@ -4270,7 +4401,7 @@ var TiktokNamespace = class {
|
|
|
4270
4401
|
/**
|
|
4271
4402
|
* TikTok Keyword Search
|
|
4272
4403
|
*
|
|
4273
|
-
* Search TikTok by keyword and get matching videos (caption, views, likes, comments, shares) as normalized JSON
|
|
4404
|
+
* Search TikTok by keyword and get matching videos (caption, views, likes, comments, shares) as normalized JSON.
|
|
4274
4405
|
*
|
|
4275
4406
|
* Price: $0.001 per request.
|
|
4276
4407
|
*
|
|
@@ -4283,7 +4414,7 @@ var TiktokNamespace = class {
|
|
|
4283
4414
|
/**
|
|
4284
4415
|
* TikTok Top Search
|
|
4285
4416
|
*
|
|
4286
|
-
* Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination
|
|
4417
|
+
* Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.
|
|
4287
4418
|
*
|
|
4288
4419
|
* Price: $0.002 per request.
|
|
4289
4420
|
*
|
|
@@ -4312,7 +4443,7 @@ var TiktokNamespace = class {
|
|
|
4312
4443
|
/**
|
|
4313
4444
|
* TikTok User Search
|
|
4314
4445
|
*
|
|
4315
|
-
* Search TikTok accounts by keyword (handle, nickname, follower count) with cursor pagination
|
|
4446
|
+
* Search TikTok accounts by keyword (handle, nickname, follower count) with cursor pagination.
|
|
4316
4447
|
*
|
|
4317
4448
|
* Price: $0.001 per request.
|
|
4318
4449
|
*
|
|
@@ -4341,7 +4472,7 @@ var TiktokNamespace = class {
|
|
|
4341
4472
|
/**
|
|
4342
4473
|
* TikTok Song
|
|
4343
4474
|
*
|
|
4344
|
-
* Fetch details for a TikTok song or sound (title, author, duration, cover art, and how many videos use it)
|
|
4475
|
+
* Fetch details for a TikTok song or sound (title, author, duration, cover art, and how many videos use it).
|
|
4345
4476
|
*
|
|
4346
4477
|
* Price: $0.002 per request.
|
|
4347
4478
|
*
|
|
@@ -4354,7 +4485,7 @@ var TiktokNamespace = class {
|
|
|
4354
4485
|
/**
|
|
4355
4486
|
* TikTok Song Videos
|
|
4356
4487
|
*
|
|
4357
|
-
* List TikTok videos that use a given song or sound (with descriptions, authors, and engagement stats)
|
|
4488
|
+
* List TikTok videos that use a given song or sound (with descriptions, authors, and engagement stats).
|
|
4358
4489
|
*
|
|
4359
4490
|
* Price: $0.002 per request.
|
|
4360
4491
|
*
|
|
@@ -4383,7 +4514,7 @@ var TiktokNamespace = class {
|
|
|
4383
4514
|
/**
|
|
4384
4515
|
* TikTok Trending Feed
|
|
4385
4516
|
*
|
|
4386
|
-
* Get TikTok's trending feed for a region (caption, views, likes, comments, author) as normalized JSON
|
|
4517
|
+
* Get TikTok's trending feed for a region (caption, views, likes, comments, author) as normalized JSON.
|
|
4387
4518
|
*
|
|
4388
4519
|
* Price: $0.002 per request.
|
|
4389
4520
|
*
|
|
@@ -4396,7 +4527,7 @@ var TiktokNamespace = class {
|
|
|
4396
4527
|
/**
|
|
4397
4528
|
* TikTok Video
|
|
4398
4529
|
*
|
|
4399
|
-
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves)
|
|
4530
|
+
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves).
|
|
4400
4531
|
*
|
|
4401
4532
|
* Price: $0.001 per request.
|
|
4402
4533
|
*
|
|
@@ -4409,7 +4540,7 @@ var TiktokNamespace = class {
|
|
|
4409
4540
|
/**
|
|
4410
4541
|
* TikTok Video Comments
|
|
4411
4542
|
*
|
|
4412
|
-
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count)
|
|
4543
|
+
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
4413
4544
|
*
|
|
4414
4545
|
* Price: $0.002 per request.
|
|
4415
4546
|
*
|
|
@@ -4438,7 +4569,7 @@ var TiktokNamespace = class {
|
|
|
4438
4569
|
/**
|
|
4439
4570
|
* TikTok Video Transcript
|
|
4440
4571
|
*
|
|
4441
|
-
* Fetch the spoken-word transcript of a TikTok video by URL
|
|
4572
|
+
* Fetch the spoken-word transcript of a TikTok video by URL.
|
|
4442
4573
|
*
|
|
4443
4574
|
* Price: $0.002 per request.
|
|
4444
4575
|
*
|
|
@@ -4472,7 +4603,7 @@ var TiktokShopNamespace = class {
|
|
|
4472
4603
|
/**
|
|
4473
4604
|
* TikTok Shop Product Reviews
|
|
4474
4605
|
*
|
|
4475
|
-
* Fetch customer reviews for a TikTok Shop product by URL (rating, text, reviewer, country, and verified-purchase flag)
|
|
4606
|
+
* Fetch customer reviews for a TikTok Shop product by URL (rating, text, reviewer, country, and verified-purchase flag).
|
|
4476
4607
|
*
|
|
4477
4608
|
* Price: $0.002 per request.
|
|
4478
4609
|
*
|
|
@@ -4498,7 +4629,7 @@ var TiktokShopNamespace = class {
|
|
|
4498
4629
|
/**
|
|
4499
4630
|
* TikTok Shop Store Products
|
|
4500
4631
|
*
|
|
4501
|
-
* List every product of a TikTok Shop store by URL (title, price, sales, and rating per product plus shop-level stats) with cursor pagination
|
|
4632
|
+
* List every product of a TikTok Shop store by URL (title, price, sales, and rating per product plus shop-level stats) with cursor pagination.
|
|
4502
4633
|
*
|
|
4503
4634
|
* Price: $0.002 per request.
|
|
4504
4635
|
*
|
|
@@ -4527,7 +4658,7 @@ var TiktokShopNamespace = class {
|
|
|
4527
4658
|
/**
|
|
4528
4659
|
* TikTok Shop User Showcase
|
|
4529
4660
|
*
|
|
4530
|
-
* List the TikTok Shop products a creator showcases (title, price, rating, and sales per product)
|
|
4661
|
+
* List the TikTok Shop products a creator showcases (title, price, rating, and sales per product).
|
|
4531
4662
|
*
|
|
4532
4663
|
* Price: $0.002 per request.
|
|
4533
4664
|
*
|
|
@@ -4679,7 +4810,7 @@ var TwitterNamespace = class {
|
|
|
4679
4810
|
/**
|
|
4680
4811
|
* Twitter Community
|
|
4681
4812
|
*
|
|
4682
|
-
* Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL
|
|
4813
|
+
* Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
|
|
4683
4814
|
*
|
|
4684
4815
|
* Price: $0.002 per request.
|
|
4685
4816
|
*
|
|
@@ -4692,7 +4823,7 @@ var TwitterNamespace = class {
|
|
|
4692
4823
|
/**
|
|
4693
4824
|
* Twitter Community Tweets
|
|
4694
4825
|
*
|
|
4695
|
-
* List recent tweets posted in a Twitter/X community by URL
|
|
4826
|
+
* List recent tweets posted in a Twitter/X community by URL.
|
|
4696
4827
|
*
|
|
4697
4828
|
* Price: $0.002 per request.
|
|
4698
4829
|
*
|
|
@@ -4763,7 +4894,7 @@ var TwitterNamespace = class {
|
|
|
4763
4894
|
/**
|
|
4764
4895
|
* Twitter Profile
|
|
4765
4896
|
*
|
|
4766
|
-
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle
|
|
4897
|
+
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
4767
4898
|
*
|
|
4768
4899
|
* Price: $0.00075 per request.
|
|
4769
4900
|
*
|
|
@@ -4831,7 +4962,7 @@ var TwitterNamespace = class {
|
|
|
4831
4962
|
/**
|
|
4832
4963
|
* Twitter Tweet
|
|
4833
4964
|
*
|
|
4834
|
-
* Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views)
|
|
4965
|
+
* Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
|
|
4835
4966
|
*
|
|
4836
4967
|
* Price: $0.00075 per request.
|
|
4837
4968
|
*
|
|
@@ -4844,7 +4975,7 @@ var TwitterNamespace = class {
|
|
|
4844
4975
|
/**
|
|
4845
4976
|
* Twitter Tweet Transcript
|
|
4846
4977
|
*
|
|
4847
|
-
* Extract the spoken transcript from a Twitter/X video tweet by URL
|
|
4978
|
+
* Extract the spoken transcript from a Twitter/X video tweet by URL.
|
|
4848
4979
|
*
|
|
4849
4980
|
* Price: $0.002 per request.
|
|
4850
4981
|
*
|
|
@@ -5206,7 +5337,7 @@ var YoutubeNamespace = class {
|
|
|
5206
5337
|
/**
|
|
5207
5338
|
* YouTube Channel
|
|
5208
5339
|
*
|
|
5209
|
-
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID
|
|
5340
|
+
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
5210
5341
|
*
|
|
5211
5342
|
* Price: $0.002 per request.
|
|
5212
5343
|
*
|
|
@@ -5219,7 +5350,7 @@ var YoutubeNamespace = class {
|
|
|
5219
5350
|
/**
|
|
5220
5351
|
* YouTube Channel Community Posts
|
|
5221
5352
|
*
|
|
5222
|
-
* List a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time)
|
|
5353
|
+
* List a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time).
|
|
5223
5354
|
*
|
|
5224
5355
|
* Price: $0.002 per request.
|
|
5225
5356
|
*
|
|
@@ -5248,7 +5379,7 @@ var YoutubeNamespace = class {
|
|
|
5248
5379
|
/**
|
|
5249
5380
|
* YouTube Channel Live Streams
|
|
5250
5381
|
*
|
|
5251
|
-
* List a YouTube channel's live and past-live streams by handle or channel ID with cursor pagination (title, views, length, publish time)
|
|
5382
|
+
* List a YouTube channel's live and past-live streams by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
5252
5383
|
*
|
|
5253
5384
|
* Price: $0.002 per request.
|
|
5254
5385
|
*
|
|
@@ -5277,7 +5408,7 @@ var YoutubeNamespace = class {
|
|
|
5277
5408
|
/**
|
|
5278
5409
|
* YouTube Channel Playlists
|
|
5279
5410
|
*
|
|
5280
|
-
* List a YouTube channel's playlists by handle or channel ID with cursor pagination (title, video count, thumbnail)
|
|
5411
|
+
* List a YouTube channel's playlists by handle or channel ID with cursor pagination (title, video count, thumbnail).
|
|
5281
5412
|
*
|
|
5282
5413
|
* Price: $0.002 per request.
|
|
5283
5414
|
*
|
|
@@ -5306,7 +5437,7 @@ var YoutubeNamespace = class {
|
|
|
5306
5437
|
/**
|
|
5307
5438
|
* YouTube Channel Shorts
|
|
5308
5439
|
*
|
|
5309
|
-
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination (title, views, likes, duration)
|
|
5440
|
+
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination (title, views, likes, duration).
|
|
5310
5441
|
*
|
|
5311
5442
|
* Price: $0.002 per request.
|
|
5312
5443
|
*
|
|
@@ -5335,7 +5466,7 @@ var YoutubeNamespace = class {
|
|
|
5335
5466
|
/**
|
|
5336
5467
|
* YouTube Channel Videos
|
|
5337
5468
|
*
|
|
5338
|
-
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time)
|
|
5469
|
+
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
5339
5470
|
*
|
|
5340
5471
|
* Price: $0.002 per request.
|
|
5341
5472
|
*
|
|
@@ -5364,7 +5495,7 @@ var YoutubeNamespace = class {
|
|
|
5364
5495
|
/**
|
|
5365
5496
|
* YouTube Comment Replies
|
|
5366
5497
|
*
|
|
5367
|
-
* List replies to a YouTube comment using a continuation token with cursor pagination (text, author, likes, publish time)
|
|
5498
|
+
* List replies to a YouTube comment using a continuation token with cursor pagination (text, author, likes, publish time).
|
|
5368
5499
|
*
|
|
5369
5500
|
* Price: $0.002 per request.
|
|
5370
5501
|
*
|
|
@@ -5377,7 +5508,7 @@ var YoutubeNamespace = class {
|
|
|
5377
5508
|
/**
|
|
5378
5509
|
* YouTube Community Post
|
|
5379
5510
|
*
|
|
5380
|
-
* Fetch a single YouTube community post by URL (text, images, channel, publish time)
|
|
5511
|
+
* Fetch a single YouTube community post by URL (text, images, channel, publish time).
|
|
5381
5512
|
*
|
|
5382
5513
|
* Price: $0.002 per request.
|
|
5383
5514
|
*
|
|
@@ -5390,7 +5521,7 @@ var YoutubeNamespace = class {
|
|
|
5390
5521
|
/**
|
|
5391
5522
|
* YouTube Playlist
|
|
5392
5523
|
*
|
|
5393
|
-
* List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals)
|
|
5524
|
+
* List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals).
|
|
5394
5525
|
*
|
|
5395
5526
|
* Price: $0.002 per request.
|
|
5396
5527
|
*
|
|
@@ -5403,7 +5534,7 @@ var YoutubeNamespace = class {
|
|
|
5403
5534
|
/**
|
|
5404
5535
|
* YouTube Search
|
|
5405
5536
|
*
|
|
5406
|
-
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON
|
|
5537
|
+
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
5407
5538
|
*
|
|
5408
5539
|
* Price: $0.002 per request.
|
|
5409
5540
|
*
|
|
@@ -5416,7 +5547,7 @@ var YoutubeNamespace = class {
|
|
|
5416
5547
|
/**
|
|
5417
5548
|
* YouTube Hashtag Search
|
|
5418
5549
|
*
|
|
5419
|
-
* Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time)
|
|
5550
|
+
* Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).
|
|
5420
5551
|
*
|
|
5421
5552
|
* Price: $0.002 per request.
|
|
5422
5553
|
*
|
|
@@ -5445,7 +5576,7 @@ var YoutubeNamespace = class {
|
|
|
5445
5576
|
/**
|
|
5446
5577
|
* YouTube Trending Shorts
|
|
5447
5578
|
*
|
|
5448
|
-
* List currently trending YouTube Shorts (title, channel, views, likes, duration)
|
|
5579
|
+
* List currently trending YouTube Shorts (title, channel, views, likes, duration).
|
|
5449
5580
|
*
|
|
5450
5581
|
* Price: $0.002 per request.
|
|
5451
5582
|
*
|
|
@@ -5458,7 +5589,7 @@ var YoutubeNamespace = class {
|
|
|
5458
5589
|
/**
|
|
5459
5590
|
* YouTube Video
|
|
5460
5591
|
*
|
|
5461
|
-
* Fetch a YouTube video's metadata (title, channel, views, likes, duration, publish date) by URL or ID
|
|
5592
|
+
* Fetch a YouTube video's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
5462
5593
|
*
|
|
5463
5594
|
* Price: $0.002 per request.
|
|
5464
5595
|
*
|
|
@@ -5471,7 +5602,7 @@ var YoutubeNamespace = class {
|
|
|
5471
5602
|
/**
|
|
5472
5603
|
* YouTube Video Comments
|
|
5473
5604
|
*
|
|
5474
|
-
* List the comments on a YouTube video by URL with cursor pagination (text, author, likes, reply count)
|
|
5605
|
+
* List the comments on a YouTube video by URL with cursor pagination (text, author, likes, reply count).
|
|
5475
5606
|
*
|
|
5476
5607
|
* Price: $0.002 per request.
|
|
5477
5608
|
*
|
|
@@ -5500,7 +5631,7 @@ var YoutubeNamespace = class {
|
|
|
5500
5631
|
/**
|
|
5501
5632
|
* YouTube Video Sponsors
|
|
5502
5633
|
*
|
|
5503
|
-
* Detect suspected sponsors and paid promotions in a YouTube video by URL (sponsor names, websites, confidence)
|
|
5634
|
+
* Detect suspected sponsors and paid promotions in a YouTube video by URL (sponsor names, websites, confidence).
|
|
5504
5635
|
*
|
|
5505
5636
|
* Price: $0.002 per request.
|
|
5506
5637
|
*
|
|
@@ -5513,7 +5644,7 @@ var YoutubeNamespace = class {
|
|
|
5513
5644
|
/**
|
|
5514
5645
|
* YouTube Video Transcript
|
|
5515
5646
|
*
|
|
5516
|
-
* Fetch the transcript/captions of a YouTube video by URL or ID
|
|
5647
|
+
* Fetch the transcript/captions of a YouTube video by URL or ID.
|
|
5517
5648
|
*
|
|
5518
5649
|
* Price: $0.002 per request.
|
|
5519
5650
|
*
|