Skip to content

HTTP headers not working with rate limiting #712

@joshbressers

Description

@joshbressers

I followed the instructions here
https://ecosyste.ms/api

And added a HTTP From header to my request

'User-Agent': 'python-requests/2.32.5',
'Accept-Encoding': 'gzip, deflate',
'Accept': '*/*',
'Connection': 'keep-alive',
'From': 'me@domain'}

This results in the following returned in the 429 from Cloudflare

'Date': 'Sun, 02 Nov 2025 13:31:01 GMT',
'Content-Type': 'text/plain; charset=utf-8',
'Transfer-Encoding': 'chunked',
'Connection': 'keep-alive',
'Nel': '{"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '0',
'x-ratelimit-reset': '1762092000',
'x-ratelimit-tier': 'anonymous',
'Server': 'cloudflare',
'cf-cache-status': 'BYPASS',                      

I did not try to update the user agent.

If I add mailto=you@example.com as a parameter to the API request I see I am on the "polite" tier which is what I would expect

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions