Help Wizard

Step 1

NEXT STEP

API search special characters

API search special characters

Hi,

 

I'm trying to use the web API to search for songs and it seems like when I have some special characters in the search parameters it fails to find any songs.

 

A very simple example of this is:

```

track:I'll Call You Mine artist:girl in red album:if i could make it go quiet

https://api.spotify.com/v1/search?query=track%3AI%27ll+Call+You+Mine+artist%3Agirl+in+red+album%3Aif...

```

This returns 0 songs

 

However, the following returns 2 songs:

 

```

track:Ill Call You Mine artist:girl in red album:if i could make it go quiet

https://api.spotify.com/v1/search?query=track%3AIll+Call+You+Mine+artist%3Agirl+in+red+album%3Aif+i+...

```

 

Basically removed the single quote in I'll. This correctly finds this song (and the title of the song returned is correct with I'll).

 

Tried a number of different quoting/escaping options and none of them resulted in I'll working.

 

Any ideas?

Reply
0 Replies

Suggested posts