Skip to main content
  1. Home
  2. Social Media
  3. Legacy Archives

Twitter API will get language detection and ‘top tweets’ filtering

Add as a preferred source on Google
twitter code
Image used with permission by copyright holder

Twitter’s API is getting two important additions to its metadata, the company announced via blog post. Developers can now detect a tweet’s language, as well as algorithmic curation to surface “high value” tweets.

First off, to detect the language of a tweet, the updated API uses Twitter’s machine language detection algorithm, which should help developers better serve its users (especially to an international crowd) with language specific aggregation, analysis, and curation of tweets. For instance, developers can manually pick out the types of languages that they’d like to have surface in their app while burying tweets from unspecified languages. In one scenario, the parameter “language=ja” would display only tweets in the Japanese language. If you’re wondering where the “ja” abbreviation comes from, Twitter uses the two-letter ISO 639-1 code, which corresponds to certain languages.

twitter meta data for language detection
Image used with permission by copyright holder

Twitter’s second update will offer developers the option to choose from “none,” “low,” “medium,” and “high” values, meaning that developer can tell Twitter how much they’d like to filter streaming tweets. This part of the API would be used to separate the important tweets from the noise in high-volume feeds, per Twitter’s own algorithm which sorts “high value” tweets from the rest. To get a better sense of what the values mean, Twitter’s “Developer Advocate,” Arne Roomann-Kurrik, writes that the medium entries, “roughly correlate to the ‘Top Tweets’ results for searches on twitter.com.”

Recommended Videos

This piece of info clues us into what’s actually powering the streams. Early last month, Twitter revealed that its real-time search engine was partially human powered (via Amazon’s Mechanical Turk) to better add context to tweets. The human element, for now, is the best and fastest way to add context to topics like “binders full of women,” which may suddenly have a new meaning overnight.

To get a better sense of how Twitter’s human search engine plays into this updated API, we’ll have to get technical for a moment. Developers can set one of the four values mentioned above, which in the code would sit next to the “filter_level” parameter. If “filter_level”: “none” then this defines no filtering. “Medium” on the other hand offers the most filtering, and if a developer has chosen the “medium” parameter, all “Top Tweets” that Twitter spits out into the developer’s client are search results that have been influenced by Twitter’s human real-time search engine.

For now, it looks like a “high” value doesn’t yet correspond to any amount of filtering. But say that “medium” does correspond to the human powered search results, which Roomann-Kurrik seems to suggest. That would mean that Twitter for now is setting aside a type of filter that would be far more powerful than “medium.” So any development here is worth keeping an eye on.

The “value” based filters will be launching on February 20, and the language filter will follow shortly thereafter, although a hard date hasn’t yet been set for that.

Francis Bea
Former Digital Trends Contributor
Francis got his first taste of the tech industry in a failed attempt at a startup during his time as a student at the…
I picked 6 Amazon Prime Day deals to make your home office more comfortable
Give your workspace a much-needed upgrade without paying full price.
best-ergonomic-chair-standing-desk-prime-day-deal-2026

Prime Day is a good excuse to finally upgrade the home office setup where you spend most of the day working. I’ve rounded up six ergonomic office chairs and standing desks that can make your workspace more comfortable, flexible, and productive. Whether you need better support or more room to move, these deals cover different budgets.

Flexispot ErgoX Ergonomic Office Chair - $250 (29% off)

Read more
Instagram may soon let you lurk on profiles without leaving a trace
Instagram may finally solve your biggest fear of accidentally liking an old post.
Instagram on an iPhone.

Have you ever scrolled through someone's profile and accidentally liked a photo from four years ago? Instagram may be working on a way to stop that.

Leaker and reverse engineer Alessandro Paluzzi posted on X on Oct. 3 about a read-only mode the app appears to be developing. The feature would essentially turn profile browsing into spectator mode, removing several ways to interact with an account.

Read more
X is apparently cooking up a cheaper verified badge, more Grok AI subscriptions are also on the table
X’s next subscription shake-up could put Grok in nearly every tier
Social Media

X (formerly Twitter) could be planning another overhaul, and this time, Grok might be moving to more subscription tiers. SpaceXAI is considering combining X and Grok into a new four-tier subscription structure, according to an internal document viewed by Bloomberg.

The proposed lineup would stretch from a free option with tighter Grok usage limits all the way to a $100-per-month Ultra plan aimed at power users. A new $8-per-month Lite plan is in the works, which could include access to Grok, a blue verified checkmark, and fewer ads on X.

Read more