1
0

translations.md 1.4 KB


lang: en-US title: Lyrics Translations

description: Description of all routes related to searching for lyrics translations

GET /translations/:songId

This route returns all translations of a certain song.
Get the song ID from one of the search routes.
Example: /translations/1644


Optional URL Parameters:
?format=json/xml
Use this optional parameter to change the response format from the default (json) to xml
The structure of the XML data is similar to the shown JSON data.


Response:

Successful response (click to view) ```json { "error": false, "matches": 1, "translations": [ { "language": "es", "title": "Artist - Song (Traducción al Español)", "url": "https://genius.com/Genius-traducciones-al-espanol-artist-song-al-espanol-lyrics", "path": "/Genius-traducciones-al-espanol-artist-song-al-espanol-lyrics", "id": 6942 } ] } ```

Errored response (click to view) ```json { "error": true, "matches": null, "message": "Something went wrong" } ```

Response when no result found (click to view) ```json { "error": true, "matches": 0, "translations": [] } ```