![Twitter Trends Scraper avatar](https://images.apifyusercontent.com/KLwAaDQcrn1jW29NJjy46F2rrpri7iOFMqLUZLP3Tr8/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vb0NBRWliUXRQR0tYY0Y1TU0vd0d5Y2pLdktMSVRmU0lneVAtdHdpdHRlcl94X211c2suanBn.webp)
Twitter Trends Scraper
Pay $0.09 for 1,000 results
![Twitter Trends Scraper](https://images.apifyusercontent.com/KLwAaDQcrn1jW29NJjy46F2rrpri7iOFMqLUZLP3Tr8/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vb0NBRWliUXRQR0tYY0Y1TU0vd0d5Y2pLdktMSVRmU0lneVAtdHdpdHRlcl94X211c2suanBn.webp)
Twitter Trends Scraper
Pay $0.09 for 1,000 results
Scrape the top trends for each data point spanning 8 time periods from live... to... 3 days about trending tweets and hashtags and topics on Twitter from any of the countries listed below. Including volume of tweets. Only $0.09 per 1000 results.
You can access the Twitter Trends Scraper programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "0.0",
5 "x-build-id": "omhUjOG8rdSBi1BUK"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/karamelo~twitter-trends-scraper/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-karamelo-twitter-trends-scraper",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/karamelo~twitter-trends-scraper/runs": {
50 "post": {
51 "operationId": "runs-sync-karamelo-twitter-trends-scraper",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/karamelo~twitter-trends-scraper/run-sync": {
93 "post": {
94 "operationId": "run-sync-karamelo-twitter-trends-scraper",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "properties": {
134 "country": {
135 "title": "Country",
136 "enum": [
137 "1",
138 "2",
139 "3",
140 "4",
141 "5",
142 "6",
143 "7",
144 "8",
145 "9",
146 "10",
147 "11",
148 "12",
149 "13",
150 "14",
151 "15",
152 "16",
153 "17",
154 "18",
155 "19",
156 "20",
157 "21",
158 "22",
159 "23",
160 "24",
161 "25",
162 "26",
163 "27",
164 "28",
165 "29",
166 "30",
167 "31",
168 "32",
169 "33",
170 "34"
171 ],
172 "type": "string",
173 "description": "Select your search location country",
174 "default": "2"
175 },
176 "live": {
177 "title": "Live",
178 "type": "boolean",
179 "description": "Add the live tweets trends to the final results.",
180 "default": true
181 },
182 "hour1": {
183 "title": "1 hour ago.",
184 "type": "boolean",
185 "description": "Add the tweets trends to the final results, defaut is false.",
186 "default": false
187 },
188 "hour3": {
189 "title": "3 hours ago.",
190 "type": "boolean",
191 "description": "Add the tweets trends to the final results, defaut is false.",
192 "default": false
193 },
194 "hour6": {
195 "title": "6 hours ago.",
196 "type": "boolean",
197 "description": "Add the tweets trends to the final results, defaut is false.",
198 "default": false
199 },
200 "hour12": {
201 "title": "12 hours ago.",
202 "type": "boolean",
203 "description": "Add the tweets trends to the final results, defaut is false.",
204 "default": false
205 },
206 "hour24": {
207 "title": "24 hours ago.",
208 "type": "boolean",
209 "description": "Add the tweets trends to the final results, defaut is false.",
210 "default": false
211 },
212 "day2": {
213 "title": "2 days ago.",
214 "type": "boolean",
215 "description": "Add the tweets trends to the final results, defaut is false.",
216 "default": false
217 },
218 "day3": {
219 "title": "3 days ago.",
220 "type": "boolean",
221 "description": "Add the tweets trends to the final results, defaut is false.",
222 "default": false
223 },
224 "proxyOptions": {
225 "title": "Proxy configuration",
226 "type": "object",
227 "description": "Select proxies to be used."
228 }
229 }
230 },
231 "runsResponseSchema": {
232 "type": "object",
233 "properties": {
234 "data": {
235 "type": "object",
236 "properties": {
237 "id": {
238 "type": "string"
239 },
240 "actId": {
241 "type": "string"
242 },
243 "userId": {
244 "type": "string"
245 },
246 "startedAt": {
247 "type": "string",
248 "format": "date-time",
249 "example": "2025-01-08T00:00:00.000Z"
250 },
251 "finishedAt": {
252 "type": "string",
253 "format": "date-time",
254 "example": "2025-01-08T00:00:00.000Z"
255 },
256 "status": {
257 "type": "string",
258 "example": "READY"
259 },
260 "meta": {
261 "type": "object",
262 "properties": {
263 "origin": {
264 "type": "string",
265 "example": "API"
266 },
267 "userAgent": {
268 "type": "string"
269 }
270 }
271 },
272 "stats": {
273 "type": "object",
274 "properties": {
275 "inputBodyLen": {
276 "type": "integer",
277 "example": 2000
278 },
279 "rebootCount": {
280 "type": "integer",
281 "example": 0
282 },
283 "restartCount": {
284 "type": "integer",
285 "example": 0
286 },
287 "resurrectCount": {
288 "type": "integer",
289 "example": 0
290 },
291 "computeUnits": {
292 "type": "integer",
293 "example": 0
294 }
295 }
296 },
297 "options": {
298 "type": "object",
299 "properties": {
300 "build": {
301 "type": "string",
302 "example": "latest"
303 },
304 "timeoutSecs": {
305 "type": "integer",
306 "example": 300
307 },
308 "memoryMbytes": {
309 "type": "integer",
310 "example": 1024
311 },
312 "diskMbytes": {
313 "type": "integer",
314 "example": 2048
315 }
316 }
317 },
318 "buildId": {
319 "type": "string"
320 },
321 "defaultKeyValueStoreId": {
322 "type": "string"
323 },
324 "defaultDatasetId": {
325 "type": "string"
326 },
327 "defaultRequestQueueId": {
328 "type": "string"
329 },
330 "buildNumber": {
331 "type": "string",
332 "example": "1.0.0"
333 },
334 "containerUrl": {
335 "type": "string"
336 },
337 "usage": {
338 "type": "object",
339 "properties": {
340 "ACTOR_COMPUTE_UNITS": {
341 "type": "integer",
342 "example": 0
343 },
344 "DATASET_READS": {
345 "type": "integer",
346 "example": 0
347 },
348 "DATASET_WRITES": {
349 "type": "integer",
350 "example": 0
351 },
352 "KEY_VALUE_STORE_READS": {
353 "type": "integer",
354 "example": 0
355 },
356 "KEY_VALUE_STORE_WRITES": {
357 "type": "integer",
358 "example": 1
359 },
360 "KEY_VALUE_STORE_LISTS": {
361 "type": "integer",
362 "example": 0
363 },
364 "REQUEST_QUEUE_READS": {
365 "type": "integer",
366 "example": 0
367 },
368 "REQUEST_QUEUE_WRITES": {
369 "type": "integer",
370 "example": 0
371 },
372 "DATA_TRANSFER_INTERNAL_GBYTES": {
373 "type": "integer",
374 "example": 0
375 },
376 "DATA_TRANSFER_EXTERNAL_GBYTES": {
377 "type": "integer",
378 "example": 0
379 },
380 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
381 "type": "integer",
382 "example": 0
383 },
384 "PROXY_SERPS": {
385 "type": "integer",
386 "example": 0
387 }
388 }
389 },
390 "usageTotalUsd": {
391 "type": "number",
392 "example": 0.00005
393 },
394 "usageUsd": {
395 "type": "object",
396 "properties": {
397 "ACTOR_COMPUTE_UNITS": {
398 "type": "integer",
399 "example": 0
400 },
401 "DATASET_READS": {
402 "type": "integer",
403 "example": 0
404 },
405 "DATASET_WRITES": {
406 "type": "integer",
407 "example": 0
408 },
409 "KEY_VALUE_STORE_READS": {
410 "type": "integer",
411 "example": 0
412 },
413 "KEY_VALUE_STORE_WRITES": {
414 "type": "number",
415 "example": 0.00005
416 },
417 "KEY_VALUE_STORE_LISTS": {
418 "type": "integer",
419 "example": 0
420 },
421 "REQUEST_QUEUE_READS": {
422 "type": "integer",
423 "example": 0
424 },
425 "REQUEST_QUEUE_WRITES": {
426 "type": "integer",
427 "example": 0
428 },
429 "DATA_TRANSFER_INTERNAL_GBYTES": {
430 "type": "integer",
431 "example": 0
432 },
433 "DATA_TRANSFER_EXTERNAL_GBYTES": {
434 "type": "integer",
435 "example": 0
436 },
437 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
438 "type": "integer",
439 "example": 0
440 },
441 "PROXY_SERPS": {
442 "type": "integer",
443 "example": 0
444 }
445 }
446 }
447 }
448 }
449 }
450 }
451 }
452 }
453}
Twitter Trends Scraper OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Twitter Trends Scraper from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients:
Actor Metrics
53 monthly users
-
10 stars
>99% runs succeeded
3.7 days response time
Created in Sep 2024
Modified 3 months ago