A comprehensive client library for the Amazon Selling Partner API (SP-API). Current version 1.2.1 provides automatic access token management, rate limiting, report downloading, feed uploading, and full TypeScript support. It replaces the legacy Amazon MWS API with modern authentication and endpoints. The library handles throttling internally and offers sandbox mode for testing. Release cadence is periodic, with breaking changes notable when upgrading from v0.x to v1.x.
npm install amazon-sp-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the client with credentials and region, then calls the getMarketplaceParticipations operation on the Sellers endpoint.
Upgrade to 1.x and update code per the migration guide.
Migrate from MWS to SP-API.
Use the correct class name: SellingPartner.
Let the library handle token refresh automatically via refreshToken.
Set grantless: true for operations that don't require a refresh token.
Monitor library updates for changes to restore rate functionality.
Enable rate limit retry in config to have the library automatically wait and retry on throttled requests.
Run 'npm install amazon-sp-api' and ensure the import statement is correct: import SellingPartner from 'amazon-sp-api'
Use: import SellingPartner from 'amazon-sp-api' (no curly braces)
Set REFRESH_TOKEN environment variable or pass refreshToken in the config object. For grantless operations, set grantless: true.
Use one of: 'NA', 'EU', 'FE' (case-sensitive).
Check the list of supported endpoints and their exact names. Use the endpoint name as defined by Amazon SP-API, e.g., 'sellers', 'catalogItems'.
No dependency data recorded yet.