Pricing4APIs: A Rigorous Model for RESTful API Pricings

Rafael Fresno-Aranda,Pablo Fernandez,Antonio Gamez-Diaz,Amador Duran,Antonio Ruiz-Cortes
DOI: https://doi.org/10.1016/j.csi.2024.103878
2023-11-21
Abstract:APIs are increasingly becoming new business assets for organizations and consequently, API functionality and its pricing should be precisely defined for customers. Pricing is typically composed by different plans that specify a range of limitations, e.g., a Free plan allows 100 monthly requests while a Gold plan has 10000 requests per month. In this context, the OpenAPI Specification (OAS) has emerged to model the functional part of an API, becoming a de facto industry standard and boosting a rich ecosystem of vendor-neutral tools to assist API providers and consumers. In contrast, there is no proposal for modeling API pricings (i.e. their plans and limitations) and this lack hinders the creation of tools that can leverage this information. To deal with this gap, this paper presents a pricing modeling framework that includes: (a) Pricing4APIs model, a comprehensive and rigorous model of API pricings, along SLA4OAI, a serialization that extends OAS; (b) an operation to validate the description of API pricings, with a toolset (sla4oai-analyzer) that has been developed to automate this operation. Additionally, we analyzed 268 real-world APIs to assess the expressiveness of our proposal and created a representative dataset of 54 pricing models to validate our framework.
Software Engineering
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the lack of a standardized model for API pricing (i.e., various plans of API and their limitations) in the RESTful API economy. Specifically, the paper points out that although the OpenAPI Specification (OAS) has become the de - facto standard for describing the functional parts of APIs and has promoted the development of a rich tool ecosystem, currently there is no standard for modeling API pricing (such as its plans and limitations), which hinders the creation of tools that can utilize this information. The paper proposes a new model named Pricing4APIs, aiming to provide a comprehensive and rigorous API pricing model. This model includes: - **Pricing4APIs Model**: A comprehensive model for defining API pricing, including the costs of different plans and the limitations (such as quotas and rates) under each plan. - **SLA4OAI Serialization**: As an extension of OAS, it is used to serialize the Pricing4APIs model. - **Dataset**: A dataset containing 54 actual pricing models, which is used to verify the proposed model. - **Expressiveness Analysis**: Through a systematic review of 268 real - world APIs, evaluate the expressiveness of the Pricing4APIs model. - **Automated Verification Tools**: A set of tools (such as sla4oai - analyzer) has been developed to automate the checking of the consistency of pricing descriptions. Through these components, the paper aims to fill the current gap in the field of API pricing modeling and promote more efficient and reliable API management and use.