apilayer / mediastack

Free Live News JSON REST API for Global News & Blog Articles
https://mediastack.com
23 stars 5 forks source link

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

Open pedro-vicente opened 3 years ago

pedro-vicente commented 3 years ago

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

nypinstripes commented 3 years ago

Having same issue.

xTkAx commented 1 year ago

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."