Twitter (X) Scraper avatar

Twitter (X) Scraper

Pricing

$1.40 / 1,000 public data

Go to Apify Store
Twitter (X) Scraper

Twitter (X) Scraper

Collect public X posts, profiles, network members, and trends by region or city. Filter posts by date, language, media, links, and engagement. Save the data to an Apify dataset without X credentials.

Pricing

$1.40 / 1,000 public data

Rating

5.0

(1)

Developer

Maxime Dupré

Maxime Dupré

Maintained by Community

Actor stats

2

Bookmarked

387

Total users

35

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

🔎 Twitter (X) scraper for public data

Twitter Scraper helps researchers, marketers, and developers collect public Twitter/X posts, profile matches, profile network members, and trends by region or city. Get text, links, authors, media, engagement counts, and source details as structured dataset rows without giving the Actor your Twitter/X login.

Post rows can include text, links, time, language, post kind, author details, engagement counts, media, quotes, replies, and conversation links. Profile rows can include identity, bio, images, public counts, verification, and source context. Trend rows include rank, region, and a search link.

The Actor saves each eligible public item on its first match. If another query, URL, handle, ID, or source finds it later, that later match is ignored. Source fields describe only the first saved match.

▶️ Run one Twitter/X collection

  1. Choose one target for the run.
  2. Add the matching search, profile, network, or trend input.
  3. Set any filters and maxNbItemsToScrape.
  4. Run the Actor and open its dataset.

Post searches can use plain text, X search syntax, public source URLs, post URLs or IDs, conversation IDs, filters, or date and place limits. Profile search finds public accounts by search phrase or direct target. Profile options also collect followers, followed accounts, or public post retweeters. Trends mode returns topics for one region or for supported cities. For a region, you can get the newest list or recent lists. Leave the work limit empty to collect available results until the source runs out or you reach the charge limit.

⚙️ Input

Input fields

Only fields for the chosen target affect that run.

