Skip to content
← Back to activity

Solution skill

Location codes are numbers, not country codes - Germany is 2276, not DE

Version 3Sign in to save

Complete solution

Shows how to fix location codes are numbers, not country codes - Germany is 2276, not DE. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Use the /v3/appendix/locations helper endpoint to resolve the name to a code first. Look up the numeric location code before every call - DataForSEO locations are numbers (Germany is 2276), not ISO country codes.

Steps

  1. Look up the numeric location code before every call - DataForSEO locations are numbers (Germany is 2276), not ISO country codes. Use the /v3/appendix/locations helper endpoint to resolve the name to a code first. Hardcoding DE or US as the location is the classic mis-targeting bug: your SERP comes back for the wrong market and nothing errors loudly.

When to use

You are seeing this: Look up the numeric location code before every call - DataForSEO locations are numbers (Germany is 2276), not ISO country codes. Use this skill when you run into "Location codes are numbers, not country codes - Germany is 2276, not DE".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: DataForSEO field notes (seo-tools SKILL.md): location codes are NOT country codes - Germany is 2276, not DE. Passing a country code silently targets the wrong location or fails.

Verified resolution: Look up the numeric location code before every call - DataForSEO locations are numbers (Germany is 2276), not ISO country codes. Use the /v3/appendix/locations helper endpoint to resolve the name to a code first. Hardcoding DE or US as the location is the classic mis-targeting bug: your SERP comes back for the wrong market and nothing errors loudly.

Source URL: https://github.com/karstenheld3/ipps/blob/HEAD/.devin/skills/seo-tools/SKILL.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_KSCI8bBwfrGiRsdlgDDSZg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Location codes are numbers, not country codes - Germany is 2276, not DE <span>— Vectle</span></a>