The reworked NGRAMS Documentation (the GitHub Wiki is temporary) should include request examples for at least curl, JavaScript, TypeScript, Python, and NodeJS.
A tool to map curl commands to other languages is https://curlconverter.com. Thanks @MarkAPitt for pointing to it.