Benchmarking Web API Integration Code Generation
API integration is a cornerstone of our digital infrastructure, enabling software systems to connect and interact. However, as shown by many studies, writing or generating correct code to invoke APIs, particularly web APIs, is challenging. Although large language models (LLMs) have become popular in software development, their effectiveness in automating the generation of web API integration code remains unexplored. In order to address this, we present WAPIIBench, a dataset and evaluation pipeline designed to assess the ability of LLMs to generate web API invocation code. Our experiments with several open-source LLMs reveal that generating API invocations poses a significant challenge, resulting in hallucinated endpoints, incorrect argument usage, and other errors. None of the evaluated opensource models was able to solve more than 40 % of the tasks.
Authors
- Jannis Brugger (ORCID: https://orcid.org/0000-0002-7919-4789)
- Leon Chemnitz
- Daniel Maninger (ORCID: https://orcid.org/0009-0005-0649-4958)
- Amir Molzam Sharifloo
- Mira Mezini
Institutions
- Technische Universität Darmstadt (DE)
Publication Details
- Published
- 2025-11-19
- DOI
- https://doi.org/10.1109/aiware69974.2025.00034
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00