#Retrieving More Than 100 API Keys from OpenRouter API List API keys

3 messages · Page 1 of 1 (latest)

open fern
#

Hello everyone,

I'm currently working with the OpenRouter API and need to retrieve more than 100 API keys using the endpoint for listing API keys of my account. However, I'm encountering a limitation where only 100 keys are returned per request. I've checked the documentation here, but it doesn't explicitly mention how to handle pagination or retrieve more than 100 keys.

Has anyone successfully managed to retrieve more than 100 API keys from this endpoint? If so, could you please share how you achieved this? Any insights on pagination parameters or alternative methods would be greatly appreciated.
Thank you in advance for your help!

tropic inlet
#

cc @slow violet

slow violet
#

@open fern thanks for the report. We have now added an offset parameter that should let you paginate the API.