FieldTypeWhat it does
targetstringRequired. Choose searchPosts, searchProfiles, or trendingTopics. The form prefills searchPosts; there is no schema default. Network members are Profiles options.
postDiscoveryMethodstringChoose searchQuery (default), directPosts, conversationIds, or sourceUrls. Other post-finding inputs are ignored.
searchQuerystring[]Uses plain text or X search syntax. Each entry is one full query. X allows 512 characters including filters. You can omit searchQuery if you set placeId or give at least one value in fromUsers, toUsers, mentions, or hashtags. The form prefills OpenAI; there is no schema default.
directPostUrlsstring[]Fetches the exact public posts at the submitted X or Twitter URLs or numeric IDs.
conversationIdsstring[]Finds public posts that belong to the submitted conversations.
postSearchUrlsstring[] or object[]Uses public search, profile, list, or conversation URLs as post sources. Each entry is a URL string or an object with url. Search URLs need q with the search text. You can leave f blank or use live or top. Set the run order with searchMode. Leave pf and lf blank. Search text and added filters share the 512-character limit.
hashtagsstring[]Keeps posts that contain the submitted hashtags. Enter each tag without #. Each tag uses its length plus up to 5 characters of the shared 512-character search limit.
fromUsersstring[]Keeps posts written by the submitted handles. Enter each handle without @.
authorVerificationstringChoose any (default), verified, or notVerified. Verification includes X Premium status.
mentionsstring[]Keeps posts that mention the submitted handles. Enter each handle without @. Each handle uses its length plus up to 5 characters of the shared 512-character search limit.
toUsersstring[]Keeps posts addressed to the submitted handles. Enter each handle without @. Each handle uses its length plus up to 7 characters of the shared 512-character search limit.
searchModestringChoose latest (schema default), top, or latestAndTop. The form prefills latestAndTop. The combined mode saves each post once.
startDatestringKeeps posts on or after this date. The date applies along with any date bounds in the query. If omitted, search starts 30 days ago unless a since: date applies to the whole query. An until: date alone still uses that 30-day start. Use a date or a UTC date-time. Direct post lookup ignores search filters.
endDatestringKeeps posts on or before this date or UTC date-time. A date includes its full day. This field applies along with any date bounds in the query. If omitted, this field adds no end bound.
languagestringKeeps posts with this language code, such as en, es, fr, or ja.
placeIdstringSets an X or Twitter place ID.
linksstringChoose include (default), onlyLinks, or onlyWithoutLinks.
mediastringChoose include (default), onlyMedia, onlyImages, or onlyVideos. Videos include GIFs.
postKindsstring[]Choose one or more of originalPosts, quotePosts, replies, and reposts. The first three are the default.
minLikesintegerKeeps posts with at least this many likes. Minimum 0; omit for no likes filter.
minRepliesintegerKeeps posts with at least this many replies. Minimum 0; omit for no reply filter.
minRetweetsintegerKeeps posts with at least this many reposts. Minimum 0; omit for no repost filter.
sinceIdstringKeeps posts after this X post ID. Use digits only.
maxIdstringKeeps posts at or before this X post ID. Use digits only.
profileDiscoveryMethodstringChoose searchPhrases (default), directTargets, followers, following, or retweeters.
profileSearchQueriesstring[]Finds public profiles by phrase, such as a name or topic. A lone @handle or a single-profile URL is searched as the handle. Each phrase can use up to 500 bytes. For exact lookup by handle, profile URL, or user ID, use profileLookupTargets with directTargets.
profileLookupTargetsstring[]Sets handles, URLs, or numeric user IDs for directTargets, followers, or following. Enter handles without @.
retweeterPostUrlsOrIdsstring[]Sets public post URLs or IDs whose public retweeter profiles to collect.
includeArchivedVerificationHistorybooleanAdds available past verification details for Profiles. Default false. Under the local pricing configuration, you pay per profile that gets past entries. This can make the run take much longer. Current verification details and dates remain available when off.
maxPastVerificationEntriesPerProfileintegerWith past verification details on, saves up to this many past entries per profile, where available. Default 10; minimum 0. Use 0 for all available entries, which can take hours for well-known accounts. Off means no past entries, whatever the limit.
includeUsernameHistorybooleanAdds available past handles, handle change times, or first and last seen dates. Default false. Under the local pricing configuration, a profile with any history gets an extra charge.
maxUsernameHistoryEntriesPerProfileintegerWith username history on, saves up to this many past handles per profile. Default 10; minimum 0. Use 0 for all available handles. Off means no past handles, whatever the limit.
includeUsernameChangeCountbooleanAdds the number of handle changes for each profile when available. Default false. Under the local pricing configuration, you pay for each profile that gets a count.
includeAccountRegionbooleanAdds the country X shows for the profile or any available accuracy details. Default false. Under the local pricing configuration, only a profile that gets a country gets an extra charge.
includeConnectionSourcebooleanAdds the app or web source X shows for the profile when available. Default false. Under the local pricing configuration, you pay for each profile that gets this detail.
transformFunctionstringOptional JavaScript function that takes one row as item and returns one object, such as (item) => ({ ...item, label: "X" }). It applies to every result type. The returned row must keep the required fields, their types, and the same rowType, or the run stops with an input error. Leave it empty to keep rows as they are.
trendDiscoveryMethodstringChoose region (default) or city. The other method’s fields are ignored.
trendRegionIdstringChooses one of the region IDs in the input form. Default 1 means Worldwide.
trendListScopestringFor region, choose newest (default) or recent. Recent gets up to 24 lists, including the newest, from less than a full day. Times vary and topics can repeat.
trendCitiesobject[]For city, enter one or more objects with city and country names. Use the exact names for a supported pair. Enter the country name, such as Japan, instead of a code such as JP. City mode gets current trends.
maxNbItemsToScrapeintegerStops after this many saved rows across the run. Minimum 0. Omit or use 0 for all available results until the source is exhausted or the charge limit is reached. The form prefills 10; there is no schema default.

Example input

Use this public input from a beta run that saved 10 rows with the default post search.

{
"maxNbItemsToScrape": 10,
"postDiscoveryMethod": "searchQuery",
"searchMode": "latestAndTop",
"searchQuery": [
"OpenAI"
],
"target": "searchPosts",
"authorVerification": "any",
"links": "include",
"media": "include",
"postKinds": [
"originalPosts",
"quotePosts",
"replies"
],
"profileDiscoveryMethod": "searchPhrases",
"includeArchivedVerificationHistory": false,
"maxPastVerificationEntriesPerProfile": 10,
"includeUsernameHistory": false,
"maxUsernameHistoryEntriesPerProfile": 10,
"includeAccountRegion": false,
"trendRegionId": "1",
"includeUsernameChangeCount": false,
"includeConnectionSource": false,
"trendDiscoveryMethod": "region",
"trendListScope": "newest"
}

Use a query or one of the filters listed in the searchQuery row. The other methods need values in their own fields: directPostUrls, conversationIds, or postSearchUrls. Each supplied list needs at least one value. Profile searches need a search phrase or direct target. Followers and Following need profile targets; Post retweeters needs post URLs or IDs. Region trends use the chosen region and list scope. City trends use the city list. Omit unused filters to leave them off. Direct post lookup fetches the submitted posts without the search filters.

🧾 Output

Output fields

