DynamoDB: Get Multiple Items (Guide w/ Code Examples)

Provided by Rafal Wilinski
To retrieve multiple items from a DynamoDB table using the JavaScript SDK, you can use the batchGet method. This method allows you to specify the keys of the items you want to retrieve and the name of the table you want to retrieve them from.
const AWS = require('aws-sdk'); const dynamoDb = new AWS.DynamoDB.DocumentClient(); const keys = [ { id: 'item1' }, { id: 'item2' }, { id: 'item3' } ]; const params = { RequestItems: { 'my-table': { Keys: keys } } }; dynamoDb.batchGet(params, (error, data) => { if (error) { console.log(error); } else { console.log(data); } });
Similar Code Examples
- DynamoDB: Attribute Not Null
- DynamoDB: Create if Not Exists
- DynamoDB: Query Ends With
- DynamoDB: Like
- DynamoDB: Get By ID
- DynamoDB: Delete Table
- DynamoDB: GetItem
- DynamoDB: Get Random Item
- DynamoDB: Query Date Range
- DynamoDB: Bulk Insert
- DynamoDB: Get Last 10 Records
- DynamoDB: Query Count
- DynamoDB: Increment Counter
- DynamoDB: Get Last Inserted Item
- DynamoDB: Query Items
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
- New in Dynobase 3.0
- Semantic and Vector Search
- Schema Explorer
- Visual JSON Path Filtering
- Visual Item Diff
- MCP Server for AI Tools
- Use SQL with DynamoDB
- Import CSV To DynamoDB
- Import JSON To DynamoDB
- Export DynamoDB To JSON
- Export DynamoDB To S3
- Export DynamoDB To CSV
- DynamoDB Update Item
- DynamoDB Delete All Items
- DynamoDB Delete Item
- DynamoDB Create Table
- DynamoDB Delete Table
- DynamoDB Conditional Update
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase