# Migrate from DataForSEO

> Move a DataForSEO v3 client to DataForGAIO by swapping the base URL and password, with the path mapping per family, what's served today, and the known differences.

The SERP, Pages, AI answers and Business families accept DataForSEO v3 paths, task arrays and field names, and return the v3 envelope and status codes. For the endpoints we serve, moving over is a base-URL and password change.

## 1. Swap the base URL and password

| Setting | DataForSEO | DataForGAIO |
|---|---|---|
| Base URL | `https://api.dataforseo.com` | `https://api.dataforgaio.com/v1` |
| Login | your login | anything (ignored) |
| Password | your API password | your `dg_` API key |

If your client builds paths as `/v3/serp/...`, keep them: `/v1/v3/...` resolves to the same routes ([details](https://dataforgaio.com/docs/base-urls.md)). Otherwise use the paths in the table below.



```python title="Python (requests)"
import os
import requests

# Before: requests.post("https://api.dataforseo.com/v3/serp/google/organic/live/advanced",
#                       auth=(LOGIN, PASSWORD), json=tasks)
res = requests.post(
    "https://api.dataforgaio.com/v1/serp/google/organic/live/advanced",
    auth=("api", os.environ["DATAFORGAIO_API_KEY"]),
    json=[{"keyword": "trail running shoes", "location_code": 2840, "language_code": "en"}],
    timeout=120,
)
print(res.json()["tasks"][0]["status_code"])
```

```bash title="Official SDK settings"
# Point the client at our host and keep its /v3 paths.
BASE_URL = "https://api.dataforgaio.com/v1"
LOGIN    = "api"         # ignored
PASSWORD = "dg_..."      # your DataForGAIO key
```



## 2. Map your paths

| Family | DataForSEO path | DataForGAIO path | Reference |
|---|---|---|---|
| SERP | `/v3/serp/google/organic/{live/advanced, live/regular, task_post, tasks_ready, tasks_fixed, task_get/advanced, task_get/regular}` | `/v1/serp/google/organic/...` (same suffixes) | [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md) |
| SERP | `/v3/serp/bing/organic/...` (same suffixes) | `/v1/serp/bing/organic/...` | [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md) |
| SERP | `/v3/serp/google/maps/{live/advanced, task_post, tasks_ready, tasks_fixed, task_get/advanced}` | `/v1/serp/google/maps/...` | [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md) |
| SERP | `/v3/serp/google/locations`, `/languages` (and Bing) | `/v1/serp/google/locations`, `/languages` | [Google SERP: Locations](https://dataforgaio.com/docs/api/serp-google-locations.md) |
| OnPage | `/v3/on_page/instant_pages` | `/v1/pages/instant_pages` | [Instant Pages](https://dataforgaio.com/docs/api/pages-instant-pages.md) |
| OnPage | `/v3/on_page/content_parsing/live` | `/v1/pages/content_parsing/live` | [Content Parsing: Live](https://dataforgaio.com/docs/api/pages-content-parsing-live.md) |
| AI Optimization | `/v3/ai_optimization/chat_gpt/llm_responses/{live, task_post, tasks_ready, task_get, models}` | `/v1/ai/chat_gpt/llm_responses/...` | [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md) |
| AI Optimization | `/v3/ai_optimization/claude/llm_responses/...` | `/v1/ai/claude/llm_responses/...` | [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md) |
| AI Optimization | `/v3/ai_optimization/perplexity/llm_responses/{live, models}` | `/v1/ai/perplexity/llm_responses/...` | [Perplexity LLM Responses: Live](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-live.md) |
| Business Data | `/v3/business_data/google/my_business_info/{live, task_post, tasks_ready, tasks_fixed, task_get}` | `/v1/business/google/my_business_info/...` | [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md) |
| Appendix | `/v3/appendix/user_data` | `/v1/account/user_data` | [User Data](https://dataforgaio.com/docs/api/account-user-data.md) |
| Appendix | `/v3/appendix/errors` | `/v1/account/errors` | [Errors](https://dataforgaio.com/docs/api/account-errors.md) |
| Appendix | `/v3/appendix/webhook_resend` | `/v1/account/webhook_resend` | [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md) |
| Appendix | `/v3/appendix/status` | `/v1/account/status` | [Status](https://dataforgaio.com/docs/api/account-status.md) |
| (ours) | | `/v1/account/support_matrix` | [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md) |

## 3. Check what's served

Families and endpoints not in the table above are routed but not served yet. They answer `40402` ("This endpoint isn't available yet") at $0, so a client calling them fails cleanly rather than with a 404. This includes Keywords Data, DataForSEO Labs, Backlinks, Domain Analytics, Content Analysis, Merchant, App Data, the other SERP engines and types, `ai_optimization/gemini`, and the other OnPage and Business Data endpoints.

The [support matrix](https://dataforgaio.com/docs/api.md) lists every route with its status and price. The same list is available from the API:

```bash
curl "https://api.dataforgaio.com/v1/account/support_matrix?supported=true" -u "api:$DATAFORGAIO_API_KEY"
```

Filter with `family=serp` (or `pages`, `ai`, `business`, `ads`, `account`) and `supported=true`.

## 4. What's the same

- Task arrays of up to 100, `tag`, `priority`, `pingback_url`, `postback_url`, `postback_data`, `$id` and `$tag`.
- The envelope (`version`, `status_code`, `status_message`, `time`, `cost`, `tasks_count`, `tasks_error`, `tasks`) and the task fields (`id`, `status_code`, `status_message`, `time`, `cost`, `result_count`, `path`, `data`, `result`).
- Status codes: `20000`, `20100`, `40006`, `40100`, `40101`, `40102`, `40202`, `40210`, `40400`, `40401`, `40402`, `40501`, `40503`, `40601`, `40602`, `50000`.
- Result and item schemas for organic, `maps_search`, `google_business_info`, `llm_responses`, `instant_pages` and `content_parsing`.

## 5. Known differences

**Extra fields.** Every task adds `receipt_id`, `fetch_level`, `upgraded`, `upgrade_reason` and `cache_hit`, and results add `fetched_at`. Clients that don't know them ignore them. `path` starts with `"v1"`.

**Auto-upgrade and request controls.** Tasks accept `auto_upgrade`, `max_level`, `max_cost` and `max_age`. A queued Google organic task whose included sources fail falls back to our live source and is billed at the live price, with `upgraded: true`. Send `auto_upgrade: false` to keep queue pricing and fail at $0 instead. See [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md).

**Shared cache.** Standard-queue SERP results may come from a cache up to 6 hours old (priority: 1 hour; live: none). `fetched_at` and `cache_hit` say so. Send `max_age: 0` to always fetch fresh. See [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md).

**SERP.**
- `location_code` accepts country-level codes only. Use `location_name` (`"Austin,Texas,United States"`) for cities.
- Organic `depth` is 1 to 200. Maps accepts up to 700 but returns at most 100.
- Fields we can't fill from our sources are present and `null`: `xpath`, `cache_url`, `pre_snippet`, `extended_snippet`, `faq`, `about_this_result`, `address_info` on Maps items, and others. Organic `advanced` items are `organic` only; other SERP features (`people_also_ask`, `featured_snippet`, `local_pack`, ...) aren't returned yet.
- `task_get/html` isn't served (`40402`).
- Bing `mobile` returns the desktop results page.
- The standard and priority queues share workers; priority uses faster sources and a shorter cache window.

**OnPage.**
- Everything is computed from the single HTML document. We don't load sub-resources, so resource sizes, browser timings, CLS and spell checks are `null`. `duration_time` is our fetch time.
- `onpage_score` is our own weighted score of the checks (0 to 100), not DataForSEO's formula.
- Ignored: `load_resources`, `check_spell`, `validate_micromarkup`, `custom_user_agent`, `accept_language`, `browser_*`, `ip_pool_for_scan`, `switch_pool`, `store_raw_html`, `disable_cookie_popup`, `enable_xhr`, `return_despite_timeout`, `checks_threshold`.
- `custom_js` is rejected with `40501`.
- `enable_javascript: true` bills the Rendered level.

**AI Optimization.**
- Gemini isn't served yet. Perplexity is live only.
- Each task is billed as a base fee plus tokens and web searches at the model provider's list price; `money_spent` in the result is that token part.
- `user_prompt` and `system_message` are limited to 500 characters, `message_chain` to 10 messages, `max_output_tokens` to 4,096.
- Queued tasks run through model providers' batch processing and can take hours (Beta).
- Answers are added to our anonymized AI-answer dataset unless your organization opts out. See [Data retention](https://dataforgaio.com/docs/data-retention.md).

**Business Data (`my_business_info`) (Beta).**
- `keyword` takes a business name, `cid:<n>` or `place_id:<id>`. `location_name` is added to a name search; `location_code` is echoed but doesn't target the search.
- Price is per profile and the same in every mode, by fetch level.
- Results are cached for 24 hours.

**Appendix.**
- `user_data` returns `money.balance`, `money.currency` and `price` (our price table), not DataForSEO's full account object.
- `errors` lists failed queued tasks from the last 7 days.

**Status codes.** HTTP statuses follow the code: `40100`/`40101` → 401, `40210` → 402, `40400`/`40402` → 404, `40202` → 429, `40006`/`40503` → 400, `50000` → 500, for request-level errors.

## 6. Checklist

1. Create a key under **Dashboard → Developers** and top up the wallet.
2. Change the base URL and password.
3. Call `GET /v1/account/support_matrix?supported=true` and confirm every path you use is listed.
4. Run a handful of tasks in each mode and compare results and `cost`.
5. Decide on `auto_upgrade` and `max_cost` for queued work.
6. Point `pingback_url` / `postback_url` at your receivers; they work unchanged. Read [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md).
