You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update JS SDK docs to match scrapegraph-js PR #13
Rewrite all JavaScript code examples to match the new v2 SDK API from
ScrapeGraphAI/scrapegraph-js#13. Key changes:
- Replace factory pattern (scrapegraphai({ apiKey })) with direct imports
- All functions use (apiKey, params) signature
- scrape() uses formats array instead of single format string
- Return type is ApiResult<T> with status check, not throw-on-error
- crawl.status() renamed to crawl.get(), crawl.delete() added
- monitor.create() uses formats array, not prompt
- Restore generateSchema and checkHealth in docs
- Schema params use JSON objects, not Zod instances
- history is now history.list() and history.get()
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments