内部API足矣:影子API、共享发现以及对浏览器优先代理架构的反对
Internal APIs Are All You Need: Shadow APIs, Shared Discovery, and the Case Against Browser-First Agent Architectures
AI总结:
本文提出Unbrowse系统,通过共享路由图将浏览器路由发现转化为集体维护的可调用第一方接口索引,提升信息检索效率,同时引入三级微支付模型以促进理性采用。
摘要:
自主代理越来越多地与网络交互,但大多数网站仍为人类浏览器设计,这导致了新兴的"代理网络"必须解决的根本矛盾。代理必须反复浏览页面、检查DOM并反向工程可调用路线,这一过程缓慢且易碎。我们发现每个现代网站在其用户界面后都已暴露内部API(有时称为影子API),这些是一级端点,驱动网站自身功能。我们提出Unbrowse,一个共享路由图,将基于浏览器的路由发现转化为集体维护的可调用第一方接口索引。系统通过真实浏览流量被动学习路由,并通过直接API调用提供缓存路由。在单主机实时网络基准测试中,94个域等效信息检索任务中,完全预热的缓存执行平均耗时950毫秒,而Playwright浏览器自动化耗时3,404毫秒(3.6倍平均提速,5.4倍中位数提速),良好缓存的路由在100毫秒内即可完成。三路径执行模型——本地缓存、共享图或浏览器回退——确保系统是自愿且自我纠正的。三级微支付模型通过x402协议,对图查找收费(第三级),对发现文档收取一次性安装费(第一级),以及可选的执行费用(第二级)供站点所有者选择。所有层级均基于理性采用的必要条件:代理仅在总费用低于浏览器重新发现的预期成本时才使用共享图。
英文摘要:
Autonomous agents increasingly interact with the web, yet most websites remain designed for human browsers -- a fundamental mismatch that the emerging ``Agentic Web'' must resolve. Agents must repeatedly browse pages, inspect DOMs, and reverse-engineer callable routes -- a process that is slow, brittle, and redundantly repeated across agents. We observe that every modern website already exposes internal APIs (sometimes called \emph{shadow APIs}) behind its user interface -- first-party endpoints that power the site's own functionality. We present Unbrowse, a shared route graph that transforms browser-based route discovery into a collectively maintained index of these callable first-party interfaces. The system passively learns routes from real browsing traffic and serves cached routes via direct API calls. In a single-host live-web benchmark of equivalent information-retrieval tasks across 94 domains, fully warmed cached execution averaged 950\,ms versus 3{,}404\,ms for Playwright browser automation (3.6$\times$ mean speedup, 5.4$\times$ median), with well-cached routes completing in under 100\,ms. A three-path execution model -- local cache, shared graph, or browser fallback -- ensures the system is voluntary and self-correcting. A three-tier micropayment model via the x402 protocol charges per-query search fees for graph lookups (Tier~3), a one-time install fee for discovery documentation (Tier~1), and optional per-execution fees for site owners who opt in (Tier~2). All tiers are grounded in a necessary condition for rational adoption: an agent uses the shared graph only when the total fee is lower than the expected cost of browser rediscovery.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。