News for hackers. Stuff that matters.
Re:A new and improved Twitter API by picodguyo on Friday July 17, 2020 @08:38AM (#23869836)
This is what they cite as the key benefits:

"A cleaner API that's easier to use, with new developer features like the ability to specify which fields get returned, or retrieve more Tweets from a conversation within the same response

Some of the most requested features that were missing from the API, including conversation threading, poll results in Tweets, pinned Tweets on profiles, spam filtering, and a more powerful stream filtering and search query language "

I really doubt this is what developers have been yearning for in a revamped Twitter API. Previous APIs provided plenty of functionality, it's just that too many of us were burned by the ever-shifting policies around API use. I personally went from envisioning Twitter as the social data pipeline of the web to vowing never to touch it again within the span of one year. I can't believe this announcement wouldn't touch on policy and developer relations at all.

Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @09:40AM (#23870341)
> conversation threading

Actually, this was a major point of API failure when I last tried to use it. Did you know that, with the current API, there's no way to retrieve the replies to a tweet? This makes it impossible to build tools that, say, allow you to visualize a tweet thread, because you simply can't fetch the thread.

So I'll say that, as a casual, social, and informational user of Twitter (i.e. not business, not adtech, not academia), this announcement gives me a little hope that we might see a resurgence in 3rd party apps that provide more powerful ways of interfacing with Twitter. At least, that's my hope, maybe I'm naive that they'd really allow this.

Re:A new and improved Twitter API by blueline on Friday July 17, 2020 @11:06AM (#23871296)
> This makes it impossible to build tools that, say, allow you to visualize a tweet thread

it is possible -- it unfortunately happens to be part of my job description to do so

one of the sibling comments basically has it right. you can build it from the bottom up (where "bottom" is the deepest tweet in the thread you know about, one way or another).

let me tell you though, i am _very_ excited for this new API, because there is some absolutely horrible code i will be able to delete as a result of it

Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @11:21AM (#23871490)
Is your work open source/viewable anywhere? I've written a few (probably ToS violating) plugins for Twitter myself, and would be curious to see.
Re:A new and improved Twitter API by blueline on Friday July 17, 2020 @03:14PM (#23874295)
unfortunately not, but luckily with this new api it shouldn't matter for too much longer :-)
Re:A new and improved Twitter API by jccalhoun on Friday July 17, 2020 @03:00PM (#23874146)
Conversation threading is huge. I've had to use a few tools that keep getting broke to try to manually capture replies and threads to tweets for academic use. (https://www.exquisitetweets.com/ and https://treeverse.app/ which seems broken now)If a tool comes out that can do this easily (I'm no programmer so command line stuff if a little beyond me) then I will be very happy.
Re:A new and improved Twitter API by toyg on Friday July 17, 2020 @09:47AM (#23870399)
> there's no way to retrieve the replies to a tweet

My crusty old version of Tweetbot has been doing that for years...? Maybe not perfectly for tweets with hundreds of replies, but well enough.

Re:A new and improved Twitter API by jdminhbg on Friday July 17, 2020 @12:07PM (#23872017)
I'm not sure which hack Tweetbot is using to do this (I think search as noted below), but you can tell it's a hack because it only works for recent-ish tweets. If you go to a tweet a couple weeks old and view details, you can see that it won't fill in the replies.
Re:A new and improved Twitter API by jeromegv on Friday July 17, 2020 @01:40PM (#23873229)
Can confirm, Tweetbot never has "all" the replies.
Re:A new and improved Twitter API by roberto on Friday July 17, 2020 @04:13PM (#23874965)
The way clients usually do this is by fetching all mentions to the user after a given timestamp (of the original tweet), and collecting only those that are replies to the tweet. Since there's a limit on how many mentions you can get, you might not get all the replies.

It's been like that at least since 2013.

Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @10:01AM (#23870535)
Any idea how it's done in the API? I know you can retrieve a tweet's parent, but not its children.
Re:A new and improved Twitter API by anaphor on Friday July 17, 2020 @10:46AM (#23871067)
You have to use the search feature to look for tweets and then look at the parent tweet ID. This is what bots like threadreaderapp, etc do. You can construct it from the bottom up if you know the ID of the last tweet in the thread of responses too, but you wouldn't know that a priori unless the user gives it to your software somehow.
Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @11:20AM (#23871475)
But... that's not a tree -- there's still no way to discover all leaves. That's just a thread/singly linked list.
Re:A new and improved Twitter API by anaphor on Friday July 17, 2020 @12:36PM (#23872377)
Yes, I forgot to mention that. You need to know the IDs of all the leaf nodes of the thread or else you can only partially reconstruct it.
Re:A new and improved Twitter API by abluecloud on Friday July 17, 2020 @11:21AM (#23871487)
so the api is literally backwards
Re:A new and improved Twitter API by wyldfire on Friday July 17, 2020 @10:05AM (#23870579)
Step 0: build a tree including all tweets,

...

;)

Re:A new and improved Twitter API by benmanns on Friday July 17, 2020 @10:19AM (#23870712)
Possibly using the HTML API.
Re:A new and improved Twitter API by not_really on Saturday July 18, 2020 @11:31PM (#23886781)
The final frontier
Re:A new and improved Twitter API by bad_user on Friday July 17, 2020 @08:51AM (#23869931)
Speak for yourself. Their current API makes third party clients very difficult because they lack features and I hoped they'll announce something like this.

Don't get me wrong, I wouldn't mind them touching on the developers relations they want to build, but no company of their size will admit to wrongdoing in the past.

Also words aren't worth anything unless they come in a legally binding contract that can't change on a whim.

Re:A new and improved Twitter API by Macha on Friday July 17, 2020 @09:04AM (#23870021)
Given the examples of promoted API usage, it doesn't seem to have any backing away from their stance that they don't want third party clients. Add to that their API pricing was as I understand it not feasible for any new client app used by end users which gets any serious amount of usage and needs to move to paid tiers.
Re:A new and improved Twitter API by detaro on Friday July 17, 2020 @10:38AM (#23870972)
I wouldn't be surprised if you get an API that'd be better for third-party clients at the same time as all requests for API access for third-party clients are denied.
Re:A new and improved Twitter API by kevincox on Friday July 17, 2020 @09:58AM (#23870510)
Most importantly none of these items, except maybe threads require a new API. Poll results would just be added to responses, pinned tweets would be a new flag to the search endpoint and a more powerful filtering and search language can just replace the search API. It seems weird that they are tearing it all down and forcing everyone to migrate.
Re:A new and improved Twitter API by raxxorrax on Friday July 17, 2020 @09:28AM (#23870213)
Just out of curiosity: What type of application would have you interace with twitter at all? For ad purposes, some form of analysis? News aggregation?
Re:A new and improved Twitter API by ilikehurdles on Friday July 17, 2020 @09:33AM (#23870277)
Product support ticket systems use twitter and other social media sites to respond to customer feedback, as well as track and escalate issues. When you tweet complaints about your service at Comcast, there's probably a ticket created that someone from their support staff picks up. I think there's a perception that the quicker responses that these tools facilitate can help prevent negative feedback from going viral and doing broader harm to the company.
Re:A new and improved Twitter API by PeterCorless on Friday July 17, 2020 @03:21PM (#23874374)
Right. And so, for those CRMs it is vital to not just catch the first tweet. Being able to catch a thread is important to catch the rant on the third tweet in a thread that explains the exact problem.
Re:A new and improved Twitter API by dewey on Friday July 17, 2020 @09:30AM (#23870244)
Any Twitter client?
Re:A new and improved Twitter API by alicemaz on Friday July 17, 2020 @08:20PM (#23877672)
if they reintroduce user streams I'll be pleased, if they ease off the per-app user limit I'll be elated. it doesn't really mean anything if they promise such and such policies or initiatives otherwise we'd all be holding our breath for bluesky. what's important is what they actually end up doing, which I guess we'll find out next week
Re:A new and improved Twitter API by cheesecracker on Saturday July 18, 2020 @05:44AM (#23880258)
Same here, I just don't trust them enough to build on their API anymore.