An API (Application Programming Interface) is an agreed way for two programs to exchange data without a person. One system sends a precisely worded request, for example "send me the product prices", and the other immediately returns the answer in a structured form.
What an API is
Think of the serving hatch in a restaurant. You cannot walk into the kitchen, but through the hatch you hand over an order in a precisely defined form and get the finished dish. An API is a hatch like that into another system: you cannot see inside, but you can ask for data or send it.
Related terms:
- REST API – the most widespread style of API. Requests are sent to web addresses and answers most often come back in JSON format,
- endpoint – the specific address of an API for one task, for example a list of products,
- API key (token) – a secret string with which a program proves who it is, much like a password,
- webhook – the opposite direction: the system sends a message by itself when something happens.
API or feed?
A feed is like a printed price list that the buyer collects regularly – the whole thing at once, say once an hour. An API is like a phone call: you ask about one thing and get the answer straight away.
A feed is simpler and almost every comparison site accepts it. An API is faster and more precise, but both sides must be able to program it. Google Merchant Center, for example, accepts products both from a feed and through an API. Many e-commerce platforms, warehouse systems and accounting systems (ERP) have their own APIs too.
What it is used for
- Connecting a warehouse or ERP – a change of price or stock is passed on without waiting for the next feed download.
- Marketplaces – offers and orders are often synchronised through an API.
- Automation – a script downloads an error overview in the morning or starts a recalculation.
- AI agents – programs with artificial intelligence work with data through an API or through MCP.
What to watch out for
- An API key is like a password. Do not send it by email and do not put it in publicly accessible code.
- The fewest permissions possible. A key that only reads reports should not have the right to change data.
- Request limits. Many APIs limit the number of calls per minute. Requests that are too frequent return an error.
- Version changes. A provider may switch off an older version of the API, so follow its announcements.
How Sortyra helps
Sortyra has a REST API through which your system reads outputs, sources, products and rules, edits products and starts a recalculation. You create keys with an exact scope of permissions in AI and integrations → API and webhooks. Sources are connected to Sortyra by a feed address or a file, not through the online shop's API.
Related terms
- JSON
- Webhook
- MCP – Model Context Protocol
- Feed
- Data export
- REST API
- Connecting an online shop via API
- You can find all terms in the glossary.
Frequently asked questions
Is an API better than an XML feed?
Not always. An API suits frequent changes and a direct link between systems, while a feed is simpler and accepted by most comparison sites.
What is an API key?
A secret string with which a program proves its identity when calling an API. If it leaks, revoke the key and create a new one.
Do I need a programmer for an API?
For the connection itself, usually yes. You can handle everyday work with feeds in the application without an API.