CoWAR: A General Complementary Web API Recommendation Framework Based on Learning Model
- 26 February 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Reliability
- Vol. 75 (00189529) , 1160-1174
Abstract
With the rapid advancement of service computing technologies, the proliferation of Web APIs on the Internet has increased exponentially. However, selecting the most suitable APIs for Mashup creation from this extensive pool presents a significant challenge for users. Numerous Web API recommendation methods have been developed to address this issue, aiming to simplify the complex selection process. Despite these advancements, there has been limited research on the recommendation of complementary functions. In response, we propose CoWAR, a comprehensive framework for recommending complementary Web APIs tailored to Mashup creation, based on the Web APIs previously selected by users. Specifically, we introduce a data labeling algorithm that generates a labeled dataset using Mashup-API interactions derived from historical Mashups and Web APIs. Furthermore, we utilize the Sentence BERT model to generate representation vectors of Web APIs from their functional descriptions. Subsequently, SANFM (Self Attentional Neural Factorization Machines) model is employed to train the complementary Web API recommendation model on the labeled dataset, utilizing the Web APIs' representation vectors. An attention mechanism is integrated into CoWAR to identify varying complementary weights between the selected Web APIs and candidate Web APIs, thereby enhancing recommendation performance. To the best of our knowledge, this is the first work to address the complementary function recommendation problem using a learning-based approach. Experimental validation on a real-world dataset demonstrates the effectiveness of the proposed framework, showing that the learning model outperforms both traditional machine learning-based models and several deep learning-based models.Keywords
Funding Information
- Hunan Provincial Natural Science Foundation Project (2026JJ50519)
This publication has 39 references indexed in Scilit:
- Mashup-oriented API recommendation via pre-trained heterogeneous information networksInformation and Software Technology, 2024
- Service recommendation based on contrastive learning and multi-task learningComputer Communications, 2023
- Long tail service recommendation based on cross-view and contrastive learningExpert Systems with Applications, 2023
- Association Rule Guided Web API Complementary Function Recommendation for Mashup Creation: An Explainable Perspective2023
- Deep learning framework for multi‐round service bundle recommendation in iterative mashup developmentCAAI Transactions on Intelligence Technology, 2022
- Enriching query semantics for code search with reinforcement learningNeural Networks, 2022
- QoS-aware service recommendation based on relational topic model and factorization machines for IoT Mashup applicationsJournal of Parallel and Distributed Computing, 2019
- Stochastic Gradient Descent2017
- Domain-aware Mashup service clustering based on LDA topic model from multiple data sourcesInformation and Software Technology, 2017
- Dirichlet Process2011