how do i use the API endpoint https://musicbrainz.org/ws/2/search/url? i'm trying to lookup whether a given URL already exists as a musicbrainz entity, but all my queries result in a 404
I don't remember re: escaping vs not escaping, but play around
I do think the trailing slash vs no trailing slash does matter though
Which is a bit silly, but :/
scott
ahh, i think it occurred to me i might have to specify the field (to match the "URL: ...") that appears in the front-end HTML, but then i think i forgot about that idea
oh hm, i think i missed the paragraph in the API docs that mention ?resource= for URLs
sounds like it's the intended one: "The URL endpoint's 'resource' entity is for providing a URL directly, rather than a URL MBID"
reosarevok
Yeah. The first URL I gave you is a search server query: it hits the search and returns whatever is indexed (so usually a fair amount of info but you can't configure it)
The second is a server browse, so it hits the database and gives you less info at first but you can ask for more
Depending on what you want to do, you can pick either :)
(for other kinds of entities there's a bigger difference between the two, but URL is weird)
scott
i had a couple of things i wanted to try, and it turns out ?query and ?resource are both things i wanted - specifically queries like https://musicbrainz.org/ws/2/url/?query=url:*ra... can answer "is this website ever used in musicbrainz"