FieldTypeWhat it does
rowTypestringMarks this row as a post.
postIdstringGives the X post ID.
postUrlstringGives the public link to the X post.
postTextstringGives the full post text.
postDateTimestringGives the publication time as a date-time string.
languagestringGives the post language code.
authorIdstring or nullGives the author profile ID, when available.
authorHandlestring or nullGives the author handle without @, when available.
authorDisplayNamestring or nullGives the author's display name, when available.
authorBiostring or nullGives the author's public profile bio, when available.
authorLocationstring or nullGives the author's public profile location, when available.
authorAvatarUrlstring or nullGives the author's avatar image link, when available.
authorFollowersCountinteger or nullGives the author's follower count, when available.
authorFollowingCountinteger or nullGives the author's following count, when available.
authorCreatedAtstring or nullGives the author account creation time, when available.
authorIsVerifiedboolean or nullSays whether the author is verified, when available.
authorIsBlueVerifiedboolean or nullSays whether the author has X Premium verification, when available.
authorVerifiedTypestring or nullGives the author's verification type, when available.
nbLikesinteger or nullGives the number of likes, when available.
nbRepostsinteger or nullGives the number of reposts, when available.
nbRepliesinteger or nullGives the number of replies, when available.
quoteCountinteger or nullGives the number of quotes, when available.
nbViewsinteger or nullGives the number of views, when available.
nbBookmarksinteger or nullGives the number of bookmarks, when available.
mediaDetailsobject[]Lists each media file and its available details.
mediaDetails.idstring or nullGives the media ID, when available.
mediaDetails.altTextstring or nullGives the media alt text, when available.
mediaDetails.typestringGives the media kind.
mediaDetails.urlstringGives the main media file link.
mediaDetails.thumbnailUrlstring or nullGives a preview image link, when available.
mediaDetails.widthinteger or nullGives the media width in pixels, when available.
mediaDetails.heightinteger or nullGives the media height in pixels, when available.
mediaDetails.durationMsinteger or nullGives the media length in milliseconds, when available.
mediaDetails.aspectRatiostring or nullGives the media shape, when available.
mediaDetails.contentTypestring or nullGives the media file type, when available.
mediaDetails.variantsobject[]Lists other video file choices, when available.
mediaDetails.variants.urlstringGives a video choice link.
mediaDetails.variants.contentTypestring or nullGives a video choice file type, when available.
mediaDetails.variants.bitrateinteger or nullGives a video choice bitrate, when available.
hashtagsstring[]Lists hashtags without #.
linkEntitiesstring[]Lists usable destination links found in the post.
quotedPostIdstring or nullGives the quoted post ID, when available.
quotedPostTextstring or nullGives the quoted post text, when available.
quotedAuthorHandlestring or nullGives the quoted post author's handle, when available.
replyToHandlestring or nullGives the handle this post replies to, when available.
replyToPostIdstring or nullGives the post ID this post replies to, when available.
conversationIdstring or nullGives the conversation ID, when available.
isPinnedboolean or nullSays whether X marks the post as pinned, when available.
sourcestring or nullGives the app label used to publish the post, when available.
sourceInputstring or nullGives the submitted query, URL, ID, or similar value that first found the post.
pollobject or nullGives available poll choices and vote details.
poll.choicesobject[]Lists poll choices in their shown order.
poll.choices.labelstringGives the choice text.
poll.choices.voteCountinteger or nullGives X's vote count for the choice.
poll.countsAreFinalboolean or nullSays whether X marks the counts as final.
poll.closesAtstring or nullGives the poll closing time.
articleobject or nullGives available X article content linked to the post.
article.imageUrlsstring[]Lists image links from the X article, when available.
article.titlestring or nullGives the article title.
article.textstring or nullGives the article text.
article.urlstring or nullGives the public article link.
article.publishedAtstring or nullGives the article publication time.
article.updatedAtstring or nullGives the last change time.
repostedPostobject or nullGives the original post shared by a repost.
repostedPost.postIdstring or nullGives the original post ID.
repostedPost.postUrlstring or nullGives the original post link.
repostedPost.postTextstring or nullGives the original post text.
repostedPost.postDateTimestring or nullGives the original publication time.
repostedPost.authorIdstring or nullGives the original author's ID.
repostedPost.authorHandlestring or nullGives the original author's handle.
repostedPost.authorDisplayNamestring or nullGives the original author's display name.
repostedPost.nbLikesinteger or nullGives the original post’s number of likes, when available.
repostedPost.nbRepostsinteger or nullGives the original post’s number of reposts, when available.
repostedPost.nbRepliesinteger or nullGives the original post’s number of replies, when available.
repostedPost.quoteCountinteger or nullGives the original post’s number of quotes, when available.
repostedPost.nbBookmarksinteger or nullGives the original post’s number of bookmarks, when available.
repostedPost.nbViewsinteger or nullGives the original post’s number of views, when available.
mentionsobject[]Lists accounts mentioned in the post.
mentions.profileIdstring or nullGives the mentioned account ID.
mentions.handlestring or nullGives the mentioned handle without @.
mentions.displayNamestring or nullGives the mentioned account name.
placeobject or nullGives place details attached to the post by X.
place.idstring or nullGives the X place ID.
place.namestring or nullGives the place name.
place.fullNamestring or nullGives the full place name.
place.typestring or nullGives the kind of place.
place.countrystring or nullGives the country name.
place.countryCodestring or nullGives the country code.
place.boundingBoxobject or nullGives the area around the place.
place.boundingBox.typestring or nullGives the geometry type.
place.boundingBox.coordinatesnumber[][][]Gives boundary rings of longitude and latitude points.

