Description Usage Arguments Value See Also
It changes the string to titlecase if not already so and checks it against the list found on the website. The function fails / returns an error (I hope informative enough) when it can't find a match. I made this list for v2 of the API on 2017-02-16. It might change. I hope not. https://developer.musicgraph.com/api-docs/v2/dictionary
1 | validate_genre(genrestring)
|
genrestring |
the genre string people give in searches |
a string formatted in the correct way that matches the genrelist.
Other validators: validate_artistID
,
validate_decade
,
validate_gender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.