Troubleshooting
Solutions for the most common issues encountered when using the API.
Testing with Postman
Postman is the recommended tool for exploring and debugging API requests:
- Create a new
GETrequest. - Enter the endpoint URL, e.g.
http://api.starcitizen-api.com/v1/cache/users/dymerz. - In the Headers tab, add
x-api-keywith your API key as the value. - Click Send.
This lets you inspect the full request and response, including status codes and headers, without writing any code.
CORS Errors in the Browser
If you are calling the API directly from browser JavaScript and see a CORS error in the console, this is a browser security restriction — the server must explicitly allow cross-origin requests.
Workarounds:
- Use Postman or a REST client — not subject to browser CORS policy.
- Route requests through your own backend — make the API call server-side and forward the response to your frontend.
- Use a different browser or profile — some browser extensions can relax CORS restrictions for development purposes.
warning
Exposing your API key in client-side JavaScript is a security risk. It is best practice to proxy API calls through your own backend so your key is never sent to the browser.
API Key Not Working
- Confirm the key is passed in the
x-api-keyheader, not as a query parameter or in the URL path. - Double-check there are no extra spaces or newline characters in the key.
- Log in via the banner on this site to verify your key is still active.
- If you recently regenerated your key, make sure you are using the new one.
Quota Exceeded
If you receive "number of calls per day has been exceeded":
- Switch to
cacheorautomode for requests where live data is not strictly required. - Your quota resets every 24 hours.
- Log in and click Profile to check your remaining quota and reset time.
- If you need a higher quota, reach out via Discord.