API Images

Post your questions & get help from friendly LibriVoxers
Post Reply
CrimsonHawk
Posts: 2
Joined: November 26th, 2019, 7:43 pm

Post by CrimsonHawk »

Hello

I am working with the API.

I don't see a Property for the Images associated with the books.

I don't see any examples for getting the book images in the API documentation either.

Can we include that in the return object?

It could be a URL on the Book Interface Object.

called--> image: string

We could set up a MongoDB with all the images.

The JSON Returns the following.

interface RootObject {
books: Book[];
}

interface Book {
id: string;
title: string;
description: string;
url_text_source: string;
language: string;
copyright_year: string;
num_sections: string;
url_rss: string;
url_zip_file: string;
url_project: string;
url_librivox: string;
url_other?: any;
totaltime: string;
totaltimesecs: number;
authors: Author[];
}

interface Author {
id: string;
first_name: string;
last_name: string;
dob: string;
dod: string;
}
annise
LibriVox Admin Team
Posts: 38674
Joined: April 3rd, 2008, 3:55 am
Location: Melbourne,Australia

Post by annise »

The API was made before covers existed - and has other weaknesses.
When we have sufficient funds it will be further developed but at the moment I have no idea when that will happen

There is a discussion thread in our forum with some unofficial solutions here viewtopic.php?f=24&t=44129 you are welcome to register and join the discussion if you wish

Anne
CrimsonHawk
Posts: 2
Joined: November 26th, 2019, 7:43 pm

Post by CrimsonHawk »

Anne

Thanks for letting me know

I will check out the forum and see what I can come up with.

Hopefully, the API gets updated soon!!!

It would make these API calls a lot easier. :)

Thanks

Kenny
Post Reply