x-twitter-scraper 0.13.1 → 0.13.3
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 +21 -0
- package/README.md +25 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js.map +1 -1
- package/internal/decoders/line.d.mts.map +1 -1
- package/internal/decoders/line.d.ts.map +1 -1
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/to-file.js.map +1 -1
- package/internal/tslib.js +50 -74
- package/internal/tslib.mjs +12 -15
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/bytes.js.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js.map +1 -1
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js.map +1 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts.map +1 -1
- package/resources/guest-wallets.d.ts.map +1 -1
- package/resources/guest-wallets.js.map +1 -1
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/keywords.js.map +1 -1
- package/resources/monitors/keywords.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/attachments.d.mts.map +1 -1
- package/resources/support/attachments.d.ts.map +1 -1
- package/resources/support/attachments.js.map +1 -1
- package/resources/support/attachments.mjs.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.js.map +1 -1
- package/resources/x/account-connection-challenges.d.mts.map +1 -1
- package/resources/x/account-connection-challenges.d.ts.map +1 -1
- package/resources/x/account-connection-challenges.js.map +1 -1
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/analysis.d.mts.map +1 -1
- package/resources/x/analysis.d.ts.map +1 -1
- package/resources/x/analysis.js.map +1 -1
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/broadcasts.js.map +1 -1
- package/resources/x/broadcasts.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/media.d.mts.map +1 -1
- package/resources/x/communities/media.d.ts.map +1 -1
- package/resources/x/communities/media.js.map +1 -1
- package/resources/x/communities/media.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js.map +1 -1
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js.map +1 -1
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js.map +1 -1
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/write-actions.js.map +1 -1
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/SKILL.md +16 -16
- package/skills/x-twitter-scraper/references/api-endpoints-api-keys.md +3 -3
- package/skills/x-twitter-scraper/references/api-endpoints-compose.md +5 -5
- package/skills/x-twitter-scraper/references/api-endpoints-credits.md +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-drafts.md +9 -9
- package/skills/x-twitter-scraper/references/api-endpoints-draws.md +4 -4
- package/skills/x-twitter-scraper/references/api-endpoints-error-codes.md +3 -3
- package/skills/x-twitter-scraper/references/api-endpoints-events.md +3 -3
- package/skills/x-twitter-scraper/references/api-endpoints-extractions.md +7 -7
- package/skills/x-twitter-scraper/references/api-endpoints-monitors.md +6 -6
- package/skills/x-twitter-scraper/references/api-endpoints-radar.md +7 -7
- package/skills/x-twitter-scraper/references/api-endpoints-support.md +4 -4
- package/skills/x-twitter-scraper/references/api-endpoints-trends.md +3 -3
- package/skills/x-twitter-scraper/references/api-endpoints-tweet-style-cache.md +15 -15
- package/skills/x-twitter-scraper/references/api-endpoints-webhooks.md +5 -5
- package/skills/x-twitter-scraper/references/api-endpoints-x-accounts.md +3 -3
- package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +6 -6
- package/skills/x-twitter-scraper/references/api-endpoints-x-media.md +4 -4
- package/skills/x-twitter-scraper/references/api-endpoints-x-write.md +27 -27
- package/skills/x-twitter-scraper/references/api-endpoints.md +1 -1
- package/skills/x-twitter-scraper/references/draws.md +2 -2
- package/skills/x-twitter-scraper/references/extractions.md +17 -17
- package/skills/x-twitter-scraper/references/mcp-setup.md +21 -21
- package/skills/x-twitter-scraper/references/mcp-tools.md +18 -18
- package/skills/x-twitter-scraper/references/security.md +13 -13
- package/skills/x-twitter-scraper/references/types-account-identity.md +1 -1
- package/skills/x-twitter-scraper/references/types-account.md +1 -1
- package/skills/x-twitter-scraper/references/types-api-keys.md +1 -1
- package/skills/x-twitter-scraper/references/types-bookmarks-and-timeline.md +1 -1
- package/skills/x-twitter-scraper/references/types-credits.md +1 -1
- package/skills/x-twitter-scraper/references/types-download-media.md +1 -1
- package/skills/x-twitter-scraper/references/types-draws.md +1 -1
- package/skills/x-twitter-scraper/references/types-error.md +1 -1
- package/skills/x-twitter-scraper/references/types-events.md +1 -1
- package/skills/x-twitter-scraper/references/types-extractions.md +1 -1
- package/skills/x-twitter-scraper/references/types-monitors.md +1 -1
- package/skills/x-twitter-scraper/references/types-radar.md +1 -1
- package/skills/x-twitter-scraper/references/types-request-bodies.md +1 -1
- package/skills/x-twitter-scraper/references/types-support.md +1 -1
- package/skills/x-twitter-scraper/references/types-trends.md +1 -1
- package/skills/x-twitter-scraper/references/types-tweet-drafts.md +1 -1
- package/skills/x-twitter-scraper/references/types-tweet-style-cache.md +1 -1
- package/skills/x-twitter-scraper/references/types-user-activity.md +1 -1
- package/skills/x-twitter-scraper/references/types-webhooks.md +1 -1
- package/skills/x-twitter-scraper/references/types-x-accounts.md +1 -1
- package/skills/x-twitter-scraper/references/types-x-api.md +1 -1
- package/skills/x-twitter-scraper/references/types-x-articles.md +1 -1
- package/skills/x-twitter-scraper/references/types-x-write.md +1 -1
- package/skills/x-twitter-scraper/references/usage.md +4 -4
- package/skills/x-twitter-scraper/references/webhooks.md +5 -5
- package/skills/x-twitter-scraper/references/workflows.md +4 -4
- package/skills/x-twitter-scraper/skill-card.md +25 -25
- package/skills/x-twitter-scraper/skillspector-report.md +1 -1
- package/skills/xquik-account-automation/SKILL.md +4 -4
- package/skills/xquik-social-research/SKILL.md +4 -4
- 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.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for monitors
|
|
2
2
|
|
|
3
3
|
### Create Monitor
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
POST /monitors
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The request body has this shape.
|
|
10
10
|
```json
|
|
11
11
|
{
|
|
12
12
|
"username": "elonmusk",
|
|
@@ -14,7 +14,7 @@ POST /monitors
|
|
|
14
14
|
}
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
The response has this shape.
|
|
18
18
|
```json
|
|
19
19
|
{
|
|
20
20
|
"id": "7",
|
|
@@ -25,7 +25,7 @@ POST /monitors
|
|
|
25
25
|
}
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Event types
|
|
28
|
+
Event types are `tweet.new`, `tweet.quote`, `tweet.reply`, `tweet.retweet` and `webhook.test`.
|
|
29
29
|
|
|
30
30
|
Returns `409 monitor_already_exists` if the username is already monitored.
|
|
31
31
|
|
|
@@ -49,7 +49,7 @@ GET /monitors/{id}
|
|
|
49
49
|
PATCH /monitors/{id}
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
The body is `{ "eventTypes": [...], "isActive": true|false }`. Both fields are optional.
|
|
53
53
|
|
|
54
54
|
### Delete Monitor
|
|
55
55
|
|
|
@@ -69,6 +69,6 @@ PATCH /monitors/keywords/{id}
|
|
|
69
69
|
delete request to `/monitors/keywords/{id}`
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Create and manage ongoing keyword monitors. Treat these as persistent resources
|
|
72
|
+
Create and manage ongoing keyword monitors. Treat these as persistent resources. Confirm the keyword query, event delivery plan, and ongoing usage before creating or enabling one.
|
|
73
73
|
|
|
74
74
|
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for Radar
|
|
2
2
|
|
|
3
3
|
### List Radar Items
|
|
4
4
|
|
|
@@ -8,17 +8,17 @@ GET /radar
|
|
|
8
8
|
|
|
9
9
|
Get trending topics and news from supported trend and news sources.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
It takes these query parameters.
|
|
12
12
|
|
|
13
13
|
| Param | Type | Description |
|
|
14
14
|
|-------|------|-------------|
|
|
15
|
-
| `source` | string | Filter by public source
|
|
16
|
-
| `category` | string | Filter by category
|
|
15
|
+
| `source` | string | Filter by public source, one of `google_trends`, `hacker_news`, `polymarket`, `wikipedia`, `github`, `reddit`. Omit to include all supported sources |
|
|
16
|
+
| `category` | string | Filter by category, one of `general`, `tech`, `dev`, `science`, `culture`, `politics`, `business`, `entertainment` |
|
|
17
17
|
| `limit` | number | Items per page (1-100, default 50) |
|
|
18
18
|
| `hours` | number | Look-back window in hours (1-72, default 6) |
|
|
19
|
-
| `region` | string | Region code
|
|
19
|
+
| `region` | string | Region code, one of `US`, `GB`, `TR`, `ES`, `DE`, `FR`, `JP`, `IN`, `BR`, `CA`, `MX`, `global` (default) |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
The response has this shape.
|
|
22
22
|
```json
|
|
23
23
|
{
|
|
24
24
|
"items": [
|
|
@@ -44,6 +44,6 @@ Get trending topics and news from supported trend and news sources.
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Fields
|
|
47
|
+
Fields are `id`, `title`, `description?`, `url?`, `imageUrl?`, `source`, `sourceId`, `category`, `region`, `language`, `score`, `metadata`, `publishedAt` and `createdAt`. The response includes `hasMore` and `nextCursor` for pagination.
|
|
48
48
|
|
|
49
49
|
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for support
|
|
2
2
|
|
|
3
3
|
### Create Ticket
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
POST /support/tickets
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The body is `{ "subject": "...", "body": "..." }`.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
A `201` response is `{ id, subject, status, createdAt }`.
|
|
12
12
|
|
|
13
13
|
### List Tickets
|
|
14
14
|
|
|
@@ -40,7 +40,7 @@ Update ticket status.
|
|
|
40
40
|
POST /support/tickets/{id}/messages
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
The body is `{ "body": "..." }`.
|
|
44
44
|
|
|
45
45
|
Add a message to an existing ticket.
|
|
46
46
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for trends
|
|
2
2
|
|
|
3
3
|
### List Trends
|
|
4
4
|
|
|
@@ -9,9 +9,9 @@ GET /trends?woeid=1&count=30
|
|
|
9
9
|
|
|
10
10
|
Metered. Plan access required. `/trends` is an alias of `/x/trends`. Cached, refreshes every 15 minutes.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Supported WOEIDs are 1 (Worldwide), 23424977 (US), 23424975 (UK), 23424969 (Turkey), 23424950 (Spain), 23424829 (Germany), 23424819 (France), 23424856 (Japan), 23424848 (India), 23424768 (Brazil), 23424775 (Canada) and 23424900 (Mexico).
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
The response has this shape.
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"trends": [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for the tweet style cache
|
|
2
2
|
|
|
3
3
|
### Analyze & Cache Style
|
|
4
4
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
Fetch recent tweets from an X account and cache them for style analysis. **Consumes metered API usage.**
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The request body takes these fields.
|
|
10
10
|
|
|
11
11
|
| Field | Type | Required | Description |
|
|
12
12
|
|-------|------|----------|-------------|
|
|
13
13
|
| `username` | string | Yes | X username to analyze (without @) |
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
A `201` response has this shape.
|
|
16
16
|
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
@@ -39,7 +39,7 @@ Fetch recent tweets from an X account and cache them for style analysis. **Consu
|
|
|
39
39
|
|
|
40
40
|
List all cached tweet style profiles. Max 200 results, ordered by fetch date.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
A `200` response has this shape.
|
|
43
43
|
|
|
44
44
|
```json
|
|
45
45
|
{
|
|
@@ -62,16 +62,16 @@ List all cached tweet style profiles. Max 200 results, ordered by fetch date.
|
|
|
62
62
|
|
|
63
63
|
Save a custom style profile from tweet texts. The body `label` controls the saved style label and replaces any existing style with that label.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
The request body takes these fields.
|
|
66
66
|
|
|
67
67
|
| Field | Type | Required | Description |
|
|
68
68
|
|-------|------|----------|-------------|
|
|
69
69
|
| `label` | string | Yes | Style label name (1-30 characters) |
|
|
70
70
|
| `tweets` | object[] | Yes | Array of tweet objects (1-100). Each must have a `text` field |
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
A `200` response returns the style object with label, `tweetCount`, `isOwnAccount: false`, `fetchedAt`, and a `tweets` array.
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
It can return `400 invalid_input`.
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
|
@@ -81,9 +81,9 @@ Save a custom style profile from tweet texts. The body `label` controls the save
|
|
|
81
81
|
|
|
82
82
|
Get a cached style profile with full tweet data. `id` is the cached style label or username.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
A `200` response returns the full style object with its `tweets` array.
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
It can return `404 style_not_found`.
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
@@ -93,7 +93,7 @@ delete request to `/styles/{id}`
|
|
|
93
93
|
|
|
94
94
|
Delete a cached style by label or username. Returns `204 No Content`.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
It can return `404 style_not_found`.
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
|
@@ -103,14 +103,14 @@ Delete a cached style by label or username. Returns `204 No Content`.
|
|
|
103
103
|
|
|
104
104
|
Compare two cached tweet style profiles side by side.
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
It takes these query parameters.
|
|
107
107
|
|
|
108
108
|
| Parameter | Type | Required | Description |
|
|
109
109
|
|-----------|------|----------|-------------|
|
|
110
110
|
| `username1` | string | Yes | First X username |
|
|
111
111
|
| `username2` | string | Yes | Second X username |
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
A `200` response has this shape.
|
|
114
114
|
|
|
115
115
|
```json
|
|
116
116
|
{
|
|
@@ -119,7 +119,7 @@ Compare two cached tweet style profiles side by side.
|
|
|
119
119
|
}
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
It can return `400 missing_params` or `404 style_not_found`.
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
|
|
@@ -129,7 +129,7 @@ Compare two cached tweet style profiles side by side.
|
|
|
129
129
|
|
|
130
130
|
Get live engagement metrics for cached tweets for a cached style label or username. **Consumes metered API usage.**
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
A `200` response has this shape.
|
|
133
133
|
|
|
134
134
|
```json
|
|
135
135
|
{
|
|
@@ -150,6 +150,6 @@ Get live engagement metrics for cached tweets for a cached style label or userna
|
|
|
150
150
|
}
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
It can return `404 style_not_found`.
|
|
154
154
|
|
|
155
155
|
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for webhooks
|
|
2
2
|
|
|
3
3
|
### Create Webhook
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
POST /webhooks
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The request body has this shape.
|
|
10
10
|
```json
|
|
11
11
|
{
|
|
12
12
|
"url": "https://your-server.com/webhook",
|
|
@@ -30,7 +30,7 @@ Returns all webhooks (up to 200). Secret is never exposed in list responses.
|
|
|
30
30
|
PATCH /webhooks/{id}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
The body is `{ "url": "...", "eventTypes": [...], "isActive": true|false }`. All fields are optional.
|
|
34
34
|
|
|
35
35
|
### Delete Webhook
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ POST /webhooks/{id}/test
|
|
|
48
48
|
|
|
49
49
|
Sends a `webhook.test` event to the webhook endpoint, HMAC-signed with the webhook's secret. Returns success or failure status with HTTP response details.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Xquik delivers this payload to your endpoint.
|
|
52
52
|
```json
|
|
53
53
|
{
|
|
54
54
|
"eventType": "webhook.test",
|
|
@@ -69,6 +69,6 @@ Returns `400 webhook_inactive` if the webhook is disabled. Reactivate via `PATCH
|
|
|
69
69
|
GET /webhooks/{id}/deliveries
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
View delivery attempts and statuses for a webhook. Statuses
|
|
72
|
+
View delivery attempts and statuses for a webhook. Statuses are `pending`, `delivered`, `failed` and `exhausted`.
|
|
73
73
|
|
|
74
74
|
---
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for connected X accounts
|
|
2
2
|
|
|
3
3
|
Manage connected X accounts for confirmation-gated write actions.
|
|
4
4
|
|
|
5
5
|
**Connecting or re-authenticating an X account is done by the user in the Xquik dashboard**, not via this skill. The skill never handles X login material. The agent should direct the user to the dashboard account page when a new account needs to be connected or an existing session needs to be refreshed.
|
|
6
6
|
|
|
7
|
-
The OpenAPI surface includes dashboard-owned account connection routes
|
|
7
|
+
The OpenAPI surface includes these dashboard-owned account connection routes.
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
POST /x/accounts
|
|
@@ -21,7 +21,7 @@ Do not call these from this skill. They are listed here only so the skill docs m
|
|
|
21
21
|
GET /x/accounts
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Returns all connected X accounts.
|
|
24
|
+
Returns all connected X accounts. The response is `{ accounts: [{ id, username, displayName, isActive, createdAt }] }`.
|
|
25
25
|
|
|
26
26
|
### Get X Account
|
|
27
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for direct X API lookups
|
|
2
2
|
|
|
3
3
|
Metered operations that require account access.
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ GET /x/articles/{tweetId}
|
|
|
18
18
|
|
|
19
19
|
Retrieve the full content of an X Article (long-form post) by numeric tweet ID. If the user gives an article URL, use the final status ID as `tweetId`. Returns title, body text with block-level formatting, cover image, inline images, and engagement metrics. Metered.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
The response has this shape.
|
|
22
22
|
```json
|
|
23
23
|
{
|
|
24
24
|
"title": "Why AI Will Transform Everything",
|
|
@@ -43,7 +43,7 @@ Retrieve the full content of an X Article (long-form post) by numeric tweet ID.
|
|
|
43
43
|
GET /x/tweets/search?q={query}
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Search
|
|
46
|
+
Search with X syntax, such as keywords, `#hashtags`, `from:user`, `to:user`, `"exact phrases"`, `OR` and `-exclude`.
|
|
47
47
|
|
|
48
48
|
Returns tweet info with optional engagement metrics (likeCount, retweetCount, replyCount) and optional attached media. Some fields may be omitted if unavailable.
|
|
49
49
|
|
|
@@ -173,7 +173,7 @@ GET /x/bookmarks
|
|
|
173
173
|
|
|
174
174
|
Get bookmarked tweets. Requires a connected X account. Metered per returned result.
|
|
175
175
|
|
|
176
|
-
**Sensitive
|
|
176
|
+
**Sensitive.** It returns private data. Confirm with the user before calling.
|
|
177
177
|
|
|
178
178
|
### Get Bookmark Folders
|
|
179
179
|
|
|
@@ -191,7 +191,7 @@ GET /x/notifications
|
|
|
191
191
|
|
|
192
192
|
Get notifications with type filter. Requires a connected X account. Metered per returned result.
|
|
193
193
|
|
|
194
|
-
**Sensitive
|
|
194
|
+
**Sensitive.** It returns private data. Confirm with the user before calling.
|
|
195
195
|
|
|
196
196
|
### Get Home Timeline
|
|
197
197
|
|
|
@@ -201,6 +201,6 @@ GET /x/timeline
|
|
|
201
201
|
|
|
202
202
|
Get home timeline. Requires a connected X account. Metered per returned result.
|
|
203
203
|
|
|
204
|
-
**Sensitive
|
|
204
|
+
**Sensitive.** It returns private data. Confirm with the user before calling.
|
|
205
205
|
|
|
206
206
|
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for X media downloads
|
|
2
2
|
|
|
3
3
|
### Download Media
|
|
4
4
|
|
|
@@ -8,14 +8,14 @@ POST /x/media/download
|
|
|
8
8
|
|
|
9
9
|
Download images, videos, and GIFs from tweets. Single or bulk (up to 50). Returns a shareable gallery URL.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
In the body, provide either `tweetInput` (single tweet) or `tweetIds` (bulk). Exactly 1 is required.
|
|
12
12
|
|
|
13
13
|
| Field | Type | Description |
|
|
14
14
|
|-------|------|-------------|
|
|
15
15
|
| `tweetInput` | string | Tweet URL or numeric tweet ID for a single download. Accepts `x.com` and `twitter.com` URL formats |
|
|
16
16
|
| `tweetIds` | string[] | Array of tweet URLs or IDs for bulk download. Maximum 50 items. Returns a single combined gallery |
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
A single-tweet response has this shape.
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
21
|
"tweetId": "1893456789012345678",
|
|
@@ -24,7 +24,7 @@ Download images, videos, and GIFs from tweets. Single or bulk (up to 50). Return
|
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
A bulk response has this shape.
|
|
28
28
|
```json
|
|
29
29
|
{
|
|
30
30
|
"galleryUrl": "https://xquik.com/g/def456",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Xquik REST API
|
|
1
|
+
# Xquik REST API endpoints for X writes
|
|
2
2
|
|
|
3
3
|
Write actions performed through connected X accounts. All endpoints are metered. Every request requires an `account` field (username or account ID) identifying which connected account to use.
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ Write actions performed through connected X accounts. All endpoints are metered.
|
|
|
8
8
|
POST /x/tweets
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The request body takes these fields.
|
|
12
12
|
|
|
13
13
|
| Field | Type | Required | Description |
|
|
14
14
|
|-------|------|----------|-------------|
|
|
@@ -20,9 +20,9 @@ POST /x/tweets
|
|
|
20
20
|
| `is_note_tweet` | boolean | No | Long-form note tweet (up to 25,000 chars) |
|
|
21
21
|
| `media` | string[] | No | Public image URLs to attach (max 4). `POST /x/media` returns `mediaUrl` values for this field |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
The response is `{ tweetId, success: true }`.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
It can return `502 x_write_failed`.
|
|
26
26
|
|
|
27
27
|
### Delete Tweet
|
|
28
28
|
|
|
@@ -30,9 +30,9 @@ POST /x/tweets
|
|
|
30
30
|
delete request to `/x/tweets/{id}`
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
The body is `{ "account": "username" }`.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
The response is `{ success: true }`.
|
|
36
36
|
|
|
37
37
|
### Like Tweet
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ delete request to `/x/tweets/{id}`
|
|
|
40
40
|
POST /x/tweets/{id}/like
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
The body is `{ "account": "username" }`.
|
|
44
44
|
|
|
45
45
|
### Unlike Tweet
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ POST /x/tweets/{id}/like
|
|
|
48
48
|
delete request to `/x/tweets/{id}/like`
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
The body is `{ "account": "username" }`.
|
|
52
52
|
|
|
53
53
|
### Retweet
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ delete request to `/x/tweets/{id}/like`
|
|
|
56
56
|
POST /x/tweets/{id}/retweet
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
The body is `{ "account": "username" }`.
|
|
60
60
|
|
|
61
61
|
### Unretweet
|
|
62
62
|
|
|
@@ -64,7 +64,7 @@ POST /x/tweets/{id}/retweet
|
|
|
64
64
|
delete request to `/x/tweets/{id}/retweet`
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
The body is `{ "account": "username" }`.
|
|
68
68
|
|
|
69
69
|
### Follow User
|
|
70
70
|
|
|
@@ -72,9 +72,9 @@ delete request to `/x/tweets/{id}/retweet`
|
|
|
72
72
|
POST /x/users/{id}/follow
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
The body is `{ "account": "username" }`.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
It can return `502 x_write_failed`.
|
|
78
78
|
|
|
79
79
|
### Unfollow User
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ POST /x/users/{id}/follow
|
|
|
82
82
|
delete request to `/x/users/{id}/follow`
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
The body is `{ "account": "username" }`.
|
|
86
86
|
|
|
87
87
|
### Remove Follower
|
|
88
88
|
|
|
@@ -92,9 +92,9 @@ POST /x/users/{id}/remove-follower
|
|
|
92
92
|
|
|
93
93
|
Remove a user from your followers without blocking them.
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
The body is `{ "account": "username" }`.
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
Usage is metered per call.
|
|
98
98
|
|
|
99
99
|
### Send DM
|
|
100
100
|
|
|
@@ -102,7 +102,7 @@ Remove a user from your followers without blocking them.
|
|
|
102
102
|
POST /x/dm/{userId}
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
The request body takes these fields.
|
|
106
106
|
|
|
107
107
|
| Field | Type | Required | Description |
|
|
108
108
|
|-------|------|----------|-------------|
|
|
@@ -119,7 +119,7 @@ GET /x/dm/{userId}/history
|
|
|
119
119
|
|
|
120
120
|
Get DM conversation history with a user. Requires a connected X account. Metered per returned result.
|
|
121
121
|
|
|
122
|
-
**Sensitive
|
|
122
|
+
**Sensitive.** It returns private DM conversations. Confirm with the user before calling. Forward to other tools only after explicit approval.
|
|
123
123
|
|
|
124
124
|
### Update Profile
|
|
125
125
|
|
|
@@ -127,7 +127,7 @@ Get DM conversation history with a user. Requires a connected X account. Metered
|
|
|
127
127
|
PATCH /x/profile
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
The body is `{ "account": "username", "name": "...", "description": "...", "location": "...", "url": "..." }`. `account` is required, and the other fields are optional.
|
|
131
131
|
|
|
132
132
|
### Update Avatar
|
|
133
133
|
|
|
@@ -137,7 +137,7 @@ PATCH /x/profile/avatar
|
|
|
137
137
|
|
|
138
138
|
Update profile avatar. Max 700 KB, GIF/JPEG/PNG. Metered.
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
The body is FormData with `account` (required) and `file` (required, max 700 KB).
|
|
141
141
|
|
|
142
142
|
### Update Banner
|
|
143
143
|
|
|
@@ -147,7 +147,7 @@ PATCH /x/profile/banner
|
|
|
147
147
|
|
|
148
148
|
Update profile banner. Max 2 MB, GIF/JPEG/PNG. Metered.
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
The body is FormData with `account` (required) and `file` (required, max 2 MB).
|
|
151
151
|
|
|
152
152
|
### Upload Media
|
|
153
153
|
|
|
@@ -155,9 +155,9 @@ Update profile banner. Max 2 MB, GIF/JPEG/PNG. Metered.
|
|
|
155
155
|
POST /x/media
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
The body is FormData with `account` (required), `file` (required), and `is_long_video` (optional boolean). Alternatively, JSON body with `account` (required) and `url` (required, direct media URL) for URL-based upload.
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
The response returns `mediaId`, `mediaUrl`, and `success`. Pass `mediaUrl` in the `media` array when creating a tweet.
|
|
161
161
|
|
|
162
162
|
### Create Community
|
|
163
163
|
|
|
@@ -165,7 +165,7 @@ POST /x/media
|
|
|
165
165
|
POST /x/communities
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
The body is `{ "account": "username", "name": "...", "description": "..." }`. All fields are required.
|
|
169
169
|
|
|
170
170
|
### Delete Community
|
|
171
171
|
|
|
@@ -173,7 +173,7 @@ POST /x/communities
|
|
|
173
173
|
delete request to `/x/communities/{id}`
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
The body is `{ "account": "username", "community_name": "..." }`. The name is required for confirmation.
|
|
177
177
|
|
|
178
178
|
### Join Community
|
|
179
179
|
|
|
@@ -181,9 +181,9 @@ delete request to `/x/communities/{id}`
|
|
|
181
181
|
POST /x/communities/{id}/join
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
The body is `{ "account": "username" }`.
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
It can return `409 already_member`.
|
|
187
187
|
|
|
188
188
|
### Leave Community
|
|
189
189
|
|
|
@@ -191,7 +191,7 @@ POST /x/communities/{id}/join
|
|
|
191
191
|
delete request to `/x/communities/{id}/join`
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
The body is `{ "account": "username" }`.
|
|
195
195
|
|
|
196
196
|
### Get Write Action Status
|
|
197
197
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Routing index for the REST API reference. Load only the section file needed for the user task instead of loading the full endpoint catalog.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The base URL is `https://xquik.com/api/v1`.
|
|
6
6
|
|
|
7
7
|
All requests require the `x-api-key` header unless the section says session auth only. All responses are JSON. HTTPS only.
|
|
8
8
|
|
|
@@ -4,11 +4,11 @@ Run transparent, auditable giveaway draws from tweet replies with configurable f
|
|
|
4
4
|
|
|
5
5
|
## Create a draw
|
|
6
6
|
|
|
7
|
-
`POST /draws` with a `tweetUrl` (required) and optional filters
|
|
7
|
+
Send `POST /draws` with a `tweetUrl` (required) and these optional filters.
|
|
8
8
|
|
|
9
9
|
| Field | Type | Description |
|
|
10
10
|
| ---------------------- | -------- | ------------------------------------------------------------ |
|
|
11
|
-
| `tweetUrl` | string | **Required.** Full tweet URL
|
|
11
|
+
| `tweetUrl` | string | **Required.** Full tweet URL, as `https://x.com/user/status/ID` |
|
|
12
12
|
| `winnerCount` | number | Winners to select (default 1) |
|
|
13
13
|
| `backupCount` | number | Backup winners to select |
|
|
14
14
|
| `uniqueAuthorsOnly` | boolean | Count only one entry per author |
|