What is the difference between an API and a web service?
A web service is an API that is reached over a network. All web services are APIs, but not all APIs are web services, since an API can also be a library inside one program.
What does REST mean?
REST is a style for designing web APIs around resources, such as customers or orders, each at its own address, using standard HTTP methods. Most public APIs follow it, at least loosely.
Do I need an API for my product?
If you have a mobile app, a partner, an integration or plans for any of these, yes. Even a website-only product usually has an internal API between its front end and back end.
Are APIs free?
Some are, many are paid by usage, and some have free tiers with limits. Check the pricing and rate limits before you design around one.
What is an API key?
A secret string that identifies the caller. Treat it like a password: keep it on the server, rotate it when needed and give each system its own key.
How long does it take to build an API?
It depends on scope. A few simple endpoints are quick. A full, versioned API with authentication, documentation and tests takes longer. Most first versions of a product take 6 to 16 weeks depending on scope.
What is API versioning?
A way to change an API without breaking existing users. New behavior goes into a new version while the old one keeps working until callers have moved.
Can AI agents use my API?
Yes, through tool calling or the Model Context Protocol. Give agents narrow endpoints, least-privilege credentials and approvals for actions that are hard to undo.