Twi [](https://deno.land/x/twi) [](https://developer.twitter.com/en/docs/twitter-api)

October 3, 2022 ยท View on GitHub

Twitter API client for Deno ported from twitter-api-typescript-sdk.

Example

import { Client } from "https://deno.land/x/twi/mod.ts";

const client = new Client("BEARER_TOKEN");

const stream = client.tweets.sampleStream({
  "tweet.fields": ["author_id"],
});
for await (const tweet of stream) {
  console.log(tweet.data?.author_id);
}

Check out examples/ for more examples or see this real-word bot.