0

When I'm making what seems like a working query:

https://api.fda.gov/food/enforcement.json?api_key=123&search=report_date:[2021111+TO+20211112]

I get an error:

[token_mgr_error] token_mgr_error: Lexical error at line 1, column 32. Encountered: "]" (93), after :

That same query works fine when done in browser but it's failing in my API tool. Any ideas?

Secondly, Is there another way to do a relative date or date range in the API if brackets simply can't work for me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.