Twitter (X) Like Bot: What X Allows and a Compliant Like Queue

By TwitterAPI.io Team•13 min read
Diagram comparing an auto-like loop on X (keyword search, like every post, likely error 226, rate limit, lock or suspension) with a like queue (read with advanced_search, rank by likes per 1,000 views, a person approves, one like_tweet_v2 call from your own account).
An auto-like loop vs a human-in-the-loop like queue: reads are automated, every like is a person's decision.
TL;DR
  • What it is: a script that likes posts automatically, usually every post matching a keyword. Hosted "auto liker" tools and old GitHub scripts all do some version of this loop.
  • What X says: write actions must follow X's Automation Rules; the developer policy bans "bulk, aggressive, or spammy actions" and lists likes among engagement that cannot be paid for. The automation rules themselves live at help.x.com/en/rules-and-policies/x-automation.
  • What happens to loops: error 226, rate limits, locks and suspension are the common outcomes of unattended liking; see our error 226 guide.
  • The compliant build: read with /twitter/tweet/advanced_search (no X account needed), rank, then a person approves each like and /twitter/like_tweet_v2 sends one like from their own account, followed by a fixed pause.
  • Real baseline: 4.3 likes per 1,000 views is the pooled median across 631 organization posts; account medians ranged from 2.5 to 9.5.
  • Cost: reads $0.15 per 1,000 posts returned; each successful like 60 credits ($0.0006), errors not charged; one /twitter/user_login_v2 login is $0.10.

Search "twitter like bot" and the results split into two camps: hosted auto-liker services that promise growth on autopilot, and old open-source scripts (some archived, some driving a browser with Selenium) that log in and like every post matching a keyword. Few of them say what X's rules say about this, what tends to happen to the account, or what a builder can do instead that still saves time.

This page does three things. It explains what a like bot actually does and where X draws the line, quoting X's developer policy as fetched for this page. It measures what normal liking looks like with a real-data study of organization accounts and two keyword feeds, so you can see what a like means relative to reach. And it gives a complete Python like queue: the reading and ranking are automated, every like is a human decision, and each approved like is one API call from your own account.

Median likes per 1,000 views

4.3 across 631 original posts from 10 organization accounts (account medians 2.5 to 9.5); 64-67% of fresh keyword posts had zero likes. Collected in 2026.

01 — Section

What a Twitter like bot actually does

Every like bot has the same three parts. A source picks posts: a keyword or hashtag search, a list of accounts, or a home timeline. A filter decides which of them to like: sometimes language or follower count, often nothing at all. An actor performs the like as a logged-in X account, either by calling an API with that account's session or by driving a browser that clicks the heart.

The products you find under this keyword package those parts differently. Hosted auto-likers (workflow platforms, scraping marketplaces and growth tools) ask for your session cookie and run the loop on their servers. Open-source scripts on GitHub and PyPI either call an API with your credentials or open a browser with Selenium or Playwright and click. Browser-console snippets find heart buttons on the page and click them on a timer.

All of them act as your account. X sees the likes as yours, the policy obligations are yours, and when X limits or locks something, it is your account. That is the single fact a builder needs before picking a tool: the source and filter are harmless data work, the actor is where every risk sits.

If you came here for bots in general (posting bots, reply bots, the Automated label), the broader guide on Twitter bots covers them; this page stays on liking.

02 — Section

What X's rules say, and why auto-like loops get locked

X publishes its automation rules at help.x.com/en/rules-and-policies/x-automation. That page refused automated fetching when we tried to load it for this guide, so we do not quote it here; read it directly, and treat any summary of it, including ours, as secondary.

X's developer policy at docs.x.com/developer-terms/policy did load, and it is explicit on the points that matter for a like bot. Services that perform write actions "must follow the Automation Rules". Developers must "never perform bulk, aggressive, or spammy actions, including bulk following". Under the Pay to Engage section, the engagement that cannot be bought or sold "includes, but is not limited to, Posts, follows, unfollows, reposts, likes, comments, and replies", because it is "inauthentic engagement that degrades the health of the platform". And bot accounts run through the API "must clearly indicate what the account is and who is responsible for it".

The policy page does not contain a separate sentence that says "automated likes are banned". Read together, though, the rules leave little room for the classic bot: liking every keyword match without review is bulk engagement by any plain reading, and a service that sells likes falls under Pay to Engage. A tool that helps one person find posts worth reading, and leaves the decision to like with that person, is a different thing.

