Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
484 stars 46 forks source link

Added query parameter for searching tweets from a list with given id #622

Closed Rishikant181 closed 1 month ago

Rishikant181 commented 1 month ago

Searching from lists can now be accomplished by using the list TweetFilter parameters, as demonstrated below:

import { Rettiwt } from 'rettiwt-api';

// Initialzing new Rettiwt instance
const rettiwt: Rettiwt = new Rettiwt({ apiKey: '<API_KEY>' });

// Searching the most recent 10 tweets from a list with id '1234567890', excluding replies
rettiwt.tweet.search({ list: "1234567890", replies: false }, 10).then(res => console.log(res)).catch(err => console.log(err));