Skip to content

feat: allow users to authenticate with the Gelbooru API#3193

Open
GazzD wants to merge 5 commits intoend-4:mainfrom
GazzD:feat/allow-user-gelbooru-api-credentials
Open

feat: allow users to authenticate with the Gelbooru API#3193
GazzD wants to merge 5 commits intoend-4:mainfrom
GazzD:feat/allow-user-gelbooru-api-credentials

Conversation

@GazzD
Copy link
Copy Markdown

@GazzD GazzD commented Apr 6, 2026

Describe your changes

Gelbooru's API supports optional authentication via api_key and user_id query parameters, which unlocks full API access and removes anonymous rate limits.

This PR adds two new config options sidebar.booru.gelbooru.userId and sidebar.booru.gelbooru.apiKey that, when set, are automatically included in the Gelbooru API request. Credentials are optional; unauthenticated usage still works as before.

A contextual note is also shown when switching to the Gelbooru provider, pointing users to Gelbooru API documentation page to obtain the credentials.

Is it ready? Questions/feedback needed?

The functionality is ready, but it is also open to feedback if something needs to be changed.

Screenshots

Params added to config.json
image

Sidebar with contextual note
image

GazzD added 3 commits April 6, 2026 16:20
- sidebar.booru.gelbooru.userId
- sidebar.booru.gelbooru.apiKey

with default values as empty strings
@GazzD
Copy link
Copy Markdown
Author

GazzD commented Apr 6, 2026

This PR should solve this reported issue: #1534

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant