x-twitter-scraper 0.14.0 → 0.15.0
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 +9 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +3 -2
- package/client.js.map +1 -1
- package/client.mjs +3 -2
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/x/spaces.d.mts +16 -11
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +16 -11
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js +4 -3
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs +4 -3
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/x.d.mts +24 -2
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +24 -2
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -2
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -2
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +4 -2
- package/src/resources/x/spaces.ts +16 -11
- package/src/resources/x/x.ts +27 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/x/x.ts
CHANGED
|
@@ -378,8 +378,10 @@ export class X extends APIResource {
|
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* Returns X's current trends for a place you choose. Pick it by woeid, country or
|
|
381
|
-
* location name. Without one, trends are worldwide.
|
|
382
|
-
*
|
|
381
|
+
* location name. Without one, trends are worldwide. Add at to read what was
|
|
382
|
+
* trending on Twitter at a past time, such as yesterday. Xquik keeps a Twitter
|
|
383
|
+
* trends archive from 2026-10-13 02:20 UTC on, with 1 list per place every 5
|
|
384
|
+
* minutes. Each request costs 1 credit, however many trends it returns.
|
|
383
385
|
*
|
|
384
386
|
* @example
|
|
385
387
|
* ```ts
|
|
@@ -1125,11 +1127,23 @@ export interface XGetTrendsResponse {
|
|
|
1125
1127
|
|
|
1126
1128
|
woeid: number;
|
|
1127
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* When Xquik read this list from X. It comes from the stored list and is never
|
|
1132
|
+
* estimated.
|
|
1133
|
+
*/
|
|
1134
|
+
capturedAt?: string;
|
|
1135
|
+
|
|
1128
1136
|
/**
|
|
1129
1137
|
* The place country or location named. Absent when woeid picked the place or the
|
|
1130
1138
|
* request named none.
|
|
1131
1139
|
*/
|
|
1132
1140
|
location?: XGetTrendsResponse.Location;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* The time at asked for, as Xquik read it. A span such as 24h shows here as the
|
|
1144
|
+
* time it counted back to. Present only with at.
|
|
1145
|
+
*/
|
|
1146
|
+
requestedAt?: string;
|
|
1133
1147
|
}
|
|
1134
1148
|
|
|
1135
1149
|
export namespace XGetTrendsResponse {
|
|
@@ -1679,6 +1693,17 @@ export interface XGetTrendLocationsParams {
|
|
|
1679
1693
|
}
|
|
1680
1694
|
|
|
1681
1695
|
export interface XGetTrendsParams {
|
|
1696
|
+
/**
|
|
1697
|
+
* A past time, to read what was trending on Twitter then. Takes an ISO 8601 time,
|
|
1698
|
+
* a date such as 2026-10-13, or Unix seconds. A time without a zone reads as UTC.
|
|
1699
|
+
* It also takes a span back from now, as a number & s, m, h or d. So at=24h reads
|
|
1700
|
+
* what was trending on Twitter yesterday at this hour, on every run of a schedule.
|
|
1701
|
+
* The answer is the stored list nearest that time, with its own time in
|
|
1702
|
+
* capturedAt. History starts 2026-10-13 02:20 UTC. A time over 24 hours from every
|
|
1703
|
+
* stored list answers 400 at no charge.
|
|
1704
|
+
*/
|
|
1705
|
+
at?: string;
|
|
1706
|
+
|
|
1682
1707
|
/**
|
|
1683
1708
|
* Number of trending topics to return (1-50, default 30)
|
|
1684
1709
|
*/
|
package/src/version.ts
CHANGED
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.15.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.15.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED