Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?
Not on the map. Why?
Abstract (arXiv)
Application Programming Interfaces (APIs), which encapsulate the implementation of specific functions as interfaces, greatly improve the efficiency of modern software development. As numbers of APIs spring up nowadays, developers can hardly be familiar with all the APIs, and usually need to search for appropriate APIs for usage. So lots of efforts have been devoted to improving the API recommendation task. However, it has been increasingly difficult to gauge the performance of new models due to the lack of a uniform definition of the task and a standardized benchmark. For example, some studies regard the task as a code completion problem; while others recommend relative APIs given natural language queries. To reduce the challenges and better facilitate future research, in this paper, we revisit the API recommendation task and aim at benchmarking the approaches. Specifically, the paper groups the approaches into two categories according to the task definition, i.e., query-based API recommendation and code-based API recommendation. We study 11 recently-proposed approaches along with 4 widely-used IDEs. One benchmark named as APIBench is then built for the two respective categories of approaches. Based on APIBench, we distill some actionable insights and challenges for API recommendation. We also achieve some implications and directions for improving the performance of recommending APIs, including data source selection, appropriate query reformulation, low resource setting, and cross-domain adaptation.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). First posted on arXiv 23 Dec 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 6; 2025: 10; 2026: 4.
21 papers.
Sort:
By area:
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2024AndroidLab: Training and Systematic Benchmarking of Android Autonomous Agentscited by 105
- 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graphcited by 59
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agentscited by 32
- 2025ToolVQA: A Dataset for Multi-step Reasoning VQA with External Toolscited by 13
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
- 2024Compositional API Recommendation for Library-Oriented Code Generationcited by 10
- 2024NewTerm: Benchmarking Real-Time New Terms for Large Language Models with Annual Updatescited by 7
- 2025Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Toolscited by 7
- 2025CallNavi, A Challenge and Empirical Study on LLM Function Calling and Routingcited by 6
- 2025Towards Mitigating API Hallucination in Code Generated by LLMs with Hierarchical Dependency Awarecited by 6
9 more
- 2023Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composingcited by 5
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approachcited by 4
- 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Callingcited by 4
- 2026PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Modelscited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2026MetaToolAgent: Towards Generalizable Tool Usage in LLMs through Meta-Learningcited by 1
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Modelcited by 1
- 2025Explore-Construct-Filter: An Automated Framework for Rich and Reliable API Knowledge Graph Constructioncited by 0
- 2026Beyond APIs: Probing the Limits of MLLMs in Physical Tool Usecited by 0
- 2026PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Models3 Jul 2026
- 2026Beyond APIs: Probing the Limits of MLLMs in Physical Tool Use9 Jun 2026
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Model9 Apr 2026
- 2026MetaToolAgent: Towards Generalizable Tool Usage in LLMs through Meta-Learning19 Jan 2026
- 2025ToolVQA: A Dataset for Multi-step Reasoning VQA with External Tools5 Aug 2025
- 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Calling12 Jun 2025
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Survey6 Jun 2025
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agents1 Jun 2025
- 2025Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Tools22 May 2025
- 2025Towards Mitigating API Hallucination in Code Generated by LLMs with Hierarchical Dependency Aware8 May 2025
- 2025Survey on Evaluation of LLM-based Agents20 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
9 more
- 2025Explore-Construct-Filter: An Automated Framework for Rich and Reliable API Knowledge Graph Construction19 Feb 2025
- 2025CallNavi, A Challenge and Empirical Study on LLM Function Calling and Routing9 Jan 2025
- 2024AndroidLab: Training and Systematic Benchmarking of Android Autonomous Agents31 Oct 2024
- 2024NewTerm: Benchmarking Real-Time New Terms for Large Language Models with Annual Updates28 Oct 2024
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion30 May 2024
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach11 Mar 2024
- 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graph29 Feb 2024
- 2024Compositional API Recommendation for Library-Oriented Code Generation29 Feb 2024
- 2023Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composing17 Aug 2023
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2024AndroidLab: Training and Systematic Benchmarking of Android Autonomous Agentscited by 105
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agentscited by 32
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
- 2025Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Toolscited by 7
- 2025CallNavi, A Challenge and Empirical Study on LLM Function Calling and Routingcited by 6
- 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Callingcited by 4
- 2026PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Modelscited by 4
- 2026MetaToolAgent: Towards Generalizable Tool Usage in LLMs through Meta-Learningcited by 1
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Modelcited by 1
- 2026PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Models3 Jul 2026
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Model9 Apr 2026
- 2026MetaToolAgent: Towards Generalizable Tool Usage in LLMs through Meta-Learning19 Jan 2026
- 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Calling12 Jun 2025
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Survey6 Jun 2025
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agents1 Jun 2025
- 2025Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Tools22 May 2025
- 2025Survey on Evaluation of LLM-based Agents20 Mar 2025
- 2025CallNavi, A Challenge and Empirical Study on LLM Function Calling and Routing9 Jan 2025
- 2024AndroidLab: Training and Systematic Benchmarking of Android Autonomous Agents31 Oct 2024
- 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graphcited by 59
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2025ToolVQA: A Dataset for Multi-step Reasoning VQA with External Toolscited by 13
- 2024Compositional API Recommendation for Library-Oriented Code Generationcited by 10
- 2024NewTerm: Benchmarking Real-Time New Terms for Large Language Models with Annual Updatescited by 7
- 2023Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composingcited by 5
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approachcited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025Explore-Construct-Filter: An Automated Framework for Rich and Reliable API Knowledge Graph Constructioncited by 0
- 2025ToolVQA: A Dataset for Multi-step Reasoning VQA with External Tools5 Aug 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025Explore-Construct-Filter: An Automated Framework for Rich and Reliable API Knowledge Graph Construction19 Feb 2025
- 2024NewTerm: Benchmarking Real-Time New Terms for Large Language Models with Annual Updates28 Oct 2024
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion30 May 2024
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach11 Mar 2024
- 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graph29 Feb 2024
- 2024Compositional API Recommendation for Library-Oriented Code Generation29 Feb 2024
- 2023Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composing17 Aug 2023