If you're encountering errors while using the Pexels API, here are some of the most common causes and how to resolve them:
Common Issues to Check First
-
Invalid or mistyped API key: Double-check that your API key is correct and active. You can find it in your API dashboard.
-
Incorrect Authorization header: Your API key should be passed directly as the value of the
Authorization
header. Do not prefix it with the word "Bearer."
Correct format:Authorization: YOUR_API_KEY
-
Incorrect request structure: Make sure you're using the correct endpoint, method (GET/POST), and required parameters. Refer to our API documentation for exact formats.
-
5xx errors: These are server-side issues. They are usually temporary. Wait a few minutes and try again.
Custom API Support
We’re unable to provide custom debugging or engineering support for individual API issues. If you encounter a persistent problem, your best option is to:
-
Review our API documentation
-
Search our Help Center for common error explanations
-
Double-check your code against the examples provided
If, after checking the above, you still believe you’ve found a bug or undocumented issue, you're welcome to submit a bug report with:
-
The exact error code
-
Your full request, including headers and parameters (preferably in curl format)
-
Your API key and account email (if applicable)
We appreciate your help in keeping our API reliable, but we cannot guarantee individual replies for implementation support.