A serverless function written in Python and Flask to retrieve Twitter data such as trends, search queries, and hashtags, as well as user information.
https://twitterdata.vercel.app/
GET /gettrends
GET /search?query=<your_query>
Parameter | Type | Description |
---|---|---|
query |
string |
Required. |
For query involving space use + instead of space
GET /user?username=<your_username>
Parameter | Type | Description |
---|---|---|
username |
string |
Required. |
GET /hashtag?query=<your_query>
Parameter | Type | Description |
---|---|---|
query |
string |
Required. Do Not Include # |
Clone the project
git clone https://github.com/tanuj-22/serverless_function_twitter_data.git
Go to the project directory
cd serverless_function_twitter_data
Install dependency vercel-cli
npm i -g vercel
Run local server
vercel dev
To deploy this project run
vercel deploy