Google Books API key
MyBibliotheca looks up book metadata and covers through Google Books. Without an API key it uses Google's shared anonymous quota, which is usually exhausted. Lookups are then slow and unstable. A free personal key is strongly recommended.
Add the key in MyBibliotheca
- During onboarding: step 2 has a required Google Books API Key section. Enter a key, or tick I'm skipping this and I understand metadata lookup will be slow and unstable. The step cannot be skipped without doing one of these. A "How do I get a key? (step-by-step)" popup is included.
- Later: open Settings → Server → Metadata and use the Google Books API key card to set, replace, or remove the key. Verify & Save checks the key with Google first.
The key is stored on the server in data/google_books_settings.json, so no .env edit is needed. If several sources are set, the order of precedence is:
- A key saved in the app
GOOGLE_BOOKS_API_KEYGOOGLE_API_KEY
Existing environment variables keep working unchanged and are listed in the app as "from environment". The key is sent on every Google Books request, including the add-book search.
Get a Google Books API key
- Go to console.cloud.google.com and sign in.
- Create a project, for example "MyBibliotheca".
- Enable the Books API at console.cloud.google.com/apis/library/books.googleapis.com.
- Open APIs & Services → Credentials → Create credentials → API key.
- Copy the key. It starts with
AIza. - Optionally restrict the key to the Books API only.
- Paste the key into MyBibliotheca as described above.
Before you restrict the key
New keys can take a few minutes to activate. Do not set IP or referrer restrictions: requests come from your server, so they would need to match your server's public IP.
See also Administration for usage tracking.