I'm trying to access an API where one of the parameter has a \
in it's name (Axwell /\ Ingrosso
).
If I access the API using the website API panel directly, I get the results using Axwell /\\ Ingrosso
.
The request URL then becomes https://oauth-api.beatport.com/catalog/3/tracks?facets=artistName%3AAxwell+%2F%5C%5C+Ingrosso&perPage=150
If I try to access the same API endpoint using Python request, I get an empty response.
This is what I'm trying
r = session.get('https://oauth-api.beatport.com/catalog/3/tracks',
params={'facets': 'artistName:Axwell /\\ Ingrosso',
'perPage': 150})
I've also tried using it without the backslash in Python request but even that outputs an empty response. What am I missing here?