# Node.js Example for Filings Query API > A Node.js example showing how to find the latest SEC 10-Q filings using the Filing Query API. Source: https://sec-api.io/docs/query-api/node-js-example If you're new to Node.js, check out the beginner's guide here: [https://nodejs.dev/learn](https://nodejs.dev/learn) First, install our Node.js SDK by typing the following command in your terminal: `npm install sec-api` Copy/paste the example code below and replace `YOUR_API_KEY` with your API key. Node.js ```javascript // // Query API Example // const { queryApi } = require('sec-api'); queryApi.setApiKey('YOUR_API_KEY'); const query = { query: 'formType:"10-Q"', // get most recent 10-Q filings from: '0', // start with first filing. used for pagination. size: '10', // limit response to 10 filings sort: [{ filedAt: { order: 'desc' } }], // sort result by filedAt }; const filings = await queryApi.getFilings(query); ``` Next, execute the script by typing `node index.js`