An application programming interface (API) is a published set of requests that one program can send to another, and the replies it will get back. It is how software talks to software. When an accounting system fetches the day’s exchange rates or registers a GST e-invoice, it is calling another organization’s API and reading the answer.
The program that offers the API is the provider. The program that calls it is the client. The client does not see the provider’s code or database, only the requests the API accepts and the replies it sends.
What is API?
API stands for application programming interface. The interface is the boundary a program shows to other programs: which requests it accepts, what each request must contain, and what comes back.
Mozilla’s developer guide explains APIs with a wall socket: you plug an appliance in instead of wiring it into the mains. In the same way, an API hides complex code behind a few simple calls.
Some APIs work inside one computer. A web page can use the browser’s Geolocation API to ask for the user’s location, and the browser asks the user for permission first.
Most of the time, though, an API means a web API. The client sends a request over the internet, usually by HTTP, and the provider’s server sends back a response.
How an API call works: a real request and reply
The European Central Bank (ECB) publishes daily euro exchange rates through a public API that needs no account or key. This is the request we sent on 6 November 2026 for the latest US dollar and Indian rupee rates:
GET https://data-api.ecb.europa.eu/service/data/EXR/D.USD+INR.EUR.SP00.A?lastNObservations=1&format=csvdata
Each part of the request does one job:
GETis the HTTP method. It requests a copy of a resource and is read-only: it asks the server to change nothing.data-api.ecb.europa.eu/service/is the API’s entry point.data/EXRasks for data from the ECB’s exchange rates dataset.D.USD+INR.EUR.SP00.Apicks the series: daily (D), US dollar and rupee (USD+INR), against the euro (EUR), spot rate (SP00), average (A).lastNObservations=1asks for only the newest value, andformat=csvdataasks for comma-separated values.
The server replied 200 OK, which means the request has succeeded, and sent a small CSV file. These are its key columns:
KEY,TIME_PERIOD,OBS_VALUE
EXR.D.INR.EUR.SP00.A,2026-11-05,106.0395
EXR.D.USD.EUR.SP00.A,2026-11-05,1.1224
So on 5 November 2026 one euro was worth 1.1224 US dollars or 106.0395 rupees. The 6 November rates were not out yet: the ECB updates them at around 16:00 CET on working days, and we called at 14:07 CET.
Software then does arithmetic with the reply. For rupees per US dollar, divide one rate by the other: 106.0395 ÷ 1.1224 = 94.48.
The ECB adds a warning that applies to any data pulled through an API: its rates are “published for information purposes only”, and it strongly discourages using them for transactions.
Change one code and the API refuses. With currency code XXX, the same request came back 404 Not Found with a short message: “No Series was returned for the query”. A 404 means the server did not find anything at that address.
You can repeat this yourself. Paste the address into a browser and it downloads the same CSV file. Or run curl -i followed by the address in a terminal to see the status line and headers as well.
This is what an ERP does behind its currency settings. Microsoft’s Business Central documentation sets up a currency exchange rate service using the European Central Bank as an example. The service maps fields from the ECB’s XML reply into the currency exchange rates table, but it “doesn’t adjust exchange rates on already posted transactions”.
Who provides an application programming interface?
Anyone who wants other software to use their data or functions: software vendors, online platforms, governments and central banks, and in-house IT teams linking their own systems.
For a business, the APIs that matter most usually belong to its ERP, because every other system has to exchange data with it. Three current ERPs and the APIs their makers document:
| ERP | Its API | Worth knowing |
|---|---|---|
| Microsoft Dynamics 365 Business Central | API v2.0, REST | Other software links to it as a “Connect app”. |
| Oracle NetSuite | SuiteTalk REST web services | Create, read, update and delete records, and run queries. |
| Odoo | External JSON-2 API, new in Odoo 19 | The older XML-RPC and JSON-RPC endpoints are scheduled for removal. |
Architecture
A web API call involves three parts.
- Client: the program that sends the request, such as a phone app, a script or an ERP.
- API: the published contract (addresses, methods, required fields, reply formats) and the endpoint that receives requests.
- Server: the provider’s system that does the work, often reading or writing a database, and sends the reply.
Many providers publish the contract as an OpenAPI description. The OpenAPI Specification defines “a standard, programming language-agnostic interface description for HTTP APIs”, which people and tools can both read. Its current version, 3.2.1, is dated 10 September 2026.
Large providers put an API gateway in front of their servers. Microsoft’s description of its own gateway lists the usual jobs. It accepts API calls and routes them to the right backend. It checks API keys and other credentials, and it enforces usage quotas and rate limits.
API styles: REST, SOAP, RPC and GraphQL
| Style | How a call works | Contract file |
|---|---|---|
| REST | Resources at web addresses, read and changed with HTTP methods such as GET and POST | OpenAPI description |
| SOAP | XML messages in a standard envelope | WSDL |
| RPC (gRPC, JSON-RPC) | The client calls a named function on the server | gRPC: a .proto file |
| GraphQL | The client asks for exactly the fields it needs | GraphQL schema |
RESTful (Representational state transfer)
REST is an architectural style, not a protocol. Roy Fielding defined it in his 2000 doctoral dissertation, built around resources: “Any information that can be named can be a resource”.
Its stateless rule means “each request from client to server must contain all of the information necessary to understand the request”. REST does not fix a data format: the ECB’s RESTful web service above returned CSV, and it can also return JSON or XML.
SOAP
SOAP is a W3C standard for “exchanging structured information in a decentralized, distributed environment” as XML messages. The current version, SOAP 1.2 Second Edition, became a W3C Recommendation on 27 April 2007.
Its messages can travel over several protocols, though they are typically conveyed using HTTP.
RPC
In a remote procedure call, the client calls a named function on another machine. JSON-RPC 2.0 is “a stateless, light-weight remote procedure call (RPC) protocol” that uses JSON as its data format.
gRPC lets a client call a method on a server on another machine “as if it were a local object”. It describes services in .proto files, uses protocol buffers for the messages, and runs over HTTP/2.
GraphQL
GraphQL is a query language in which the client describes exactly the data it needs, and the server returns that shape. The current specification is the September 2025 edition.
Pros and Cons of API
Benefits of an API
- Reuse instead of rebuilding. One call fetches exchange rates or registers an invoice. Nobody has to build and run that service again.
- Change behind a stable door. The provider can rewrite its code and database, and clients keep working as long as the API stays the same.
- No re-keying between systems. An ERP can post invoices, pull rates or update stock in another system automatically. Larger designs are covered in our guide to enterprise application integration.
- Controlled access. The provider decides who may call what. With OAuth 2.0, a third-party app gets an access token for limited access instead of the user’s own credentials.
Cons
- Your feature depends on theirs. Google retired its AdWords API, and from April 27, 2022 requests to it “will fail”. Every integration had to move to the Google Ads API first.
- Limits. GitHub allows 60 requests per hour without signing in. YouTube’s default quota is 100 searches, 100 uploads and 10,000 units a day for all other calls. Past a limit, calls fail with errors such as 403 or 429 Too Many Requests.
- Versions end. Odoo has scheduled its XML-RPC and JSON-RPC endpoints for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027). Integrations built on them must move to the JSON-2 API added in Odoo 19.
- Every API is a door to data. The OWASP API Security Top 10 (2023, its latest edition) ranks broken object level authorization first. That is an API handing over a record because it trusts the ID in the request, without checking who is asking.
Examples
- Exchange rates: the ECB Data Portal API, used in the example above.
- Tax: India’s GST e-invoice system, below.
- ERP data: the Business Central, NetSuite and Odoo APIs in the table above.
- Video: the YouTube Data API, which lists, adds, updates and deletes resources such as videos and playlists.
- Advertising: the Google Ads API, which replaced the AdWords API in 2022.
GST e-invoicing in India
Since 1 August 2023, e-invoicing has applied to taxpayers with aggregate turnover above Rs 5 crore (Notification No. 10/2023-Central Tax). Some are excluded, such as government departments and local authorities.
Their billing or ERP software uploads each B2B invoice to the Invoice Registration Portal (IRP). The IRP “generates and returns a unique Invoice Reference Number (IRN), digitally signed e-invoice and QR code to the user”.
The portal’s list of “GST Suvidha Providers / ERPs” has 42 names, Tally and Zoho among them. Developers test against the e-invoice API sandbox before going live.
Types of API
By where they run, there are two kinds.
- Local APIs are offered by a library, an operating system or a browser to programs on the same machine. The browser’s Geolocation API is one.
- Web APIs are called over a network, usually by HTTP. Every other API on this page is a web API.
Types based on the nature of the use case
- Open (public) APIs: anyone may call them, sometimes after signing up for a free key. The ECB answered our call with no key at all.
- Partner APIs: open only to the users the provider enables. The e-invoice sandbox opened in stages by turnover band, for example “Tax payers with turnover above Rs. 5 Cr” from 28 July 2022.
- Internal (private) APIs: used only inside one organization, for example between its ERP and its warehouse system.
- Composite APIs: one call runs several requests and returns the combined result, which saves the client several round trips.
Protocols and data formats APIs use
A protocol carries the message. A data format shapes what is inside it. The ones you will meet most:
- HTTP carries REST APIs and, typically, SOAP messages. RFC 9110 defines its methods (GET, POST and others) and its status codes, such as 200 OK and 404 Not Found.
- JSON is “a text format for the serialization of structured data”. JSON-RPC uses it.
- XML is the format of every SOAP message.
- CSV suits tables of numbers, like the ECB reply above.
- Protocol buffers are gRPC’s message format, defined in .proto files.
HTML is not on the list. It marks up pages for people to read, while APIs exchange data between programs.
Difference between API and Web service
Every web service is an API, but not every API is a web service.
| API | Web service | |
|---|---|---|
| Meaning | Any interface one program offers another | An API offered over a network |
| Where it runs | On the same machine or across a network | Across a network |
| Formal definition | None | W3C, 2004: a system for “interoperable machine-to-machine interaction over a network”, described in WSDL and using SOAP messages |
| Example | The browser’s Geolocation API | The ECB Data Portal API |
In everyday use the term has loosened beyond the W3C definition. The ECB calls its REST API a “RESTful web service”, and NetSuite calls its own “REST web services”.
FAQs
Is an API an application?
No. An application is a program that people or other systems use. An API is the set of requests an application accepts from other programs. A banking app is an application; the requests it sends to the bank’s servers go through the bank’s API.
What is the difference between an API and a user interface?
A user interface is for people: screens, buttons and forms. An API is for programs: requests and replies in a fixed format. Many business systems have both. Business Central, for example, has screens for its users and an API (v2.0) for other software.
Before you build on an API, check five things
- A published contract: an OpenAPI description, a WSDL or a GraphQL schema, with documentation that matches it.
- How you sign in: an API key, OAuth 2.0, or nothing at all, as with the ECB.
- The limits: requests per hour or per day, and what you get back when you pass them (403 or 429 at GitHub).
- The retirement policy: how much notice you get before an old version stops working. Google’s developer blog was warning AdWords users by 29 April 2021, a year before the cut-off, and Odoo publishes its removal dates.
- What the data may be used for: the ECB’s rates are for information only. An API’s terms matter as much as its code.
Using Google Search? Add erp-information.com as a preferred source.