What this page will not cover. No advice on pacing tricks, rotating accounts, rotating proxies or making automated likes look manual. If a workflow needs those, it is the workflow X's rules are written against.

Builders who run a like loop usually meet the same sequence. First, individual likes start failing with X's error 226, "this request looks like it might be automated". Then requests are rate-limited. Then the account is locked and asks for verification, and in some cases it is suspended. Our error 226 guide lists what the error means and what to check; the short version is that it is X's response to activity it reads as automated, and retrying faster makes it worse.

Hosted auto-likers carry an extra layer of risk because they hold your session. Your cookies sit on someone else's server, and the likes come from infrastructure you do not control. If a service is shut down or its listing is marked under maintenance (one auto-like listing on a scraping marketplace showed exactly that when we checked for this page), the loop stops with no warning.

The like itself also buys less than it seems. Liking a stranger's post sends them a notification; for a small account that may be read, for a large one it is lost. The study below shows why: on fresh keyword posts the majority have zero likes, which means a keyword bot spends its actions on the long tail, and every one of them is a write as your account.

03 — Section

Study: what a normal like rate looks like (631 organization posts)

Before deciding what to like, it helps to know what a like means relative to reach. We read the recent timelines of 10 public organization accounts through /twitter/user/last_tweets, dropped reposts (their counts belong to the original post), and divided likeCount by viewCount for each of the remaining 631 original posts. Data collected in 2026.

The pooled median is 4.3 likes per 1,000 views. One post in ten sat below 1.5 and one in ten above 13.5. Account medians ranged from 2.5 to 9.5, a 3.7x spread, so there is no single "normal" like rate: each audience has its own.

AccountOriginal postsMedian likesLikes per 1K views (median)Likes per 1K views (p90)
@Xbox345,9489.526.5
@nvidia599187.418.2
@Google561,624.55.48.9
@netflix722,175.54.528.0
@github712234.27.2
@NASA512,8124.08.6
@Spotify715594.012.3
@Wendys1004063.816.3
@Microsoft351993.37.0
@PlayStation821,820.52.511.6
All 10 pooled631n/a4.313.5

Inside a single account, like counts are uneven too. The 90th-percentile post collected between 3.0x and 14.9x the likes of that account's median post. A ranking step that compares likes per view against the account's own median is more meaningful than raw like counts, and it is exactly what the queue script below computes.

Across all original posts in the sample there were 4.3 replies and 10.5 reposts per 100 likes. Likes are the lowest-effort signal a reader can give, which is why X's policy treats paying for them, or producing them in bulk, as inauthentic engagement.

Dot plot of likes per 1,000 views for 10 organization accounts on X: median and 90th-percentile post per account. Pooled median 4.3; account medians from 2.5 (@PlayStation) to 9.5 (@Xbox).
Likes per 1,000 views on 631 original posts from 10 organization accounts (reposts excluded). Source: TwitterAPI.io study via /twitter/user/last_tweets, collected in 2026.
04 — Section

Study: the long tail a keyword like bot would feed

The second half of the study looks at what a keyword bot would actually be liking. We pulled the latest 100 English posts for the query python and the latest 100 for "machine learning" through /twitter/tweet/advanced_search (queryType=Latest, reposts filtered) and bucketed their like counts. Data collected in 2026.

Likes on the postpython (share)machine learning (share)
064%67%
119%17%
2-58%7%
6-205%6%
21-1003%2%
>1001%1%
Median likes00
Authors under 1,000 followers56%65%

64% and 67% of posts had no likes at all, and 91% of each feed had five or fewer. These are minutes-to-hours-old posts, so the counts are early snapshots that will grow, but that is the moment a keyword bot acts. Between 56% and 65% of the posts came from authors with fewer than 1,000 followers.

Two practical readings follow. A keyword bot's like is often the only like a post gets, which makes it conspicuous rather than invisible. And a person scanning the same queue can skip the noise in seconds, which is the whole argument for keeping the decision human.

Bar chart of like counts on the latest English posts for two keyword searches on X. 64% (python) and 67% (machine learning) had zero likes; about 1% had more than 100.
Like-count distribution of 200 fresh keyword-search posts. Source: TwitterAPI.io study via /twitter/tweet/advanced_search, collected in 2026.
05 — Section

The compliant build: a human-in-the-loop like queue

The design splits the job at the point where risk begins. Reading and ranking are automated. A script searches recent posts, computes likes per 1,000 views, applies your filters, and writes a CSV. None of that needs an X account. Liking is a human decision. A person reads each queued post and either likes it in the X app or approves it in the script, which then sends exactly one like and waits a fixed pause before showing the next post.

