Skip to content

Commit 5815408

Browse files
committed
docs: remove v1-to-v2 glance comparison table
Remove the "What changed at a glance" section from the transition guide as requested, while keeping the detailed migration mapping and examples. Made-with: Cursor
1 parent cd092dd commit 5815408

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

transition-from-v1-to-v2.mdx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ If you are coming from the legacy v1 docs, use this page as your migration check
99

1010
Before anything else, log in to the dashboard at [scrapegraphai.com/login](https://scrapegraphai.com/login).
1111

12-
## What changed at a glance
13-
14-
| Area | v1 (before) | v2 (now) |
15-
|------|-------------|----------|
16-
| **REST paths** | `/v1/smartscraper`, `/v1/searchscraper`, `/v1/markdownify`, `/v1/crawl`, … | `/api/v2/extract`, `/api/v2/search`, `/api/v2/scrape`, `/api/v2/crawl`, `/api/v2/monitor`, … (see [Extract](/services/extract), [Search](/services/search), [Scrape](/services/scrape), [Crawl](/services/crawl)) |
17-
| **Python client** | `Client` with flat methods like `smartscraper()`, `searchscraper()` | Same `Client`, but **`extract()`**, **`search()`**, **`scrape()`**, and **namespaced** APIs: `crawl.start()`, `monitor.create()`, … |
18-
| **JavaScript** | Standalone functions: `smartScraper(apiKey, { ... })` | **Factory client**: `scrapegraphai({ apiKey })` then `sgai.extract()`, `sgai.search()`, … |
19-
| **Parameters** | Many top-level flags (`stealth`, `headers`, `mock`, …) on each call | Shared **`FetchConfig`** and **`LlmConfig`** objects (Python: `fetch_config` / `llm_config`; JS: `fetchConfig` / `llmConfig`) |
20-
| **Naming** | `website_url`, `user_prompt`, snake_case in Python | **`url`** and **`prompt`** for extract/search; JS uses **camelCase** everywhere |
21-
| **Errors (JS)** | Often returned as `{ status: 'error', error }` | Methods **throw** on failure; success is `{ data, requestId }` |
22-
2312
## Method-by-method migration
2413

2514
Use this table to map old entry points to new ones. Details and examples follow below.

0 commit comments

Comments
 (0)