Create an N8N request to get my Twitter API limit?

Hello -

I am using N8N Version 1.61.0 self hosted and I am trying to find a way to get my Twitter (X) API rate limit status.

I see on the Twitter dev page, it mentions this URL: https://api.x.com/1.1/application/rate_limit_status.json?resources=help,users,search,statuses

I tried using N8N HTTP request, with GET method and predefined Oath2 credentials (my saved credentials that work on other flows) but I always get a 403 error.

Has anyone been successful in this? Seems like it should be straight forward?

This is the Twitter page about the endpoint: GET application/rate_limit_status | Docs | Twitter Developer Platform

Thank you!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The Twitter API is a bit of a mess - note that this is a V1 API and you’re likely using V2 credentials for your other Twitter operations. The following post covers this (but for another use-case). It’s in French, but you can turn on auto-subtitles.