Skip to content

DataForSEO key

NulSEO's keyword, ranking, backlink, domain, local and AI answer data comes from DataForSEO, a pay-as-you-go data provider that is not connected to NulSEO. Your server needs a DataForSEO key before any of those features can run. It is the only key NulSEO requires.

DataForSEO bills your account directly for each request. NulSEO tracks that spending and stops at the monthly cap you set. See Spend caps and usage.

Get your key#

  1. Open DataForSEO API Access and create an account if you do not have one.
  2. Request your API credentials. DataForSEO emails you a login and an API password. The API password is not the password you sign in to the DataForSEO dashboard with.
  3. Encode the login and API password together, in the form login:password, as Base64:
printf '%s' 'YOUR_LOGIN:YOUR_API_PASSWORD' | base64

On Windows PowerShell:

[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('YOUR_LOGIN:YOUR_API_PASSWORD'))

The API Access page may also show the Base64 value ready-made. Either way, the result is your DATAFORSEO_API_KEY.

Add funds to your DataForSEO account before you start. New accounts usually come with a small test balance, which runs out quickly.

Add it to NulSEO#

The usual way is to put it in .env.selfhost and deploy:

DATAFORSEO_API_KEY=your-base64-value
pnpm deploy:selfhost --yes

Or set it in the Cloudflare dashboard#

  1. In Cloudflare, go to Compute → Workers & Pages and open your NulSEO Worker.
  2. Open Settings → Variables & Secrets.
  3. Add a secret named DATAFORSEO_API_KEY and paste the Base64 value.

Or from a terminal in your NulSEO checkout:

npx wrangler secret put DATAFORSEO_API_KEY

If you deploy with pnpm deploy:selfhost, keep .env.selfhost up to date as well, so the next deploy does not put back an old value.

Check it works#

Open https://nulseo.com/api/health and look for the DataForSEO check, or run a small keyword search in the app.

Keep spending in check#

  • Set a monthly cap in Usage & caps. The default is $25 a month.
  • Prefer weekly schedules over daily for rank tracking and AI prompt tracking.
  • Keep an eye on DataForSEO's own dashboard, which shows exactly what you were billed.