Anyone with your API login and password can use your DataForSEO balance to make API requests. They need no additional credentials, and they can send requests from any machine unless you restrict access by IP address. That’s why API key security should be a priority before your first integration goes live, especially if your application uses DataForSEO data in features that your customers rely on.
In this guide, we’ll explain how DataForSEO API credentials and authentication work, how to manage and protect your keys, how to configure IP whitelisting, and what our ISO/IEC 27001:2022 certification means for your data and account security.
Account password vs API password
Every DataForSEO account has two sets of credentials, and each one serves a different purpose.
| Credential | Who creates it | What it gives access to |
| Account login + account password | You, at registration | The Dashboard: billing, settings, usage, team access |
| API login + API password | Our system, automatically | Our APIs: every request that spends your balance |
You create the account password when you sign up, while our system generates the API password automatically. You can’t use the two interchangeably: your API password won’t sign you in to the Dashboard, and your Dashboard password won’t authenticate an API request. Mixing them up is one of the most common reasons a first API request fails.
Where to find your API credentials
You can find your API credentials (API login and password) in the API Access section of the DataForSEO Dashboard.
- Our system generates a unique string as an API login, and it’s always visible. Some older accounts may still use the sign-up email as the API login, and you can switch to a generated login in the same tab.
- The API password stays visible for the first 24 hours after registration, and then the Dashboard hides it. If you need it later, click Send by e-mail, and we’ll resend it to your account email. Resends have a cooldown period.
- The encoded credentials, a ready-made Base64 string of
login:password, follow the same 24-hour rule, and later you can request them by email too.
Resetting your API password or changing your API login
The same tab includes Reset password and Change API login actions. Both require a confirmation code that we send to your account email address, so no one without access to that mailbox can replace your credentials.
The old password or login stops working as soon as you confirm the change, and so does any Base64 string built from it. Most teams trip on this, so make sure to update every integration right away.
Once you have your credentials, it helps to know how our API checks them on every request.
How API authentication works: your “API key” is a login and a password
Many APIs issue a single long key. DataForSEO uses a credential pair instead, sent with Basic Authentication, which is the only method our API accepts. That makes API key setup and security for our SEO APIs a matter of handling two values carefully. Here’s how it works:
- Your integration joins your API login and API password with a colon:
login:password. - It encodes that string with Base64 so it can travel in an HTTP header. Base64 is an encoding format, not encryption, and anyone can decode it in seconds, so treat the encoded string with the same care as the password.
- It sends the encoded string in the
Authorizationheader of every request.
In practice, Make and n8n handle these steps for you: you select Basic Auth, enter your login and password, and the platform does the encoding. The same credential pair works across all DataForSEO APIs.
We also enforce two rules to keep your credentials secure:
- Our API accepts credentials only in the request header and rejects requests that pass them as URL parameters, because server logs and browser histories often record URLs.
- The API redirects plain-HTTP requests to HTTPS and sends an HSTS header. We still recommend calling the
https://address directly.
If you need tool-specific steps, we’ve got you covered: our guide to API key setup with authentication code examples walks through cURL, Make, n8n, and Custom GPTs, and you can also check the Authentication page in our docs.
Protecting your API credentials is essential, but you can further reduce the risk of unauthorized access by limiting which IP addresses can use them.
IP whitelisting: restrict which IPs can make API requests
By default, any IP address with valid credentials can make API requests under your account. Once you add an address to the whitelist, the API refuses requests from all other IPs before processing them and returns error 40207, “Access denied. Your IP is not whitelisted.” If you remove every entry, access becomes unrestricted again.
To whitelist IPs for API requests, open API Access in the DataForSEO Dashboard, find IP Access, enter an IP address, and click Add. Repeat for each IP. For detailed instructions, see our IP whitelisting guide.
Before you turn on IP whitelisting, keep the following in mind:
- Each entry must be a single static IPv4 address. The form rejects CIDR ranges and IPv6 addresses with an “IP is invalid” message and doesn’t accept duplicates, so you need to add a subnet one IP at a time. Dynamic IPs from home connections, mobile networks, and most VPNs change over time, and the API then refuses requests from the new address unless you whitelist it.
- The API is reachable over IPv4 only. Servers with both IPv4 and IPv6 connect over IPv4 automatically. If your server is IPv6-only, it connects through a translation layer such as NAT64, and you’ll need to whitelist the gateway’s IPv4 address.
- The whitelist applies only to API requests and doesn’t affect Dashboard sign-ins.
- Add every machine that calls the API. Production, CI, and automation servers each have their own IP, and any server you leave out will receive error
40207. - Do not enable IP whitelisting if you use our Connector and integration tools, since their requests originate from IP addresses other than your own and may be blocked.
Depending on your infrastructure, IP whitelisting can be a particularly effective security measure, preventing unauthorized API requests from non-whitelisted IPs even if your credentials are compromised. Still, IP whitelisting works best combined with the following security best practices.
API key security best practices
Keep credentials out of code and repositories
Anyone with developer tools can read code that runs in a browser or mobile app, so store credentials only on machines you control.
Never commit credentials to a repository, and that includes the Base64 string. Deleting a secret from a file doesn’t remove it from Git history, so treat any credential that has reached a shared repository as exposed. Store credentials in environment variables, a secrets manager, or your tools’ credential fields, and keep them out of spreadsheets, shared documents, and chat messages.
Rotate credentials regularly, and immediately if you suspect exposure
If a credential may have leaked, for example through a public repository, a former contractor, or a screenshot, reset it first and investigate afterwards. Because Reset password invalidates the old value instantly, list every place that uses the credential before resetting it. Each account has one API credential pair, so rotation is your main way to revoke old access. We also recommend resetting your credentials on a regular schedule.
Limit who can use your account
Instead of sharing your Dashboard password, invite colleagues through Account Access so that each person signs in with their own login. Additionally, turn on two-factor authentication from the Profile menu.
Limit and monitor spending
In the Dashboard’s Settings, you can set daily spending limits for all APIs or a specific API or endpoint. Once you reach a limit, further tasks return error 40203 until the next UTC day.
Check the Usage section for unexpected spikes and the Errors section for failed requests you didn’t send. Test new integrations in our free Sandbox, which returns dummy data and doesn’t affect your balance.
Even with these habits in place, a credential can still leak, so it helps to know the first steps before you need them.
If your credentials leak: what to do first
To keep things straightforward, work through these steps in order and save the investigation for later:
- Reset your API password in API Access. If your login leaked too, use Change API login.
- Enter the new credentials in every integration.
- Review the Usage and Errors sections for unfamiliar activity.
- Make sure you’ve set daily spending limits.
- Turn on the IP whitelist if your infrastructure allows it.
- If anything looks unusual, feel free to reach out via Live Chat in the Dashboard at any hour. Our support manager will do their best to help.
On our side, protection starts earlier, with how the platform handles credentials from the moment we generate them.
How do platforms handle API keys and credentials securely? What we do on our side
Security teams evaluating an API provider usually check the points below, and here’s how DataForSEO addresses each one.
| What a secure API platform should do | How DataForSEO does it |
| Issue system-generated API credentials, separate from account logins | Our system generates the API password, and it can’t sign in to the Dashboard |
| Minimize standing exposure of the secret | The Dashboard shows it for 24 hours, then hides it; resends go to the account email only |
| Refuse credentials in URLs | The API accepts them only in the Authorization header |
| Encrypt traffic in transit | The API redirects plain HTTP to HTTPS and sends an HSTS header |
| Let customers restrict access by network | Per-account IP whitelist; other IPs receive error 40207 |
| Make rotation fast and confirm it securely | “Reset password” and “Change API login” both require an emailed code |
| Limit the financial impact of abuse | Optional daily spending limits, account-wide or per API or endpoint |
| Operate a certified security program | ISO/IEC 27001:2022 certification |
Our information security management system holds certification under ISO/IEC 27001:2022, the international standard for information security management. The independent certification body DP CERTSYSTEMS issued the certificate in October 2025 after auditing our controls. Maintaining this certification requires us to regularly review and continually improve our information security practices. You can verify its validity in the certifier’s registry, read more and download the certificate in DataForSEO Receives ISO 27001 Certification.
Together, these measures set the level of data access security we ensure for every API connection. However, keeping your personal credentials safe and controlling who has access to them remains your responsibility. The FAQ below answers the most common questions about API credentials and authentication. For more information about managing your DataForSEO account, visit our FAQ page.
Credential security FAQ
Is my API password the same as my account password?
No. The account password signs you in to the Dashboard, and the system-generated API password is the only one that authenticates API requests.
Can someone use my API password to sign in to my Dashboard?
No. API credentials only authorize API requests.
I missed the 24-hour window and can’t see my API password. What now?
Open the API Access tab and click Send by e-mail. We’ll send the password to your account email address, along with the encoded Base64 string.
Does resetting my API password break my integrations?
Yes, immediately. The old password and any Base64 strings built from it stop working as soon as you confirm the reset.
Can I whitelist an IP range or an IPv6 address?
No. Each entry must be a single IPv4 address, so you should add a range one address at a time.
What happens if a whitelisted IP changes?
Requests from the new IP will receive error 40207 until you add it in API Access → IP Access.
I think my credentials leaked. What should I do right now?
Reset your API password in API Access first, then follow the steps here: If your credentials leak.
Do I need separate credentials for each DataForSEO API?
No. One credential pair works across all DataForSEO APIs, including the Sandbox, where only the hostname changes.
Summary
Keeping your DataForSEO API credentials secure helps protect your account balance, data, and the reliability of your integrations. If your product relies on DataForSEO data, these measures also help prevent disruptions to your customer-facing features.
Follow the security best practices outlined in this guide: store your credentials securely, keep them out of your source code, limit who has access to them, and reset your API password if you suspect it has been compromised. Where your infrastructure allows, enable IP whitelisting for an additional layer of protection.
Where do I go next?
Explore these resources to help you configure your API integrations and manage your account securely:
➤ API authentication guide with code examples — step-by-step instructions for authenticating with DataForSEO across different tools and platforms.
➤ API authentication documentation — technical details on authenticating your API requests.
➤ How to set payment limits — learn how to manage your spending and limit unexpected expenses.