class BookMetadataService (View source)

Methods

array|null
fetch(string $isbn)

Retrieve merged book metadata using Google Books and OpenLibrary APIs.

Details

array|null fetch(string $isbn)

Retrieve merged book metadata using Google Books and OpenLibrary APIs.

The method attempts to fetch information from both sources. If at least one source returns data, a normalized merged array is returned—prioritizing Google Books data when available.

Parameters

string $isbn

the ISBN to search for (ISBN-10 or ISBN-13)

Return Value

array|null

normalized metadata array or null if no data was found