Call PeerX from a Next.js app
Keep your key on the server and call the API from a route handler.
Create an API key
In your developer account, create a key for this app.
Store it on the server
Add it as PEERX_API_KEY in your environment, never in client code.
Add a route handler
Call the API from app/api/…/route.ts and return only what the page needs.