Example post row from a successful current-beta run

{
"rowType": "post",
"postId": "2125641758432284978",
"postUrl": "https://x.com/NASA/status/2125641758432284978",
"postText": "Medicine or engineering? Military or civilian? We're looking for a variety of backgrounds to join our astronaut corps as we journey to the Moon, Mars, and beyond.\n\nApplications for our next class of astronauts close in one week! Apply by Dec. 3: https://t.co/CaW5MpcrAd https://t.co/6ZcRo0kJA7",
"postDateTime": "2026-11-25T17:24:22.000Z",
"language": "en",
"authorId": "11348282",
"authorHandle": "NASA",
"authorDisplayName": "NASA",
"authorBio": "Making the seemingly impossible, possible. ✨",
"authorLocation": "Pale Blue Dot",
"authorAvatarUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
"authorFollowersCount": 92085739,
"authorFollowingCount": 115,
"authorCreatedAt": "2007-12-19T20:20:32.000Z",
"authorIsVerified": true,
"authorIsBlueVerified": true,
"authorVerifiedType": "Government",
"nbLikes": 3082,
"nbReposts": 538,
"nbReplies": 282,
"quoteCount": 69,
"nbViews": 763751,
"nbBookmarks": 305,
"mediaDetails": [
{
"id": "2125641730489782272",
"type": "video",
"url": "https://video.twimg.com/amplify_video/2125641730489782272/vid/avc1/1920x1080/k-Yu6xwkBjwzaNXJ.mp4?tag=16",
"thumbnailUrl": "https://pbs.twimg.com/media/HX_L6d4WoAAWOU-.jpg",
"width": 720,
"height": 405,
"durationMs": 17664,
"aspectRatio": "16:9",
"contentType": "video/mp4",
"variants": [
{
"url": "https://video.twimg.com/amplify_video/2125641730489782272/vid/avc1/1920x1080/k-Yu6xwkBjwzaNXJ.mp4?tag=16",
"contentType": "video/mp4",
"bitrate": 10368000
},
{
"url": "https://video.twimg.com/amplify_video/2125641730489782272/vid/avc1/1280x720/M05p1UXa9QPrz8Yo.mp4?tag=16",
"contentType": "video/mp4",
"bitrate": 2176000
},
{
"url": "https://video.twimg.com/amplify_video/2125641730489782272/vid/avc1/640x360/hXPmmTKys4eG9kH8.mp4?tag=16",
"contentType": "video/mp4",
"bitrate": 832000
},
{
"url": "https://video.twimg.com/amplify_video/2125641730489782272/vid/avc1/480x270/z6iD_plry7pkXL76.mp4?tag=16",
"contentType": "video/mp4",
"bitrate": 288000
}
]
}
],
"hashtags": [],
"linkEntities": [
"https://go.nasa.gov/astro2026"
],
"mentions": [],
"conversationId": "2125641758432284978",
"isPinned": false,
"sourceInput": "-filter:retweets from:NASA OR from:OpenAI"
}

Profile and network-member row

Profile search and network-member runs use this same shape. Network rows add networkType, while sourceInput gives the first query, handle, URL, ID, or similar source value.

