Skip to content

Instantly share code, notes, and snippets.

@ekovac
ekovac / BookmarkAPI_en.md
Created September 23, 2020 22:07 — forked from stepney141/BookmarkAPI_en.md
WIP: Twitter Undocumented Endpoints for Bookmark

Twitter Undocumented Bookmark API (WIP)

I found out the endpoints for bookmark with Chrome Developer Tools: GET timeline/bookmark, POST bookmark/entries/remove, POST bookmark/entries/remove. The rate limits below are values returned by an official endpoint GET application/rate_limit_status.

This document is still a work in progress because I got stuck in GET timeline/bookmark. Please let me know if you find how to use it.

Notes

  • It is necessary that x-csrf-token in a request header and ct0 in a cookie are the same value. Twitter uses them to avoid CSRF attacks. I recommend that you extract the values from your browsers.
  • All of the endpoints requires OAuth2 Authorizations. Note that they refuse OAuth2 Bearer tokens obtained from POST oauth2/token.
  • You can easily reach the rate limit and get HTTP 429 Error (too many requests), so you should be careful about how many requests you send.
[671766.579653] mce_notify_irq: 1 callbacks suppressed
[671766.579654] mce: [Hardware Error]: Machine check events logged
[671766.579658] EDAC sbridge MC0: HANDLING MCE MEMORY ERROR
[671766.579659] EDAC sbridge MC0: CPU 0: Machine Check Event: 0 Bank 7: 8c00004000010090
[671766.579660] EDAC sbridge MC0: TSC 80059eba4c3860
[671766.579661] EDAC sbridge MC0: ADDR 557f59e80
[671766.579662] EDAC sbridge MC0: MISC 14042c286
[671766.579663] EDAC sbridge MC0: PROCESSOR 0:50663 TIME 1658426176 SOCKET 0 APIC 0
[671766.579677] EDAC MC0: 1 CE memory read error on CPU_SrcID#0_Ha#0_Chan#0_DIMM#0 (channel:0 slot:0 page:0x557f59 offset:0xe80 grain:32 syndrome:0x0 - area:DRAM err_code:0001:0090 socket:0 ha:0 channel_mask:1 rank:0)