mediastack icon indicating copy to clipboard operation
mediastack copied to clipboard

HTTP GET Request Parameter for "keywords" does not accept a "," or a "-"

Open pedro-vicente opened this issue 4 years ago • 2 comments

the HTTP GET Request Parameter for "keywords" does not accept a "," or a "-" (separator or exclusion)

this returns a JSON error

GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=business,-sports&sources=cnn,-bbc&date=2020-8-24,2020-12-31&limit=1&keywords=virus,-boston HTTP/1.0

but this is OK (space between keyword escaped with %20)

GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=cnn,-bbc&keywords=virus%20boston&limit=1 HTTP/1.0

pedro-vicente avatar Dec 07 '20 11:12 pedro-vicente

Having same issue.

nypinstripes avatar Apr 07 '21 21:04 nypinstripes

Same problem here, even replacing the ',' with a url-encoded %2C doesn't help.

error |   code | "validation_error" message | "Request failed with validation error" context |   keywords |   0 | "This value is not valid."

xTkAx avatar Jun 06 '23 15:06 xTkAx