junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.59k stars 133 forks source link

Add support for single thread info #12

Closed codespikey closed 1 year ago

codespikey commented 1 year ago

You're doing great work, can you also add support for single thread search using the link: https://www.threads.net/t/CuVvNbmtr06

junhoyeo commented 1 year ago

Sure, will work on it 👍

junhoyeo commented 1 year ago

@codespikey Just released 1.0.6 with the ability to read from Thread URLs.

const postID = await threadsAPI.getPostIDfromURL('https://www.threads.net/t/CuVvNbmtr06');
const post = await threadsAPI.getThreads(postID);

Super simple!