-
Notifications
You must be signed in to change notification settings - Fork 0
Open Library API
I started off by diving into the OpenLibrary documentation to understand each of their services and how they worked.
To understand how Open Library’s Book Search API works, I experimented with different query parameters (q, subject, and author). I ran API calls using curl to examine response structures and identify the most effective parameters for relevance.
curl https://openlibrary.org/search.json\?q=harry+potterI found that q is the primary parameter for general searches, while subject and author can narrow down your focus. After that, I wrote small Python tests for each parameter to confirm they returned what I expected. This hands-on approach helped me figure out which parameters truly matter for relevance—namely q for a broad sweep, subject when I know the topic, and author when I want books by a specific person.