FieldTypeWhat it does
rowTypestringMarks this row as a profile.
profileIdstringGives the profile ID.
handlestringGives the profile handle without @.
displayNamestringGives the profile display name.
biostring or nullGives the public profile bio, when available.
createdAtstring or nullGives the account creation time, when available.
locationstring or nullGives the public profile location, when available.
avatarUrlstring or nullGives the profile avatar image link, when available.
bannerUrlstring or nullGives the profile banner image link, when available.
followersCountinteger or nullGives the public follower count, when available.
followingCountinteger or nullGives the public following count, when available.
postsCountinteger or nullGives the public post count, when available.
likesCountinteger or nullGives the public like count, when available.
isVerifiedboolean or nullSays whether X marks the profile as verified.
pinnedPostIdsstring[]Gives the shown pinned post IDs.
sourceInputstring or nullGives the submitted query, handle, URL, ID, or similar value that first found the profile.
networkTypestring or null (optional)Gives followers, following, or retweeters. Only network rows include it.
websiteUrlstring or nullGives the profile website link.
mediaCountinteger or nullGives the number of media posts.
listedCountinteger or nullGives the number of public lists that include the profile.
isBlueVerifiedboolean or nullSays whether the profile has X Premium verification.
verifiedTypestring or nullGives the verification type.
verificationReasonstring or nullGives X’s reason for the checkmark, when available.
professionalobject or nullGives professional account details.
professional.typestring or nullGives the professional account type.
professional.categoriesstring[]Lists professional categories.
restrictionsobject or nullGives public access limits.
restrictions.isProtectedboolean or nullSays whether posts are limited to approved followers.
restrictions.withheldCountriesstring[]Lists country codes where X withholds the account.
restrictions.withheldScopestring or nullGives the scope of the access limit.
accountRegionobject or null (optional)Gives public account-region details when includeAccountRegion is on. Absent when it is off.
accountRegion.countrystring or nullGives the stated country or region.
accountRegion.accuracystring or nullGives X's description of region accuracy.
usernameChangeCountinteger or null (optional)Gives the number of handle changes when includeUsernameChangeCount is on and a count is available.
connectedViastring or null (optional)Gives the app or web source shown by X when includeConnectionSource is on and the detail is available.
usernameHistoryobject[] (optional)Lists past username details. Present only when includeUsernameHistory is on and entries are available.
usernameHistory.handlestring or nullGives a past handle without @.
usernameHistory.changedAtstring or nullGives the reported username change time.
usernameHistory.firstSeenDatestring or nullGives the first known date the account used the handle.
usernameHistory.lastSeenDatestring or nullGives the last known date the account used the handle.
verificationHistoryobject[]Lists current verification details and any requested past entries. Past entries depend on the history switch and maxPastVerificationEntriesPerProfile.
verificationHistory.verifiedTypestring or nullGives the verification type for an entry.
verificationHistory.verifiedAtstring or nullGives the reported verification start time.

Example profile row with username history

{
"rowType": "profile",
"profileId": "66369181",
"handle": "DeptofWar",
"displayName": "Department of War 🇺🇸",
"bio": "Official U.S. Department of War X account.",
"createdAt": "2009-08-17T14:43:00.000Z",
"location": "The Pentagon, Washington, D.C.",
"avatarUrl": "https://pbs.twimg.com/profile_images/1965912244262170624/7NoruMt1_normal.jpg",
"bannerUrl": "https://pbs.twimg.com/profile_banners/66369181/1757107269",
"websiteUrl": "http://War.gov",
"followersCount": 7561637,
"followingCount": 642,
"postsCount": 44732,
"likesCount": 6019,
"mediaCount": 16493,
"listedCount": 18052,
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "Government",
"verificationReason": "This account is verified because it is a government or multilateral organization account. Learn more",
"pinnedPostIds": [],
"professional": {
"type": "Business",
"categories": []
},
"restrictions": {
"isProtected": false,
"withheldCountries": []
},
"verificationHistory": [
{
"verifiedAt": "2010-01-15T18:13:10.370Z"
}
],
"usernameHistory": [
{
"changedAt": "2025-09-05T20:36:09.299Z"
},
{
"handle": "DeptofDefense",
"firstSeenDate": "2011-09-29",
"lastSeenDate": "2025-09-05"
}
],
"sourceInput": "66369181"
}

Example network-member row from a successful current-beta run

{
"rowType": "profile",
"profileId": "17471979",
"handle": "NatGeo",
"displayName": "National Geographic",
"bio": "Step into wonder and find your inner explorer with National Geographic 🌎",
"createdAt": "2008-11-18T21:28:10.000Z",
"location": "Global",
"avatarUrl": "https://pbs.twimg.com/profile_images/2050149546685022208/72MxNUv-_normal.jpg",
"bannerUrl": "https://pbs.twimg.com/profile_banners/17471979/1789591798",
"websiteUrl": "http://www.nationalgeographic.com",
"followersCount": 28069279,
"followingCount": 178,
"postsCount": 73775,
"likesCount": 7568,
"mediaCount": 8638,
"listedCount": 58982,
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "Business",
"verificationReason": "This account is verified because it's an official organization on X. Learn more",
"pinnedPostIds": [
"2121317172936954057"
],
"restrictions": {
"isProtected": false,
"withheldCountries": []
},
"verificationHistory": [
{
"verifiedAt": "2012-09-26T16:57:26.471Z"
}
],
"sourceInput": "NASA",
"networkType": "followers"
}

Region trend row

FieldTypeWhat it does
rowTypestringMarks this row as a trend.
trendNamestringGives the topic name.
trendRankintegerGives its rank in the region.
trendListDateTimestring or nullGives the time of the trend list, when available.
trendQuerystring or nullGives the search query, when available.
trendSearchUrlstringGives the X search link for the trend.
regionIdstringGives the selected region ID for region trends.
regionNamestringGives the selected region name for region trends.
regionCountrystring or nullGives the country or global label for the region.
regionCountryCodestring or nullGives the ISO country code, or null for Worldwide.

