Someone Already Reverse Engineered The Threads By Instagram API

Manpreet Singh
3 min readJul 11

Welcome back! Threads is a new application developed by Meta, the same people who created Instagram, WhatsApp, and FaceBook, interestingly enough, someone has already reverse-engineered the Threads application, so let’s take a look at some of this code! Here is a link to the GitHub repo where the developer left all of the code:

Starting off, this specific “reverse-engineered” API was developed almost entirely with TypeScript (with a little bit of Javascript):

Taking a look at the actual files within the project itself, we can see this project is almost broken down into two different structures, we have the threads-api folder and the threads-api-ui folder as well:

Creating actual content within Threads is actually fairly easy with this project, if you want to create a threads with only texts on it you can use the following structure:

import { ThreadsAPI } from 'threads-api';

const main = async () => {
const threadsAPI = new ThreadsAPI({
username: '_junhoyeo', // Your username
password: 'PASSWORD', // Your password

await threadsAPI.publish({
text: '🤖 Hello World',


This is an example of the output from running this code:

You can even make threads with images, link attachments, and even reply to other threads using this API as well!

Without a doubt, this is an awesome project to check out especially if you plan on actively using Threads! Do you plan on checking this project out? I would love to hear your thoughts about this!

Thanks So Much!

Feel free to watch my videos on YouTube or connect via Twitter if you have any thoughts or questions:

Thanks so much for your support!