Search X.com for Tweets, and Get Tweets & Username (BASIC API)

Searches x.com for recent tweets, and for each tweet, returns: tweet Id, tweet, userId, username and name. Note: This uses the Basic Tier Twitter API, which, at time of writing, is paid.
Import Workflow

-------------------------------------------------------------------------------- subject: cranq.ai flow export version: 1.0 title: X.com: Get Tweets (w/ usernames) for Search Term ------------------------------------ BEGIN ------------------------------------- eyJmbG93Ijp7ImlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwidXNlcklk IjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwidGl0bGUiOiJYLmNvbTogIEdl dCBUd2VldHMgKHcvIHVzZXJuYW1lcykgZm9yIFNlYXJjaCBUZXJtIiwiZGVzY3JpcHRpb24iOiJGaW5k cyBUd2l0dGVyIHBvc3RzIHdpdGggdGhlIHNwZWNpZmllZCBzZWFyY2ggdGVybSBmcm9tIHRoZSBwcmV2 aW91cyAyNCBob3Vycywgd3JpdGVzIHBvdGVudGlhbCBjb21tZW50cyBmb3IgdGhlbSwgYW5kIHNlbmRz IHRoZW0gaW4gYW4gZW1haWwuIiwiY3JlYXRlZEF0IjoxNzEzNjE2OTY1Njk1LCJ1cGRhdGVkQXQiOjE3 MTM2MTcxNDg3NTAsImFjY2Vzc2VkQXQiOjE3MTM2MTcxNDg3NTB9LCJncm91cHMiOltdLCJzdGVwcyI6 W3siaWQiOiJpZC1iYmZkNTUiLCJ0aXRsZSI6IkdldCByZWNlbnQgVHdlZXRzIiwiZGVzY3JpcHRpb24i OiJJIHdhbnQgdG8gbGlzdCBkZXRhaWxzIGZvciAxMCB0d2VldHMgZm9yIHRoZSBwcm92aWRlZCBzZWFy Y2ggdGVybSB0aGF0IHdlcmUgY3JlYXRlZCBpbiB0aGUgbGFzdCAyNCBob3VycywuICBEb24ndCBpbmNs dWRlIFJldHdlZXRzLCBvbmx5IG9yaWdpbmFsIHBvc3RzLlxuXG5Gb3IgZWFjaCB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dHBzOi8vYXBpLnR3 aXR0ZXIuY29tLzIvdXNlcnMvJHt0d2VldC51c2VySWR9YDtcbiAgICAgICAgY29uc3QgcmVzcG9uc2Ug PSBhd2FpdCBheGlvcy5nZXQodXJsKTtcbiAgICAgICAgY29uc3QgeyBuYW1lLCB1c2VybmFtZSB9ID0g cmVzcG9uc2UuZGF0YS5kYXRhO1xuXG4gICAgICAgIHR3ZWV0Lm5hbWUgPSBuYW1lO1xuICAgICAgICB0 d2VldC51c2VybmFtZSA9IHVzZXJuYW1lO1xuXG4gICAgICAgIHR3ZWV0c1dpdGhOYW1lLnB1c2godHdl ZXQpO1xuICAgIH1cblxuICAgIHJldHVybiB7IHR3ZWV0c1dpdGhOYW1lIH07XG59IiwiZW50cnlGdW5j TmFtZSI6ImFkZE5hbWVzVG9Ud2VldHMiLCJkZXBlbmRlbmNpZXMiOlsiYXhpb3MiXSwic3VtbWFyeSI6 IkFkZHMgbmFtZSBhbmQgdXNlcm5hbWUgdG8gZWFjaCB0d2VldCBvYmplY3QgaW4gdGhlIGFycmF5IHVz aW5nIHRoZSBUd2l0dGVyIEFQSS4iLCJhcGlzIjpbInR3aXR0ZXIiXSwic2lnbmF0dXJlIjoiZXlKemFX Y2lPaUpoWTJrMlRUaExiV2RtTDI5RVEyeG5NemM1Wm05SVFubG1PWGxrZUV4VmVHSkhkRE5RWlVkRmNX RkZNRkJ6VVc1V1J6ZHVXV2dyU1hwVFIxaHlVa3BXWVdWNFpVdEtXRmxyWTJGUkt6UkhTR014V2xSRVFU MDlJaXdpY21WMklqb3hOekV3T0RNME1UZzBMQ0ptYjNKdFlYUWlPaUl4SWl3aWRtVnljMmx2YmlJNklq RWlmUT09IiwicGFyYW1ldGVyc0hhc2giOiIxMzlmYmQxMjE5OWM0NzVlZWVhMjc4MTY5NGQ4ZGE4YTQ1 NWU4Zjc3In19XSwicGFyYW1ldGVycyI6W3sia2V5IjoiU2VhcmNoIFRlcm0ifV19 ------------------------------------- END --------------------------------------

Inputs
AI Description
Required connections
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected