MEASURING THE RELIABILITY OF FREE PUBLIC APIS: A PYTHON-BASED EMPIRICAL STUDY
Keywords:
Keywords: API reliability, uptime measurement, latency analysis, REST APIs, empirical study, PythonAbstract
Abstract
Third-party APIs have become a foundational component of modern software
systems, enabling applications to access weather data, financial information,
geographic lookups, and other services without building those capabilities from
scratch. Despite their widespread adoption, little empirical data exists on the
comparative reliability of free public APIs across different application domains. This
paper presents a Python-based empirical study that simulates polling twelve publicly
accessible APIs over a seven-day period, generating 24,192 observations. We analyse
three key reliability dimensions: uptime rate, response latency (p50, p95, p99), and
error type distribution. Our findings reveal statistically meaningful differences across
API categories, with utility and geo APIs demonstrating consistently higher uptime
(above 98%) and lower latency, while news and sports APIs exhibit the most degraded
performance. Timeout events account for the majority of all failures regardless of
category. These results offer developers a data-driven basis for selecting third-party
APIs and highlight the importance of measuring p95 and p99 latency, rather than
relying on mean response time alone.
References
References
Botta, A., Dainotti, A. and Pescapé, A. (2012) 'A tool for the generation of
realistic network workload for emerging networking scenarios', Computer Networks,
56(15), pp. 3531–3547.
Harris, C.R. et al. (2020) 'Array programming with NumPy', Nature, 585(7825),
pp. 357–362.
Hunter, J.D. (2007) 'Matplotlib: A 2D graphics environment', Computing in
Science and Engineering, 9(3), pp. 90–95.
Law, A.M. (2015) Simulation Modeling and Analysis. 5th edn. New York:
McGraw-Hill.
McKinney, W. (2010) 'Data structures for statistical computing in Python',
Proceedings of the 9th Python in Science Conference, pp. 56–61.
Newman, S. (2015) Building Microservices: Designing Fine-Grained Systems.
Sebastopol: O'Reilly Media.
Papazoglou, M.P. et al. (2008) 'Service-oriented computing: a research
roadmap', International Journal of Cooperative Information Systems, 17(2), pp. 223–
255.
Waskom, M.L. (2021) 'Seaborn: statistical data visualization', Journal of Open
Source Software, 6(60), p. 3021.
Wilde, E. and Pautasso, C. (eds.) (2011) REST: From Research to Practice. New
York: Springer.