Example region trend row from a successful current-beta run

{
"trendName": "Cumhurbaşkanı Yardımcısı",
"trendListDateTime": "2026-11-26T17:40:00.639Z",
"trendQuery": "Cumhurbaşkanı Yardımcısı",
"trendSearchUrl": "https://twitter.com/search?q=Cumhurba%C5%9Fkan%C4%B1%20Yard%C4%B1mc%C4%B1s%C4%B1",
"trendRank": 1,
"rowType": "trend",
"regionId": "23424969",
"regionName": "Turkey",
"regionCountry": "Turkey",
"regionCountryCode": "TR"
}

City trend row

FieldTypeWhat it does
rowTypestringMarks this row as a trend.
trendNamestringGives the topic name.
trendRankintegerGives its rank in the city.
trendListDateTimestring or nullGives the time of the trend list, when available.
trendQuerystring or nullGives the search query, when available.
trendSearchUrlstringGives the X search link for the trend.
cityNamestringGives the selected city name for city trends.
regionCountrystringGives the city's country.
regionCountryCodestring (optional)Gives the ISO country code, when available.

Example city trend row from a successful current-beta run

{
"trendName": "#超特急_Signal",
"trendListDateTime": "2026-11-26T17:04:11.481Z",
"trendQuery": "#超特急_Signal",
"trendSearchUrl": "https://twitter.com/search?q=%23%E8%B6%85%E7%89%B9%E6%80%A5_Signal",
"trendRank": 1,
"rowType": "trend",
"cityName": "Tokyo",
"regionCountry": "Japan",
"regionCountryCode": "JP"
}

Each run returns rows for one chosen target shape. Network-member runs use the profile shape. Optional fields can be absent or null when X does not provide them. With transformFunction, rows can also hold the extra fields your function adds.

💳 Pricing

This Actor uses pay-per-event pricing. Each saved public post, profile, network member, or trend is one billable event. Set a small work limit for a first test, then raise it when you need more rows.

The live Apify Store schedule charges $0.0014 per saved row. This is its only charge. Check the Pricing tab before you run.

Local pricing configuration

The Actor’s local configuration sets a $0.005 run start charge, even for a run with no rows, and $0.0001 per saved post, profile, network member, or trend.

The local configuration also sets the following charges. Each switch can add one charge per profile. They are off by default.

  • Verification history costs $0.0005 for past verification entries from includeArchivedVerificationHistory.
  • Username history costs $0.0002 when includeUsernameHistory adds any history. This can be a change time on its own or a past handle with dates, when known.
  • Account region costs $0.0002 when includeAccountRegion adds a country. Accuracy details alone do not add a charge.
  • Rename count costs $0.0001 for the number of handle changes from includeUsernameChangeCount.
  • Connection source costs $0.0001 for the app or web source from includeConnectionSource.

🔌 Integrations

Use the Apify API, schedules, webhooks, and dataset exports such as JSON, CSV, Excel, XML, or RSS.

❓ FAQ

What happens when the same post or profile matches twice?

The Actor saves the first eligible match. It ignores later matches and keeps the first sourceInput value for that row.

Can one run use more than one result type?

No. Choose posts, profiles, network members, or trends for each run. Inputs for other result types are ignored.

What happens if X stops returning pages during a run?

The Actor keeps valid saved rows and continues with other submitted values. It warns when a value cannot finish. If source access fails and no submitted value completes, the run fails. Each saved row is billed once. A successful empty run can mean no matches, unavailable public content, or a handled input problem. Read the run warnings for the reason.

How do I fetch one post without fetching its thread?

Use directPostUrls for an exact public post URL or numeric ID. Use conversationIds when you want posts from a conversation.

How do I search profiles or collect a network?

Choose searchProfiles. Use searchPhrases with profileSearchQueries to look for a name or topic. If you know the exact handle, profile URL, or user ID, use directTargets with profileLookupTargets. For networks, choose followers or following with profileLookupTargets, or retweeters with retweeterPostUrlsOrIds.

Can I get earlier trend lists for a city?

City mode returns the current list. The recent option returns earlier lists for the selected region. Use the list time and rank to compare topics across those lists.

Can I collect a full historical archive?

No. The Actor returns public data that X exposes for the selected source. It does not promise complete historical coverage.

Why is a field null?

The source may not provide that value for the post, profile, network member, or trend. Private, protected, deleted, suspended, and otherwise unavailable data is outside the product boundary.

Does leaving the work limit empty return everything?

It returns available results until the source runs out or you reach the charge limit. It does not promise every historical post or every profile that X does not expose.

Do I need a Twitter/X login or API key?

No. You do not provide Twitter/X cookies, sessions, credentials, or an API key.

