Threads Api Versions Save

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.

the-end

8 months ago

Today, I received a cease and desist letter from Meta, asking me to take this project down. Consequently, I decided to stop future development of this project and related ones:

Warning As of September 8, 2023, the development of the "threads-api" project have been halted and discontinued due to communication received from Meta Platforms, Inc. (β€œMeta,” previously known as Facebook, Inc.). This repository, along with related projects threads-py and react-threads, has been archived and will no longer receive updates or maintenance. The previous documentation related to this project has been moved to PRESERVED.md as requested.

The "threads-api" was developed for educational and research purposes only. Based on the notification from Meta, it's clear that using or distributing the code might violate the terms of service of Meta Platforms, Inc. and its associated services, including but not limited to Instagram and Threads. Any actions or activities related to the material contained within this repository are solely the user's responsibility. The author and contributors of this repository do not support or condone any unethical or illegal activities.

C_D_Scraping

It was a wonderful journey, and thank you to everyone for being a part of it. Look forward to seeing you in future projects!

πŸ₯Ήβ™₯️

These are the final release notes I forgot to update:

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.6.3...the-end

v1.6.3

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

What's Changed

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.6.2...v1.6.3

v1.6.2

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

Summary

  • Thanks to @stevenlafl, we got a bunch of methods added in this release πŸš€
  • ✨ Full User Profile & Thread(Post) Details with Authorization β€” getUserProfileLoggedIn and getThreadsLoggedIn.
  • πŸ”‡ Mute/Unmute a user or a user's post β€” mute and unmute with userID (required, thanks to @aleclarson) and postID (optional)
  • πŸ”‡ Block/Unblock a user β€” block and unblock
  • πŸ”” Notifications β€” (fetch) getNotifications, (update view state) setNotificationsSeen
    let data = await threadsAPI.getNotifications(
      ThreadsAPI.NotificationFilter.MENTIONS, // {MENTIONS, REPLIES, VERIFIED}
    );
    
    if (!data.is_last_page) {
      const cursor = data.next_max_id;
      data = await threadsAPI.getNotifications(ThreadsAPI.NotificationFilter.MENTIONS, cursor);
    }
    
  • πŸ” Search Users β€” searchUsers
  • πŸ’Ž Fetch Recommended Users β€” getRecommendedUsers

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.5.4...v1.6.2

v1.5.4

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.5.3...v1.5.4

v1.5.3

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

Summary

  • πŸ› οΈ Fix getToken to properly return userID
  • πŸ› οΈ Rename Internal Method: _getProfilePage -> _getCleanedProfileHTML

What's Changed

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.5.2...v1.5.3

v1.5.2

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.5.1...v1.5.2

v1.5.1

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

Summary

  • πŸ› οΈ Fix broken type import (TypeScript)
  • πŸ› οΈ Use this.httpAgent/this.httpsAgent in login

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.5.0...v1.5.1

v1.5.0

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

Summary

await threadsAPI.publish({
  text: 'πŸ€– Threads with Sidecar',
  attachment: {
    sidecar: [
      'https://raw.githubusercontent.com/junhoyeo/threads-api/main/threads-web-ui/app/opengraph-image.jpg?v=2',
      'https://github.com/junhoyeo/threads-api/raw/main/.github/cover.jpg',
    ],
  },
});
  • ✨ We now support Sidecar Attachments! This means you can now upload multiple images, which is shown as a carousel in your threads.
  • ✨ The publish method's interface has been changed once again! url and image options have been deprecated and replaced with a single attachment option which can be { url }, { image }, or { sidecar }. This is more restrictive as Threads only permit a single rich attachment in the first place.
    • πŸ› οΈ Also, upload IDs will never collide in uploadImage. πŸŽ‰
  • ✨ ThreadAPI related types had been refactored into namespace ThreadsAPI. (See https://github.com/junhoyeo/threads-api/pull/198)
  • πŸ“Œ Note: we still have full backward compatibility with the previous version!

What's Changed

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.4.7...v1.5.0

v1.4.7

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

What's Changed

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.4.6...v1.4.7

v1.4.6

9 months ago

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

What's Changed

New Contributors

Full Changelog: https://github.com/junhoyeo/threads-api/compare/v1.4.5...v1.4.6