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.
@@ -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. Each request costs 1 credit,
382
- * however many trends it returns.
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
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
- export const VERSION = '0.14.0';
5
+ export const VERSION = '0.15.0';
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.14.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.14.0";
1
+ export declare const VERSION = "0.15.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VERSION = void 0;
7
- exports.VERSION = '0.14.0';
7
+ exports.VERSION = '0.15.0';
8
8
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // SPDX-FileCopyrightText: 2026 Xquik contributors
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- export const VERSION = '0.14.0';
4
+ export const VERSION = '0.15.0';
5
5
  //# sourceMappingURL=version.mjs.map