Step 1: read. /twitter/tweet/advanced_search takes X's search operators (lang:en, -filter:retweets, -filter:replies, from:, min_faves:) and returns top-level tweets[] with has_next_page and next_cursor. Each post carries likeCount, viewCount, replyCount, retweetCount, createdAt and an author object. Reads cost 15 credits per tweet returned ($0.15 per 1,000) and need only your API key.

Step 2: rank. Sort however suits the job: fewest likes first if you want to find overlooked posts in your field, likes per 1,000 views against the author's own median if you want posts that are resonating, or by author if you follow a set of accounts. The study above gives the reference range for likes per view.

Step 3: a person decides. The queue is a list to read, not a list to like. The simplest version stops here: open each URL and like what deserves it in the X app.

Step 4: one like per approval. If you want the script to send approved likes, it calls /twitter/like_tweet_v2 once per "y" with your session's login_cookies, the tweet_id and a proxy you supply. The call acts as your account, so X can rate-limit, lock or suspend it; keep a normal human pace; the session can need a fresh login. Only your own account, a normal human pace, X's automation rules apply; this is not a way around any limit.

06 — Section

Sending one approved like: the like_tweet_v2 request

Write actions run through an authenticated session. One /twitter/user_login_v2 call ($0.10, with a proxy you supply) returns login_cookies for your own account; you store that value as a secret and reuse it until X asks for a new login. Each like is then a POST to /twitter/like_tweet_v2 with three required string fields in the JSON body: login_cookies, tweet_id and proxy.

According to the endpoint documentation at docs.twitterapi.io/api-reference/endpoint/like_tweet_v2, a 200 response has two fields, status ("success" or "error") and message (the error text); liking a post that is already liked returns success; and when X rejects the like, status is error with X's reason in message. The documentation shows the schema rather than a captured example, and the snippet below is that documented shape, not a response we captured: this study made no write calls.

Price. 60 credits ($0.0006) per successful call; calls that return status: error are not charged. /twitter/unlike_tweet_v2 takes the same fields if you need to undo one.

When it fails, stop. If X returns an error, read the message rather than retrying in a loop. An error 226 or a lock is X telling you the account's activity looks automated; the fix is less automation, not more.

text
// POST https://api.twitterapi.io/twitter/like_tweet_v2
// headers: X-API-Key: <your key>
{
  "login_cookies": "<value returned by /twitter/user_login_v2>",
  "tweet_id": "1234567890123456789",
  "proxy": "http://username:password@ip:port"
}

// documented 200 response shape
{
  "status": "success",
  "message": ""
}
07 — Section

Reading likes data without liking anything

A large share of what people want from a like bot is really information: which posts in my field are getting traction, which of my posts did well, which accounts get engagement relative to their reach. All of that is read-only, needs no X account, and carries none of the write risk.

Every tweet object returned by /twitter/user/last_tweets, /twitter/tweet/advanced_search and /twitter/tweets (lookup by ID) includes likeCount and viewCount. The function below computes the same median likes per 1,000 views that our study used, for any public account. For your own posts, run it on your handle and compare against the range in the study table.

Two limits are worth knowing. TwitterAPI.io has no endpoint that lists who liked a post or which posts an account liked; our Twitter likes API guide explains what is and is not readable. And a like count is a snapshot: store it with the time you read it if you plan to compare over days.

python
import os
import statistics
import requests

BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_IO_KEY"]}


def like_rate(user_name, pages=5):
    """Median likes per 1,000 views over an account's recent original posts."""
    ratios, cursor = [], ""
    for _ in range(pages):
        r = requests.get(f"{BASE}/twitter/user/last_tweets", headers=HEADERS,
                         params={"userName": user_name, "cursor": cursor}, timeout=30)
        r.raise_for_status()
        data = r.json().get("data") or {}
        for t in data.get("tweets", []):
            if t.get("retweeted_tweet"):
                continue  # a repost carries the original post's counts
            if t.get("viewCount"):
                ratios.append(1000 * (t.get("likeCount") or 0) / t["viewCount"])
        if not r.json().get("has_next_page"):
            break
        cursor = r.json().get("next_cursor", "")
    return round(statistics.median(ratios), 2) if ratios else None


print(like_rate("NASA"))
08 — Section

Cost: TwitterAPI.io vs the official X API rate card

