With the Goodreads API, you can access data about books, authors, and events. This includes information such as title, author, publication date, and description. You can also use the Goodreads API to search for specific books, authors, or events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
goodreads: {
type: "app",
app: "goodreads",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.goodreads.com/search.xml`,
headers: {
Authorization: `Bearer oauth`,
"accept": `application/json`,
},
params: {
key: `${this.goodreads.$auth.key}`,
"q": `Enders Game`,
},
})
},
})
Goodreads uses API keys for authentication. When you connect your Goodreads account, Pipedream securely stores the keys so you can easily authenticate to Goodreads APIs in both code and no-code steps.
Goodreads is no longer issuing new API keys, and has stated they intend to deprecate their API in the future:
https://help.goodreads.com/s/article/Does-Goodreads-support-the-use-of-APIs