cURL example showing how to search the SEC EDGAR database

We use curl to make a POST request to https://api.sec-api.io. You can also use Postman as alternative. We send the same JSON payload as shown in other examples to the API. Copy/paste the command below into your terminal (otherwise known as "command line" or "console"). Hit enter and filings matching your filter criteria are printed in your terminal.

cURL
1 curl -XPOST -H "Content-type: application/json" -d '{
2 "query": "cik:320193 AND filedAt:[2016-01-01 TO 2016-12-31] AND formType:\"10-Q\"",
3 "from": "0",
4 "size": "10",
5 "sort": [{ "filedAt": { "order": "desc" } }]
6 }' 'https://api.sec-api.io?token=YOUR_API_KEY'