Modern web applications rely heavily on client-side API calls to fetch data, render content, and communicate with backend services. However, the quality of these network interactions (redundant requests, missing cache headers, oversized payloads, and excessive third-party dependencies) is rarely tested in a systematic way. Moreover, many of these quality deficiencies carry security implications: missing cache headers enable cache poisoning, excessive third-party dependencies expand the supply-chain attack surface, and error responses risk leaking server internals. In this study, we present an automated software testing framework that captures and analyzes the complete HTTP traffic of 18 production websites spanning 11 categories (e-commerce, news, government, developer tools, travel, and more). Using automated browser instrumentation via Playwright, we record 108 HAR (HTTP Archive) files across 3 independent runs per page, then apply 8 heuristic-based anti-pattern detectors to produce a composite quality score (0-100) for each site. Our results reveal a wide quality spectrum: minimalist server-rendered sites achieve perfect scores of 100, while content-heavy commercial sites score as low as 56.8. We identify redundant API calls and missing cache headers as the two most pervasive anti-patterns, each affecting 67% of sites, while third-party overhead exceeds 20% on 72% of sites. One utility site makes 2,684 requests per page load, which is 447x more than the most minimal site. To protect site reputations, all identities are anonymized using category-based pseudonyms. We provide all analysis scripts, anonymized results, and reproducibility instructions as an open artifact. This work establishes an empirical baseline for HTTP API call quality across the modern web and offers a reproducible testing framework that researchers and practitioners can apply to their own applications.
APITestGenie: Generating Web API Tests from Requirements and API Specifications with LLMs
Deloitte(德勤);Faculty of Engineering, University of Porto(波尔图大学工程学院);LIACC, Faculty of Engineering, University of Porto(波尔图大学工程学院 LIACC);INESC TEC, Faculty of Engineering, University of Porto(波尔图大学工程学院 INESC TEC)
Automatically Identifying Parameter Constraints in Complex Web APIs: A Case Study at Adyen
Web API可能对参数有约束,因此并非所有参数都是必需的或可选的。此外,一个参数的存在或值可能会导致需要另一个参数,或者参数可能会限制哪些类型的值是有效的。对约束有一个清晰的概述有助于API消费者在不需要额外支持的情况下进行集成,并减少集成错误。我们利用现有的文档和代码分析方法来识别复杂Web API中的参数约束。在本文中,我们报告了Adyen的几个API的案例研究,Adyen是一家大型支付公司,为客户提供复杂的Web API。我们的研究结果表明,文档和代码为基础的方法可以识别23%和53%的约束,分别,当结合起来,68%。我们还反思了这些方法目前面临的挑战。特别是,缺乏明确描述文档中(文档分析中)约束的信息,以及对数据流敏感的合理静态代码分析器的工程设计,在整个API代码中保持更长的参数引用,并且能够象征性地执行API使用的几个库和框架(静态分析中)。
Web通信已成为移动应用程序不可或缺的特性。然而,目前尚不清楚这些应用程序传输了哪些数据,传输给了谁,以及这种传输会产生什么后果。我们从安全的角度分析了移动应用程序中的Web通信。我们首先手动研究了160个Android应用程序,以确定常用的通信库,并了解它们在这些应用程序中的使用方式。然后,我们开发了一个工具来静态识别应用程序中使用的Web API URL,并恢复JSON数据模式,包括每个参数的类型和值。我们提取了3,376个应用程序中使用的9,714个不同的Web API URL。我们发现开发人员经常使用java.net包进行网络通信,但是,许多应用程序中也使用了OkHttp等第三方库。我们发现,不安全的HTTP连接在闭源应用程序中的普遍程度是开源应用程序的七倍,并且嵌入式SQL和JavaScript代码在500多个不同的应用程序中用于Web通信。这一发现是毁灭性的;它使数十亿用户和API服务提供商容易受到攻击。
A web service based on RESTful API and JSON Schema/JSON Meta Schema to construct knowledge graphs
数据可视化帮助领域专家理解他们的数据,并帮助他们做出关键决策。增强他们的认知洞察力本质上依赖于将特定领域的语义信息与从数据中提取的概念相结合并可视化所产生的网络的能力。数据科学家面临的挑战是提供能够处理整个网络生命周期的工具。在本文中,我们提出了两个强大的技术,即REST架构风格和JSON Schema/JSON Meta Schema的组合,使数据科学家使用一个REST风格的Web服务,允许构建知识图谱,大型和语义丰富的网络的首选表示之一。
Demystifying Application Programming Interfaces (APIs): Unlocking the Power of Large Language Models and Other Web-based AI Services in Social Work Research
本文面向社会工作研究者解释 API 的功能、集成流程与代码实践,并展示借助 LLM 生成 API 代码以访问 AI 服务,同时强调数据安全、隐私与伦理。
Mitigating Errors in LLM-Generated Web API Invocations via Retrieval-Augmented Generation and Constrained Decoding
Technische Universität Darmstadt(德累斯顿技术大学);Hessian Center for Artificial Intelligence (hessian.AI)(黑森人工智能中心);Pariton AI;National Research Center for Applied Cybersecurity ATHENE(应用网络安全国家研究中心ATHENE)
Web API(WAPI)是一种API,其与消费者的交互是通过互联网完成的。虽然通过互联网访问可能具有挑战性,但主要是在WAPI发展时,它使提供商有可能监控其使用情况,并了解和分析消费者的行为。目前,WAPI的使用情况主要用于流量监控和故障排除。即使它们包含有关消费者行为的宝贵信息,但供应商没有充分利用它们。在本文中,我们首先考虑应用程序开发生命周期的两个阶段,并在此基础上区分两种不同类型的使用日志,即开发日志和生产日志。对于其中的每一个,我们显示了潜在的分析(例如,WAPI可用性评估,消费者需求识别),以及可能由不合适的日志格式造成的主要障碍。然后,我们进行了一个案例研究,使用来自不同部署和不同格式的相同WAPI的日志,以证明这些障碍的发生,同时正确的日志格式的重要性。接下来,基于案例研究结果,我们提出了WAPI日志数据的主要质量问题,并解释了它们对数据分析的影响。对于每一个问题,我们都给出了一些关于如何处理它们的实际建议,以及减轻其根源的建议。
MINES: Explainable Anomaly Detection through Web API Invariant Inference
National University of Singapore(国立新加坡大学);Shanghai Jiao Tong University(上海交通大学);Singapore Management University(新加坡管理学院);GovTech Singapore(新加坡政府科技局);Chongqing University(重庆大学)
面向服务的高层体系结构(SOHLA)是指通过面向服务的体系结构(SOA)和Web Services等技术实现的支持分布式互操作服务的高层体系结构(HLA)。对HLA和SOA进行了详细的比较,说明了两者结合的重要性。然后介绍了HLA Evolved Web Service API在联邦开发与执行过程、通信机制、数据编码、会话处理、测试环境和性能分析等方面与原生API相比的几个关键改进和变化。从通信层、HLA接口规范层、联邦成员接口层和应用层等方面总结了实现Web使能的方法。最后讨论了目前研究中存在的问题,并指出了未来的研究方向.
An Online A/B Testing Decision Support System for Web Usability Assessment Based on a Linguistic Decision-making Methodology: Case of Study a Virtual Learning Environment