What is an API integration?
An API integration connects one system to another through documented requests and responses. Your software, dashboard, CRM or database sends a defined request to a provider’s application programming interface (API), and receives structured data or triggers an action. For example, a retailer might use a payment API to confirm an order, a CRM API to create a lead, or a marketplace API to update authorised product stock.
In practical terms, API integrations replace manual copying between systems. They normally use credentials issued by the platform, follow published documentation, and return predictable fields such as product ID, order status, price, inventory level or campaign metrics. A well-built integration handles authentication, field mapping, retries, error reporting, duplicate prevention and scheduled synchronisation. These are common building blocks in business automation projects.
What an API does well
- Moves data between systems where you have permission to access the account or service.
- Supports business actions, such as creating orders, updating stock, sending messages or adding CRM records.
- Returns structured records that are usually easier to validate than page content.
- Offers documented rules on quotas, fields, authentication and permitted uses.
- Provides stable identifiers that help reconcile records across systems.
An API is therefore usually the first option for data from your own systems, authorised seller accounts, payment providers, CRM platforms and partner services. It is especially suitable when the job requires writing data back to a platform, not just reading it.
API vs web scraping: the practical difference
Web scraping, also called data extraction, collects information displayed on publicly accessible web pages and converts it into a usable format such as CSV, Excel, JSON, Google Sheets, an API feed or a database table. Rather than requesting a platform’s official data endpoint, a scraper reads the information a normal visitor can see in the public interface. For a fuller technical overview, see how web scraping works.
The distinction matters because each source represents a different version of the available data. An API exposes what the provider has chosen to document and approve. A public page may show more of the information a customer sees: current product availability, listing descriptions, delivery messaging, review counts, category placement or visible competitor pricing.
A simple comparison
- Coverage: APIs may cover only approved accounts, selected regions, limited product types or a subset of historical records. Scraping can capture relevant information displayed publicly on selected pages.
- Data shape: APIs usually provide consistent fields and IDs. Public pages can vary by category, region or design and require normalisation.
- Actions: API integrations can often create or update records. Scraping is normally read-only data collection.
- Access: APIs may require an application, account permissions, partner approval or a paid plan. Public-page extraction does not assume account access.
- Maintenance: API versions can be retired or changed. Websites also change page layouts, so a production scraper needs monitoring and fixes.
- Compliance: both approaches require a review of contract terms, privacy obligations, intellectual-property rights and the intended use of the data.
Neither method removes the need for data quality work. Product names may differ between sellers, property listings may be duplicated, and a price may include or exclude delivery. Define a data dictionary before development: every output field, its source, format, currency, update rule and acceptable missing-value treatment.
When an official API is enough
Choose an official API when it provides the data you need at the volume and frequency you need it, and when your organisation has the necessary permission. This is often the cleanest solution for operational integrations: synchronising your own marketplace inventory, pulling authorised advertising metrics, connecting a website and chats to a CRM, or passing paid-order events to fulfilment software.
- List the business decisions or processes the data must support. “We need competitor intelligence” is too broad; “we need daily SKU-level price and availability by seller” is actionable.
- Map the exact fields required, including identifiers, timestamps, pagination, historical data and regional variants.
- Read the API documentation for quotas, rate limits, access tiers, retention rules, regional coverage and deprecation policy.
- Test with real edge cases: cancelled orders, out-of-stock items, variant products, deleted records and delayed updates.
- Calculate the total integration cost, including development, vendor charges, monitoring, support and the operational cost of data gaps.
A good API proof of concept should test business completeness, not merely whether an endpoint returns a successful response. If the API gives 80 percent of the fields but omits the field that drives your pricing or routing decision, it may not meet the requirement. For custom workflows that connect sites, chats and internal tools, custom software development can turn approved APIs into one controlled operational process.
Official APIs can also be the better long-term option when a provider offers reliable webhooks. Instead of repeatedly asking whether an order changed, your system receives an event when it happens. That reduces unnecessary requests and can improve the timeliness of authorised operational data.
Where API integrations commonly fall short
API limits are rarely just technical. A provider may restrict access to approved partners, require a commercial relationship, limit requests per minute or day, expose only a narrow set of fields, or withhold historical data. Documentation can be excellent while still describing an API that does not answer the commercial question your team actually has.
- A marketplace API gives sellers data about their own listings but not a full view of competing sellers’ public offers.
- A property or job platform may offer lead-management tools but no endpoint for market-wide listings, search-result position or public listing changes.
- A review platform API may expose aggregate data but not the public-page detail needed for local branch analysis.
- A search or advertising API may return authorised account metrics but not every visible page element, competitor presentation or organic result feature.
- An API may have quotas that make frequent checks across thousands of products impractical, even if the endpoint technically contains the field.
Approval is another planning risk. If your launch depends on an API partnership, establish the approval path before promising a delivery date. Ask who owns the developer account, whether production access is separate from sandbox access, what happens if access is revoked, and whether use is limited to a particular country, account type or customer relationship.
Do not try to solve an access restriction by bypassing logins, paywalls, technical controls or account permissions. That can breach platform terms and may create legal risk. In the US, the Computer Fraud and Abuse Act can be relevant to unauthorised access questions; in the UK, the Computer Misuse Act 1990 is relevant. The facts matter, so obtain legal advice for your specific planned use.
When web scraping is the appropriate data source
Web scraping may be the appropriate route when the needed information is publicly visible but not available through an official API, or when the API has insufficient coverage or fields. Typical examples include monitoring publicly displayed competitor prices, collecting public real-estate listings across portals, tracking public job postings, or building a structured catalogue from supplier and directory pages. Kodrana’s ready scraper catalogue covers marketplaces, property, jobs, travel, reviews and directories, among other public sources.
Use a narrow scope. Specify the public pages, markets, search queries, categories, fields, record volume and refresh interval. A grocery-price monitor, for instance, may need product name, brand, pack size, price, promotion text, availability, URL and collection time. It may not need customer reviews, user profiles or every element rendered on the page.
Responsible data collection checklist
- Collect only publicly available information that is necessary for the stated business purpose.
- Do not use another person’s account, circumvent access controls, or gather data from pages behind logins or paywalls.
- Avoid personal data unless you have a lawful basis, a documented purpose, retention controls and appropriate legal advice. Kodrana collects publicly available data only and does not collect personal data.
- Keep request volume measured and considerate rather than placing an excessive load on the site.
- Review website terms, applicable copyright rules and database rights before using or redistributing the output.
- Store source URLs and collection timestamps so analysts can trace and verify a record.
For UK and EU activity, GDPR or UK GDPR may apply where personal data is involved. Copyright can protect page content, while the EU database right may protect substantial extraction or reuse of qualifying databases. California businesses should also assess CCPA/CPRA obligations where applicable. Public availability does not automatically mean every use is permitted. Read web scraping legal guidance and ask a lawyer to assess your particular source, geography, volume and intended use.
Costs, maintenance and the value of a combined approach
The cheapest initial build is not always the lowest-cost data system. API integrations require engineering for authentication, mappings, quotas, version changes, error handling and monitoring. Scrapers require extraction logic, data normalisation, quality checks and maintenance when a public site changes. The right comparison includes the cost of delayed decisions when data is incomplete or stale.
For a scraping project, cost is influenced by source complexity, volume, update frequency, output format, data-cleaning rules and the site’s technical protection. Kodrana offers one-off exports of up to 10,000 records from $249 / $399 / $690 depending on site protection. Weekly updates start from $149/month and daily updates from $299/month, plus one-time setup. These subscriptions include fixes within 48 hours when the site changes, data storage and support. A defined competitor price-monitoring project is listed at $399 with a 2–5 day timeframe; see price monitoring options for the business use case.
A hybrid design is often the strongest answer. Use approved APIs for actions and data from systems you control, then use carefully scoped public-data extraction for market context that the API does not expose. For example, a retailer can use its own commerce and CRM APIs for orders and stock, while monitoring publicly displayed competitor offers separately. Bring both feeds into one reporting model, retain source and timestamp fields, and set reconciliation rules when the values conflict.
The architecture should make the boundary explicit: API data is an authorised system-of-record feed; extracted web data is observed public market data. This distinction helps analysts interpret results correctly and makes compliance, maintenance and future vendor decisions easier to manage. Kodrana can deliver public-source data into CSV, Excel, JSON, Google Sheets, an API or webhook, or directly into a CRM or database.
A practical decision process for your next data project
- Write the decision the data must support and the deadline for acting on it.
- Define the minimum viable dataset: fields, sources, regions, expected record count, refresh schedule and output destination.
- Check official APIs first for authorised account data and required write actions.
- Identify field and coverage gaps. Confirm whether the missing information is truly public and necessary.
- Review terms, privacy, intellectual-property and computer-misuse considerations with counsel where the use case is unclear.
- Run a small test and measure completeness, duplicates, latency and data accuracy before committing to a long-term workflow.
- Choose API only, extraction only or a combined model, then assign an owner for data-quality checks and change alerts.
The right brief avoids vague requests such as “scrape this website” or “connect our API.” State the source, precise public pages or authorised endpoints, fields, update frequency, destination and success criteria. You can also review monitoring system examples to see how recurring collection can support supplier catalogues, pricing and marketplace tracking.
If you need to validate a public-data requirement, Kodrana can check the site’s protection and provide a free sample of 50–100 records before payment. Send the site and required fields for a free data sample or a quote, then use the sample to confirm coverage, format and suitability before commissioning the full workflow.
FAQ
What is the difference between an API and web scraping?
An API provides structured access through documented endpoints, usually with credentials and defined permissions. Web scraping collects information displayed on public web pages and turns it into structured data. APIs are generally better for authorised operational actions, while scraping can be useful for public data an API does not expose.
Is web scraping allowed if a website has no API?
The absence of an API does not by itself make scraping permitted or prohibited. The answer depends on the information collected, access method, website terms, applicable privacy law, copyright and database rights, and intended use. Do not bypass logins, paywalls or technical restrictions, and consult a lawyer for a specific project.
Why would an official API not include all the data on a public page?
Platforms decide which fields, account types, use cases and volumes their APIs support. They may restrict competitor information, public search data, historical records, detailed content or high-frequency access. Check required fields against real API responses before designing a workflow around the documentation alone.
Can an API integration and web scraping be used together?
Yes. A combined model can use official APIs for authorised order, inventory, CRM or payment processes while using public-page data for market research, pricing or listing intelligence. Keep the feeds clearly labelled, retain collection timestamps and apply separate governance rules to each source.
How do I estimate the cost of an API or scraping project?
Start with sources, fields, record volume, update frequency, output destination and required data-cleaning rules. For scraping, source complexity and ongoing maintenance affect the price; for APIs, account approval, authentication, mappings and monitoring matter. A small sample or proof of concept is the best way to expose missing fields and operational constraints early.