# How to GET Tweets from a User based on Keywords

**URL:** <https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [February 26, 2022, 1:40pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984 "2022-02-26T13:40:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhnpp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mhnpp/32/10308_2.png) [@mhnpp](https://community.postman.com/u/mhnpp)\
**Post date:** [February 26, 2022, 1:40pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/1 "2022-02-26T13:40:40Z")

</div>

Hello, I’m using the Academic Track of Twitter with Twitter API v2. I am going to do an archive search. I want Tweets from individual users based on keywords for a particular period of time. Any help is appreciated

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 26, 2022, 9:36pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/2 "2022-02-26T21:36:27Z")

</div>

Hi @mhnpp  
Could you share some screenshots of what you have tried so far?  
Have you followed the [Twitter quick start docs](https://developer.twitter.com/en/docs/twitter-api/tweets/search/quick-start/recent-search)?  
And the [getting started with Postman docs](https://developer.twitter.com/en/docs/tutorials/postman-getting-started)

---

<div class="post-metadata">

**Author:** ![mhnpp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mhnpp/32/10308_2.png) [@mhnpp](https://community.postman.com/u/mhnpp)\
**Post date:** [February 27, 2022, 11:00am UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/3 "2022-02-27T11:00:38Z")

</div>

Yes. I have read the suggestions and have collected public tweets using keywords. Now I am looking for Tweets mentioning COVID-19 from the Twitter account of the Ministry of External Affairs of India during the period of Jan 2020 - December 2020. Only Tweets. No Retweets.

I am completely new here. Don’t know to code. So, I am using postman imported collection.

This is how I tried.

[https://api.twitter.com/2/users/441636351/tweets?max\_results=99&tweet.fields=&user.fields=public\_metrics&start\_time=2020-01-01T00:00:00Z&end\_time=2020-12-31T11:59:59Z&query=](https://api.twitter.com/2/users/441636351/tweets?max_results=99&tweet.fields=&user.fields=public_metrics&start_time=2020-01-01T00:00:00Z&end_time=2020-12-31T11:59:59Z&query=)(India Corona OR COVID-19)lang:en -is:retweet

 ![Covid-19](https://us1.discourse-cdn.com/getpostman/original/3X/d/8/d8eefa4cc734981ad04548fee9b0ab64cb61f2d5.png)

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 28, 2022, 1:05pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/4 "2022-02-28T13:05:50Z")

</div>

401 unauthorised would suggest youre not authorised to access the endpoint… have you done step two in [this link](https://developer.twitter.com/en/docs/tutorials/postman-getting-started).

> Next, add a variable for all of the different keys and tokens that you’ve generated via the Apps dashboard into the table.

---

<div class="post-metadata">

**Author:** ![mhnpp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mhnpp/32/10308_2.png) [@mhnpp](https://community.postman.com/u/mhnpp)\
**Post date:** [March 2, 2022, 6:13pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/5 "2022-03-02T18:13:02Z")

</div>

Hi w4dd325

Thank you for your time. But I have completed the authorisation. And I am able to access Tweets from Indian Embassy in Melbourne - @cgimelbourne –  
I used Timelines (User Tweet Timeline by ID) and ran the following imported commands.

[https://api.twitter.com/2/users/2963223496/tweets?max\_results=100&tweet.fields=&user.fields=public\_metrics&start\_time=2020-01-01T00:00:00Z&end\_time=2021-12-31T11:59:59Z](https://api.twitter.com/2/users/2963223496/tweets?max_results=100&tweet.fields=&user.fields=public_metrics&start_time=2020-01-01T00:00:00Z&end_time=2021-12-31T11:59:59Z)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:54pm UTC](https://community.postman.com/t/how-to-get-tweets-from-a-user-based-on-keywords/32984/6 "2024-12-12T12:54:15Z")

</div>

Closed on December 12, 2024, 12:54pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
