DataForSEO is the data source behind a lot of SEO tools, including the SEO audits we run at Zaher.AI. More than once it gave us empty or wrong data without anything looking like an error. Rejected requests come back as HTTP 200 with the error tucked inside the response body. And its Labs data, the keyword and ranking estimates, doesn’t cover several Gulf and Arab countries at all. If you sell SEO reports in the Middle East, both can end up in front of a client as a report that looks complete and isn’t.
Errors inside a successful response
When DataForSEO rejects a task, for example because a field in the request is invalid, the HTTP response can still be 200. The failure is in the body: tasks_error is 1, and the real error code is in that task’s own status_code.
Our pipeline runs on n8n, and the HTTP request step only looks at the HTTP status. A 200 counts as success, so the workflow carried on with an empty result as if the site simply had no data. Three separate bugs in our request payloads ran this way for weeks. The first sign was an alert email from the vendor, not anything in our own monitoring.
For a business owner reading the report, there was no way to tell. “No keywords found” looks like a fact about your site, not a failed request.
Labs doesn’t cover every country
DataForSEO has several APIs, and they don’t cover the same places. The SERP API, which fetches live Google results, supports about 100,000 locations. The Labs API, which provides things like a domain’s ranking overview and the keywords it ranks for, listed 94 when we called its locations endpoint.
When we last checked, Labs had these Middle East and North Africa countries:
- Saudi Arabia, the UAE and Egypt, each in Arabic and English
- Bahrain, Jordan, Morocco, Tunisia, Algeria, Israel and Turkiye
And these were missing: Kuwait, Qatar, Oman, Lebanon, Iraq, Libya, Yemen, Syria and Palestine.
So a brand in Kuwait, Qatar or Oman can’t get Labs data at all, however the request is written. If your tool sends the request anyway and treats the empty answer as zero, the client gets a report saying they rank for nothing.
Check the location and language pair against the Labs list itself, not the SERP list. The two are different.
Live results that are wrong
The SERP API had a quieter problem. On some calls, the live Google results came back broken: results in the wrong language and region, the site we were checking missing from the page, and a total result count off by a factor of 1,000 to 10 million compared with Labs for the same query. On two of the days we looked at, about half of the calls were affected, and which keywords were hit changed from run to run. The same request a day later showed the site in positions 1 to 6.
Our keyword panel trusted those pages and told a site it was “Not in the top 20” for 6 of 10 keywords it ranked near the top for. The response status said success, so nothing flagged it.
How we guard against it
Every one of these is a successful-looking response with bad or missing data inside. The defenses are all checks on the body.
Check every task, not just the HTTP status
A request is fine only if the HTTP status is OK, tasks_error is 0, and each task’s status_code is 20000, DataForSEO’s success code:
const res = await fetch(url, { method: "POST", headers, body: JSON.stringify(tasks) });
const data = await res.json();
if (!res.ok || data.tasks_error > 0) {
const bad = data.tasks.filter((t) => t.status_code !== 20000);
throw new Error(bad.map((t) => `${t.status_code} ${t.status_message}`).join("; "));
}
Fail the step loudly. An empty report that says “error” is better than one that says “zero”.
Validate the location before you call Labs
Fetch GET /v3/dataforseo_labs/locations_and_languages and check the client’s country and language against it. If the country isn’t there, show that in the report instead of zeros.
Sanity-check live results
The check we added drops a live results page if the site isn’t on it but Labs puts it in the top 10 for the same keyword and language. That catches broken pages for keywords a site ranks well for. It misses them for keywords where the site isn’t on page one. Fetching the page a second time would catch those too.
Read the error log quickly
DataForSEO keeps an errors endpoint per API, such as POST /v3/serp/errors, which shows recent failures. It keeps about 24 hours. After that, you have to dig the request payloads out of your own execution history.
Test payloads in the sandbox
DataForSEO’s sandbox uses the same credentials with a different hostname, and it validates request fields exactly like production. Rejected calls cost nothing on either, so reproducing a payload bug is free. One catch: the official n8n node for DataForSEO has the production hostname built in, so only plain HTTP request steps can use the sandbox.
What to check in your own SEO data
- Do your API calls check the error fields in the response body, or only the HTTP status?
- When a report shows zero keywords or zero rankings, can you tell a real zero from a failed request?
- Is the client’s country in the dataset you’re querying? Check the actual list for that API.
- Do you validate live search results before showing them, or does any success response go straight into the report?
- Would you notice a failure before the vendor emails you about it?