A like queue is mostly reads, so the read price dominates. On TwitterAPI.io, tweet endpoints cost 15 credits per tweet returned, $0.15 per 1,000; the official X API pay-per-usage rate card at docs.x.com/x-api/getting-started/pricing lists "Posts: Read" at $0.005 per resource, $5 per 1,000. That is about 33x ($5 / $0.15) per 1,000 posts read.

JobTwitterAPI.ioOfficial X API rate card
Read 1,000 posts for the queue$0.15 (15 credits per tweet returned)$5.00 ($0.005 per post read, docs.x.com pricing)
Read 1,000 profiles to vet authors$0.18 (18 credits per profile)$10.00 ($0.010 per user read)
One like, approved by a person$0.0006 (60 credits per successful call) plus one $0.10 login per sessionthe rate card lists no separate like-create line; see docs.x.com
A polling check that finds nothing$0.00015 minimumpriced per resource returned

Our own study read 1,120 posts in 59 requests for about $0.17. A daily queue of five search pages (100 posts) costs $0.015 a day at $0.15 per 1,000. Subscriptions run from Starter at $29 a month to Business at $1,499; new accounts that pass the automatic bot check get free starter credits (no card, one per person or network, expiring after 31 days), and purchased credits never expire. See the pricing page for current amounts and rate limits (0.2 requests per second before the first payment, 20 once paid).

09 — Section

How we collected this

Question. What does an ordinary like count look like relative to reach, for organization accounts and for fresh keyword posts? The aim is a calibration baseline for a like queue, not a judgment of any account; no account in this study is labeled a bot.

Accounts and queries. Timelines of @NASA, @nvidia, @PlayStation, @Xbox, @netflix, @Spotify, @Google, @Microsoft, @Wendys and @github via /twitter/user/last_tweets (up to 5 pages each, replies not included). Two searches via /twitter/tweet/advanced_search with queryType=Latest: python lang:en -filter:retweets and "machine learning" lang:en -filter:retweets (5 pages each).

Window and size. The latest posts at collection time, collected in 2026. 920 timeline posts (631 after removing reposts) and 200 search posts, 1,120 in total, from 59 read requests.

What the sample cannot show. Ten large brand accounts are not typical accounts; their like rates say nothing about small creators. Search posts were minutes to hours old, so their like counts are early snapshots. View counts are X's own figures and are not available on every post. The data cannot tell who liked a post or whether any like was automated.

Privacy. Aggregates only. Raw pages stayed out of the repository because timelines quote and repost other authors and searches are mostly private individuals; the published sample rows carry no IDs, URLs, text or handles. The protocol, analysis script and results are in data/studies/twitter-like-bot/.

python
"""like_queue.py - a human-in-the-loop like queue for your own X (Twitter) account.

Step 1 (read, no X account needed): search recent posts, rank them, write queue.csv.
Step 2 (write, your own account): show each queued post to a person; only an explicit
"y" sends ONE like through /twitter/like_tweet_v2, then the script waits a fixed pause.

Only your own account, a normal human pace, X's automation rules apply, and the account
can be rate-limited, locked or suspended; this is not a way around any limit.
"""
import csv
import os
import sys
import time

import requests

BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_IO_KEY"]}
QUERY = '"machine learning" lang:en -filter:retweets -filter:replies'
MAX_PAGES = 5          # 20 posts per page, $0.15 per 1,000 posts returned
PAUSE_SECONDS = 60     # fixed pause after every approved like


def search(query, max_pages):
    """Yield posts from /twitter/tweet/advanced_search, following next_cursor."""
    cursor = ""
    for _ in range(max_pages):
        r = requests.get(f"{BASE}/twitter/tweet/advanced_search", headers=HEADERS,
                         params={"query": query, "queryType": "Latest", "cursor": cursor}, timeout=30)
        r.raise_for_status()
        body = r.json()
        for t in body.get("tweets", []):
            yield t
        if not body.get("has_next_page"):
            break
        cursor = body.get("next_cursor", "")


def build_queue(path="queue.csv"):
    rows = []
    for t in search(QUERY, MAX_PAGES):
        views = t.get("viewCount") or 0
        likes = t.get("likeCount") or 0
        rows.append({
            "id": t["id"],
            "url": t.get("url", ""),
            "author": (t.get("author") or {}).get("userName", ""),
            "likes": likes,
            "views": views,
            "likes_per_1k_views": round(1000 * likes / views, 2) if views else "",
            "text": (t.get("text") or "").replace("\n", " ")[:200],
            "decision": "",
        })
    # Show posts with the fewest likes first: a person reads them, nothing is liked yet.
    rows.sort(key=lambda r: r["likes"])
    with open(path, "w", newline="") as f:
        w = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
        w.writeheader()
        w.writerows(rows)
    print(f"wrote {len(rows)} posts to {path}")


