Skip to content

/2/search returns an empty 404 for every query #2303

Closed

Description

@LoS-Light

GET /2/search returns an empty 404 for every query, including hashtag searches.
Other /2/ routes on the same host are fine.

Verified 2026-07-27:

$ curl -s "https://api.fxtwitter.com/2/search?q=neo"
{"code":404,"results":[],"cursor":{"top":null,"bottom":null}}

$ curl -s "https://api.fxtwitter.com/2/search?q=%23news"
{"code":404,"results":[],"cursor":{"top":null,"bottom":null}}
Meanwhile /2/typeahead?q=neo, /2/trends?count=5 and /2/profile/jack/statuses all return 200.

It has been like this for several days, and retrying doesn't help — every request fails the same way.

Regards.

Activity

  1. HyperHamster commented on Jul 29, 2026

    @HyperHamster

    Both of your provided cURL examples are returning 200 with full data payload for me as of 2026-07-28. Not that I would know why it fixed itself as I'm not a FxEmbed developer, just someone who happened across your issue while exploring the new v2 API myself.

  2. LoS-Light commented on Jul 29, 2026

    @LoS-Light
    Author

    Both of your provided cURL examples are returning 200 with full data payload for me as of 2026-07-28. Not that I would know why it fixed itself as I'm not a FxEmbed developer, just someone who happened across your issue while exploring the new v2 API myself.

    Thanks for getting back to me.
    On both my local machine and the VPS I set up in Japan, any call to the search API like the ones below still returns code 404.
    I'm not sure why this is happening — could it be a CDN issue?

    ❯ curl -s "https://api.fxtwitter.com/2/search?q=neo"
    {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}%
    ~ took 3s
    ❯ curl -s "https://api.fxtwitter.com/2/search?q=%23news"
    {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}%

  3. LoS-Light commented on Jul 29, 2026

    @LoS-Light
    Author

    To test whether this was a Cloudflare CDN issue, I spun up a VPS in US–Los Angeles.

    When I ran curl -s "https://api.fxtwitter.com/2/search?q=neo" there,
    it actually worked — code: 200, results_length: 20. I tried a few more times and it kept succeeding.
    But about five minutes later I re-ran the same curl, and it went back to returning code: 404.

    I still have no idea why this is happening.

  4. self-assigned this
    on Aug 28, 2026
  5. added
    API
    can repro
    on Aug 28, 2026
  6. dangeredwolf commented on Aug 28, 2026

    @dangeredwolf
    Member

    Still seems to happen intermittently, one moment it'll work and the next it'll break. Haven't identified a cause yet.

  7. nicolas-ship-it-now commented on Sep 26, 2026

    @nicolas-ship-it-now

    any update on this issue ? , it happens every time for me...Thanks

  8. dangeredwolf commented on Sep 28, 2026

    @dangeredwolf
    Member

    I figured out they changed the way they store the values for X-Client-Transaction-Id again and that was what caused search to fail every time recently. Fixed in f1664ec. I imagine they will break it again though

  9. nicolas-ship-it-now commented on Sep 28, 2026

    @nicolas-ship-it-now

    Thanks !

  10. LoS-Light commented on Sep 28, 2026

    @LoS-Light
    Author

    I figured out they changed the way they store the values for X-Client-Transaction-Id again and that was what caused search to fail every time recently. Fixed in f1664ec. I imagine they will break it again though

    I've done some follow-up testing on my end, and everything seems to be working fine now.
    I'd like to keep an eye on it for a few more days to see if anything else comes up.

    Thanks a lot for the fix!

  11. SyberiaK commented on Oct 7, 2026

    @SyberiaK

    This issue pops out sometimes on /2/profile/{handle}/statuses:

    2026-10-07T23:07:18+0300 | tweetah | L85   | [  INFO  ]: fxtwitter returned 20 results
    2026-10-07T23:07:18+0300 | tweetah | L99   | [  INFO  ]: 17 results remain after filtering
    2026-10-07T23:07:18+0300 | tweetah | L108  | [  INFO  ]: newest_tweet_id=2107854861551173708; last_tweet_id=2107854861551173708
    2026-10-07T23:07:35+0300 | tweetah | L71   | [  INFO  ]: fxtwitter http 404 {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}
    2026-10-07T23:12:37+0300 | tweetah | L71   | [  INFO  ]: fxtwitter http 404 {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}
    2026-10-07T23:17:40+0300 | tweetah | L71   | [  INFO  ]: fxtwitter http 404 {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}
    2026-10-07T23:22:41+0300 | tweetah | L85   | [  INFO  ]: fxtwitter returned 20 results
    2026-10-07T23:22:41+0300 | tweetah | L99   | [  INFO  ]: 17 results remain after filtering
    2026-10-07T23:22:41+0300 | tweetah | L108  | [  INFO  ]: newest_tweet_id=2107854861551173708; last_tweet_id=2107854861551173708
    2026-10-07T23:22:58+0300 | tweetah | L71   | [  INFO  ]: fxtwitter http 404 {"code":404,"results":[],"cursor":{"top":null,"bottom":null}}
    2026-10-07T23:27:59+0300 | tweetah | L85   | [  INFO  ]: fxtwitter returned 20 results
    2026-10-07T23:27:59+0300 | tweetah | L99   | [  INFO  ]: 17 results remain after filtering
    2026-10-07T23:27:59+0300 | tweetah | L108  | [  INFO  ]: newest_tweet_id=2107854861551173708; last_tweet_id=2107854861551173708
    
  12. LoS-Light commented on Oct 10, 2026

    @LoS-Light
    Author

    After two weeks of testing,
    my experience so far has been pretty good.
    It's not 100% error-free and still fails occasionally,
    but overall it's usable for now.

  13. rmaci3l commented on Oct 11, 2026

    @rmaci3l

    Been facing the same issue with search endpoint on the last couple days.

  14. LoS-Light commented on Oct 14, 2026

    @LoS-Light
    Author

    8. I figured out they changed the way they store the values for X-Client-Transaction-Id again and that was what caused search to fail every time recently. Fixed in f1664ec. I imagine they will break it again though

    New Update
    As of this week, it's completely stopped working again.

  15. colenh commented on Oct 26, 2026

    @colenh

    I have also noticed an intermittent 404 error from the /2/profile/handle/statuses route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

APIcan repro

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions