Curl search API not working

I am attempting to use the Search API and it seems to throw an error. I created a project w/ “Chatterbox” in the description for test purposes.
The command I send from my linux console is the following:
curl --request GET --header “PRIVATE-TOKEN: myToken” https://gitlab.com/api/v4/search?scope=projects&search=Chatterbox

Error returned:
{“error”:“search is missing”}

Any hints? Shouldn’t search work against gitlab.com? I have tried multiple variants.

Hi,

try wrapping the URL into single quotes so that the shell doesn’t “eat” these params passed via & - this puts a command into the background.

curl --request GET --header 'PRIVATE-TOKEN: myToken' 'https://gitlab.com/api/v4/search?scope=projects&search=Chatterbox'

Cheers,
Michael

Thanks Michael that worked!
don