Is this the official Twitter/X API?

No. This is an Apify Actor for public X data and structured dataset rows. Use the official API when you need its own contract.

📝 Changelog

v6.0 (26-11-2026)

  • Removed the quotedPostIds input and the quotedPostIds choice in postDiscoveryMethod. This way to find posts that quote a given post is no longer available. Remove the key and choose a supported search method. There is no direct replacement.
  • Removed includeDirectMessagePermission and canReceiveDirectMessages. The Actor no longer checks if a profile accepts direct messages. There is no replacement. Remove the input from saved runs and the field from exports.
  • Removed includePostClientLabel. The source field now uses only the posting app label X includes with the post. Runs with the old switch off can now get a label. A post that had a label before can now return null if X leaves it out or clears it. Remove the switch from saved inputs and allow both a label and null in exports. There is no switch to get the old result.
  • Removed resultPosition from post and profile rows. The Actor no longer reports where a result appeared in the list it came from. There is no replacement. Remove the field from exports.
  • Removed inReplyToUserId from post rows. The Actor no longer reports the ID of the user a post replies to. There is no replacement. Remove the field from exports.
  • Removed postKind from post rows. The postKinds input still filters post searches, but it does not label each row. Remove postKind from exports. There is no replacement field.
  • Past verificationHistory entries can change or disappear. The Actor no longer uses badge color to report blue verified badge or gold verified badge. A badge on some older profile pages still gives a general verified entry when the page confirms it belongs to that profile. Update exports to accept the general label and allow for missing entries.
  • Get the latest X trends for one or more covered cities. Set trendDiscoveryMethod to city and give each city and country in trendCities. City rows use cityName and regionCountry in place of regionId and regionName.
  • For region trends, set trendListScope to recent to get up to 24 lists, including the latest one. Region rows can also include the country name in regionCountry. Trend rows include trendListDateTime so you can tell the lists apart.
  • Trend rows leave out trendQuery when the link has no search text. Update exports to accept a missing field where they used to get null.
  • The same trend name can now appear more than once for a location, even in one list. If you need one row per name for each location, group your results by location and trendName.
  • Turn on includeUsernameChangeCount to add usernameChangeCount, the number of handle changes X shows. You pay per profile that gets a count.
  • Turn on includeConnectionSource to add connectedVia, the app or web source X shows for the profile. You pay per profile that gets this detail.
  • usernameHistory can now include firstSeenDate and lastSeenDate for past handles. These dates show when the handle was seen. A past-handle entry now leaves out changedAt, and a change-time entry leaves out handle, where both used to give null. Update exports to accept missing keys. maxUsernameHistoryEntriesPerProfile now limits past handles only. Allow for one extra entry when a change time is available.
  • Profile rows now include verificationReason when X provides it.
  • When X includes the original post in a repost, the row uses the original’s text, media, poll, hashtags, links, mentions, quote details, and article. Otherwise it uses the returned post’s content.
  • repostedPost now includes available like, repost, reply, bookmark, quote, and view counts for the original post.
  • authorIsVerified and isVerified can now be true when X reports a government or organization checkmark.
  • isPinned now uses X’s pinned-post list when it is available.
  • When X only gives the older form of post text, the Actor now reads &amp;, &lt;, and &gt; as &, <, and >.
  • restrictions.withheldScope can now be null even when a profile is withheld in some countries. Update exports to accept null where they used to get user when X did not give a scope.
  • Runs now use 128 MB of memory by default when the item limit is 1 to 1024, past verification is off, and past handles are off or limited to 1 to 10 per profile. Other runs use 1024 MB by default. The range is now 128 to 2048 MB.
  • Each saved post, profile, network member, or trend now costs $0.0001, down from $0.0014 per row. Each run now has a $0.005 start fee. Extra profile details are billed separately.
  • If you leave startDate empty, a since: date that applies to the full post query can now set the start. An until: date alone keeps the 30-day default start. When you enter startDate or endDate, the search also applies dates from the query and uses the tighter bounds. Check saved searches that use both kinds of dates.
  • Profile search now uses the handle when a search phrase is a single @handle or X profile URL. It treats commas in other phrases as spaces. Check saved phrases that use commas.
  • Reliability improvements.

v5.0 (28-10-2026)

  • Profile region, past handles, and direct message permission are now off by default. Each one is charged per profile that gets it. To keep them, set includeAccountRegion, includeUsernameHistory, or includeDirectMessagePermission to true. When off, accountRegion is absent, usernameHistory is empty, and canReceiveDirectMessages is null.
  • The post client app label in source is now off by default. It is charged per post that gets a label. To keep it, set includePostClientLabel to true. When off, source is null.
  • Added maxUsernameHistoryEntriesPerProfile to limit past handles per profile. The default is 10. Use 0 for all available handles.
  • Past verification details from includeArchivedVerificationHistory are now charged per profile that gets past entries.
  • A handle with no public profile is now reported as no match, and the run goes on instead of failing.
  • Runs now use 512 MB of memory by default when maxNbItemsToScrape is 1 to 1024 and includeArchivedVerificationHistory is off. Other runs still use 1024 MB. The range is now 512 to 2048 MB.
  • Reliability improvements.

