junhoyeo / threads-api

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

Instagram # number to join Threads #164

Open AayushGithub opened 11 months ago

AayushGithub commented 11 months ago

Instagram has started to put a badge on user profiles that indicates the β€˜n-th’ user to make that Threads.net account. Is there a way to access this through the API.

billy-the-ape commented 11 months ago

Looks like this comes from instagram api's /users/<id>/info in the app in a property called text_post_app_joiner_number. Full request example here: https://pastebin.com/2Z7wrHBz if anyone wants to try it out and/or take on the work. I'll be out of commission until Monday

This call returns a ton of data -- email, phone number, whatsapp number, on & on (make the request above if you ever wondered what Jennifer Lopez's phone number is LOL) -- I assume the user has made it all public though... Just the typing for this response object is ~300 lines of code πŸ˜… (https://transform.tools/json-to-typescript ftw)

I guess we could have a getUserProfileLoggedIn or something that makes this call instead of the gql which just gives back basic data u see on the unauthenticated website...

junhoyeo commented 11 months ago

If anyone wants to try it out and/or take on the work. I'll be out of commission until Monday

Woah, I owe you this β€” as also a dev I would really love this fetcher going live. Will be happy to work on it myself!

junhoyeo commented 11 months ago

I guess we could have a getUserProfileLoggedIn or something that makes this call instead of the gql which just gives back basic data u see on the unauthenticated website...

Yup it's also reasonable πŸ‘