def like_one(tweet_id):
    """One like as YOUR account. 60 credits ($0.0006) per successful call;
    calls that return status: error are not charged."""
    r = requests.post(f"{BASE}/twitter/like_tweet_v2", headers=HEADERS, json={
        "login_cookies": os.environ["X_LOGIN_COOKIES"],  # from one /twitter/user_login_v2 call
        "tweet_id": tweet_id,
        "proxy": os.environ["X_PROXY"],                  # a proxy you supply
    }, timeout=30)
    body = r.json()
    if body.get("status") != "success":
        # X's reason comes back in "message"; stop and look at it instead of retrying.
        raise SystemExit(f"like failed: {body.get('message') or body}")
    return body


def review_queue(path="queue.csv"):
    with open(path) as f:
        rows = list(csv.DictReader(f))
    for row in rows:
        print(f"\n@{row['author']}  likes={row['likes']}  views={row['views']}\n{row['text']}\n{row['url']}")
        answer = input("Like this post from your account? [y/N/q] ").strip().lower()
        if answer == "q":
            break
        if answer == "y":
            like_one(row["id"])
            print("liked; waiting", PAUSE_SECONDS, "seconds")
            time.sleep(PAUSE_SECONDS)


if __name__ == "__main__":
    if len(sys.argv) > 1 and sys.argv[1] == "review":
        review_queue()
    else:
        build_queue()

Researching this?Free starter credits cover end-to-end testing — Google sign-in, no card. Get a key.

10 — Questions

Questions readers ask

Is a Twitter like bot allowed on X?

X's developer policy (docs.x.com/developer-terms/policy) requires services that perform write actions to follow the Automation Rules, bans "bulk, aggressive, or spammy actions", and lists likes among the engagement that cannot be bought or sold. A loop that likes every keyword match without review fits the description of bulk engagement. Read the automation rules at help.x.com/en/rules-and-policies/x-automation for X's own wording; a tool where a person decides each like is a different case.

Can a like bot get my X account suspended?

Yes. Unattended liking commonly leads to error 226 ("this request looks like it might be automated"), rate limits, account locks that ask for verification, and in some cases suspension. The likes are made as your account, so the consequences land on it whatever tool ran the loop.

Is there a free Twitter like bot?

There are free open-source scripts and browser snippets, and hosted tools with free tiers, but the cost that matters is the account risk, not the price. Reading posts to build a queue costs $0.15 per 1,000 posts returned on TwitterAPI.io, and new accounts that pass the automatic bot check get free starter credits (no card, one per person or network, expiring after 31 days).

How do I like a tweet through an API?

Log in once with /twitter/user_login_v2 to get login_cookies for your own account, then POST /twitter/like_tweet_v2 with login_cookies, tweet_id and a proxy you supply. It costs 60 credits ($0.0006) per successful call; calls that return status: error are not charged. The call acts as your account, so keep a normal human pace and expect that the session can need a fresh login.

Can I see who liked a post or what an account liked?

Not through TwitterAPI.io: there is no endpoint that lists the users who liked a post or the posts an account liked. You can read likeCount (and viewCount) on any public post through the tweet endpoints, which is what the study on this page uses.

What is a normal number of likes per view on X?

In our 2026 sample of 631 original posts from 10 organization accounts, the median was 4.3 likes per 1,000 views, with one post in ten above 13.5. Account medians ranged from 2.5 to 9.5, so compare a post with its own account's median rather than a global number.

What is the difference between a like bot and the like queue on this page?

A like bot decides and acts on its own. The like queue automates only reading and ranking; a person reviews each post and approves or skips it, and each approval sends one like from that person's own account followed by a fixed pause. There is no loop, no second account and no timing tricks.

11 — Further reading

Continue

Sources & further reading
More from this series

Writing about something you built with TwitterAPI.io? Our community rewards program pays API credits for honest tutorials, build logs and videos.

Build it

Stop reading. Start building.

Starter credits cover real testing on real data. Google sign-in, no card, no application queue.

Get an API key

Already building with TwitterAPI.io? Publish an honest tutorial or build log about it and earn up to $200 a month in API credits.