v4.0 (27-10-2026)

  • Renamed input archivedVerificationHistoryLimit to maxPastVerificationEntriesPerProfile to match its form label. The old key no longer works. Move your value to the new key. When it is left empty, the default is now 10 entries per profile instead of 3. Use 0 for all available entries.
  • Added transformFunction to change every result row with your own JavaScript function.
  • Added article.imageUrls with image links from X articles.
  • Removed authorProfileUrl and profileUrl from the result schema and the Overview table, because runs did not fill them. There is no replacement field. Use authorHandle or handle to build the profile link.
  • Runs now use 1024 MB of memory by default, with a range of 1024 to 2048 MB.
  • Missing or deleted posts are now skipped as unavailable instead of failing the run.
  • Profile runs now say at the start that the first profile can take a few minutes.
  • Reliability improvements.

v3.0 (25-10-2026)

  • searchQuery now takes a list so one run can search several queries. Change a string such as "OpenAI" to ["OpenAI"].
  • Network collection is now part of Profiles. Replace target: "networkMembers" with target: "searchProfiles". Replace the input key networkType with profileDiscoveryMethod, using followers, following, or retweeters. Replace networkProfileHandles with profileLookupTargets for followers and following. Keep retweeterPostUrlsOrIds for retweeters.
  • Removed near and geocode because matching locations could not be confirmed. Remove these keys from saved inputs. There is no place-name or radius replacement. placeId filters posts with an attached X place ID; it does not search a radius.
  • Added available poll results, article text, mentions, attached places, and original-post details for reposts to post rows.
  • Added available profile region, website, message settings, professional details, restrictions, and verification and username history. Past badge details are off by default. Set includeArchivedVerificationHistory to true to collect them. archivedVerificationHistoryLimit defaults to 3 per profile; use 0 for all available entries. Current verification details are still collected with past badge details off.
  • Direct post lookup now also accepts numeric post IDs in directPostUrls.
  • maxNbItemsToScrape now accepts 0 to collect all available matches.
  • Runs now use 256 MB of memory by default, with a range of 256 to 512 MB.
  • Reliability improvements.

v2.0 (01-09-2026)

  • Added direct public profile lookup by handle, profile URL, or ID.
  • Added public post retweeter collection as a profile network option.
  • Added author-verification filters for post searches.
  • Changed post fields searchQuery and sourceUrl, and profile field searchQuery, to sourceInput to show the value that found each row. Update exports to read sourceInput.
  • Removed post field sourceType and profile field networkOwnerHandle as result details were simplified. These fields have no direct replacement. sourceInput gives the submitted value, not its type or a separate network owner. Update exports that use the removed fields.
  • Removed trend field tweetVolume, with no replacement. Remove it from exports.
  • Replaced input directPostIds with directPostUrls for direct post lookup. Set postDiscoveryMethod to directPosts. Convert each ID to a full X post URL and put the URLs in directPostUrls.
  • Improved handling of X source failures by preserving valid rows and clearly reporting when a run cannot finish.

v1.0

  • Made each run explicitly choose posts, profiles, network members, or trending topics.
  • Added author locations and structured media details to post rows, with clearer profile and trend result views.
  • Moved post media links from imageUrls, videoUrls, and gifUrls into mediaDetails. Update exports to read the media type and URL there.
  • Removed profile field twitterUrl; use profileUrl for the public profile link. Removed scrapedAt from profile and trend rows, with no replacement. Update exports that use these fields.
  • Removed inputs within and shouldIncludePromotedPosts, with no replacement. Remove these keys from saved inputs.
  • Improved recovery when public X posts or responses are unavailable.

v0.4

  • Added direct post collection by URL or ID.
  • Added conversation and quote discovery.
  • Added follower and following network collection.
  • Improved handling when Twitter/X returns incomplete responses.

v0.3

  • Added post search URLs and advanced search syntax.
  • Added Latest + Top search and link, media, and location filters.
  • Added richer flat post fields.
  • Added clearer handling for unsupported X URLs.

v0.2

  • Added Search Profiles for query-based Twitter/X profile discovery with flat profile rows that show which search found each profile.

v0.1

  • Added Trending Topics and supported trend regions.
  • Added grouped target inputs and pay-per-event pricing.

v0.0

  • Initial release.

🆘 Support

For issues, questions, or feature requests, file a ticket and I'll fix or implement it in less than 24h 🫡

Made with ❤️ by Maxime Dupré