internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.15k stars 1.35k forks source link

how to get available languages of a specific work #8301

Closed alicimen0614 closed 1 year ago

alicimen0614 commented 1 year ago

Question

I want to get a specific works available languages , trending and searching api provides languages but works and category api doesnt provide it how can I achieve it? ### Additional context

Issue resolution criteria

Stakeholders

githubissue

mekarpeles commented 1 year ago

I think you want to use the https://openlibrary.org/search.json?q= API as I believe this will return language

alicimen0614 commented 1 year ago

I do know that search api returns language as ı pointed out on my question the question was can we return languages from a specific work https://openlibrary.org/works/OL1968368W.json for example this doesn't have it

tfmorris commented 1 year ago

There are a lot of obscure corners of the API which aren't very well documented. There are a couple of ways to do this:

If you want to browse subjects, you can use:

Naturally, the different APIs return the language information in different formats, so be prepared to handle that.

alicimen0614 commented 1 year ago

There are a lot of obscure corners of the API which aren't very well documented. There are a couple of ways to do this:

If you want to browse subjects, you can use:

Naturally, the different APIs return the language information in different formats, so be prepared to handle that.

Thank you that was helpful