openopus-org / openopus_api Goto Github PK
View Code? Open in Web Editor NEWA free and open source API to classical music metadata
License: GNU General Public License v3.0
A free and open source API to classical music metadata
License: GNU General Public License v3.0
When searching for "La traviata" (by composer Verdi) I get no results, but when I search for just"traviata" I do get the expected result.
I tried fetching an audio file from the API using the composer's name and the name of the audio, but it returned an error. Does the API's database have the composer's work in an audio format, if it does, how can I fetch it?
This was the function I ran;
@app.route('/audio//')
def get_audio(composer, work):
url = f"https://openopus.org/{composer}/{work}.mp3"
response = requests.get(url)
if response.status_code == 200:
return response.content, 200, {'Content-Type': 'audio/mpeg'}
else:
return jsonify({'error': 'Unable to fetch audio file.'}), 500
Hi! I noticed there's a problem with the composers birth and death dates. The year is correct, but for some reason the month and day all are 01-01.
I am sending the below request:
https://api.openopus.org/work/list/composer/178/genre/Stage/search/hip.json
While the expected opera, 'Hippolyte et Aricie' does appear in the response, I notice many other titles that don't fit the search string (hip
):
La guirlande, ou Les fleurs enchantées
Dardanus
Castor et Pollux
Anacréon
etc.
I was curious what matching method is being used by the api and whether I should be searching titles differently?
Hi,
I have a lot of free time and I think I can help on this project. I'm refactoring some old projects to DDD and I can try to do something with this one.
Are you interested?
It would be nice to be able to search through all composers, artists and works with the same search bar at the top. Now you always have to look for the composer first and then search the work you want using a different search box.
I'm looking for Nadia or Lili Boulanger, and couldn't find it in composer/list/search/nadi.json
I got other composers on previous requests that i was looking for, but some are missing.
Is there a way to contribute to the list in order to get an exhaustive list ?
Willing to contribute
Etienne
I am getting CORS 'No Access-Control-Allow-Origin header' error when I POST for work guesser and performer roles from server. Other requests like composers are working fine.
const url = `https://api.openopus.org/dyn/work/guess?works=${encodeURIComponent(blah)}`
let request = new XMLHttpRequest();
request.open("POST", url, true);
request.send();
Am I doing something wrong or is this intended behaviour? Should I fork and create my own API?
My project depends on this API so any help would be greately appreciated! Thanks in advance.
I’ve noticed in the last couple of weeks the apps will return “No recordings found” for every request. I haven’t had time to dig into the API portion of this but the request being made from the iOS is https://api.concertino.app/recording/list/work/22248/0.json. I know that this work had previously had recordings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.