Simple Express + vanilla JS app to fetch BrightSites data and produce a CSV in the exact required schema.
Quick start
- Copy
.env.exampleto.envand fillBRIGHTSITES_SUBDOMAINandBRIGHTSITES_API_TOKEN. - Install and run:
npm install
npm start- Open http://localhost:3000 and choose options, Run, then Download CSV.
Notes
- The server uses
BRIGHTSITES_SUBDOMAINandBRIGHTSITES_API_TOKENto build requests to BrightSites API (v2.6.1). - CSV headers are intentionally spelled exactly (includes the misspelling "Shipping Landded Cost").
- The server paginates using
pageandper_pageand will stop when a page returns fewer results thanper_page.