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
Expanded src/legends_dataforseo/routes.json from 53 to 101 live-verified DataForSEO API v3 routes, calibrated against official live pricing pages across every endpoint:
AI Optimization LLM Scrapers: ChatGPT and Gemini live advanced / html endpoints plus standard-queue task_post and task_get routes.
Google AI Mode Expansion: Live raw HTML plus standard-queue task_post and task_get routes alongside existing ai-mode (live/advanced).
LLM Responses Standard Queue & Free Model Discovery:task_post/task_get for ChatGPT, Claude, and Gemini plus uncharged GET /models inventory routes across ChatGPT, Claude, Gemini, and Perplexity.
Complete LLM Mentions & _lite Coverage (15 live routes):target_metrics_lite, multi_target_metrics, top_mentioned_domains_lite, top_mentioned_pages_lite, top_mentioned_brands(_lite), top_mentioned_brand_categories(_lite), historical, timeseries_delta, and timeseries_new_lost.
Domain Analytics (7 live routes) & Content Analysis (6 live routes):domain_technologies, domains_by_technology, domains_by_html_terms, aggregation_technologies, technologies_summary, technology_stats, whois/overview, plus search, summary, sentiment_analysis, rating_distribution, phrase_trends, and category_trends.
Added typed Python helpers and CLI subcommands with strict offline parameter validation and --dry-run preflight previews: ai-mode, llm-scraper, llm-responses, llm-mentions, domain-tech, and content-analysis, plus AI_TIMEOUT_S = 180.0 defaults and Labs filters support.
Updated tracked dataforseo-mcp-server upstream baseline to 3.1.4 (e15d289ae228fdb8d3f4ad0d4b70d8148cb400a4).
Independent SERP Truth Gate
Shipped the Independent SERP Truth Gate (src/legends_dataforseo/truth_gate.py) verifying every protected Google organic SERP against an independent search view (default: stdlib HTTPS-only Firecrawl /v2/search via FIRECRAWL_API_KEY, or caller-supplied independent_sites / independent_items / consensus_provider).
Provider-only signals are no longer sufficient for serp_integrity.verified = true; verified envelopes carry verified_basis in VERIFIED_BASES (independent_consensus or independent_consensus_repaired), with AIO-corroborated repair and fail-closed UnverifiedSerpError refusal.
Added --consensus-provider, --country, and --local-maps-check to legends-dataforseo serp, stopped redundant retries on identical top-10 pulls, and corroborated legitimate informational Wikipedia rankings.
Cost Safety, Redaction & Packaging Hardening
Enforced routes.json pre-spend baseline cost floors across all charged POST routes before credentials or HTTP (llm-mentions, whois-overview, volume, llm-responses, demand, maps, etc.), hardened Google 5x operator detection (search_param, as_*) and udm=14 / udm=web (unquote_plus) guards, and enforced upstream provider parameter constraints in llm_responses / llm_mentions.
Added shared strict_json_loads() (UTF-8 BOM via utf-8-sig, linear-time O(N) MAX_JSON_DEPTH = 128 guard, parse_constant + parse_float non-finite/overflow rejection), iterative _collect_reference_sites() / _bounded(), allow_nan=False serialization, and zero query/domain/error leakage in UnverifiedSerpError and --summary.
Updated Windows reparse-point checks to Microsoft IsReparseTagNameSurrogate (0x20000000) for OneDrive compatibility, hardened ResponseFile.__exit__ inode/target cleanup, normalized all tracked files and archives to pure LF, and included all 7 evergreen assets/cards/r1/*.svg cards in sdist.
Verification
Multi-OS CI (ci run 47275280343 + Dependency Graph47275283412): 384 passed across Python 3.11, 3.12, and 3.13, check_release.py PASS, audit_public.py PASS, check_upstream.py (3.1.4) PASS, and isolated wheel verification PASS.
Attached deterministic legends-dataforseo-0.2.0-bundle.tar.gz, legends_dataforseo-0.2.0-py3-none-any.whl, legends_dataforseo-0.2.0.tar.gz, and SHA256SUMS.txt.