For web scraping vs API, start with the information staff need to act on, rather than the technology available. Choose an official API when its fields, access terms and update behaviour fit the task. Consider permitted website collection when the necessary information is only on pages. Ask about a supplier feed before committing to either.
If staff are checking supplier websites and copying prices or stock into a spreadsheet, successful collection is only part of the job. You also need to know that the price applies to your account, the stock belongs to the right product and location, and the information is recent enough to use.
Choose a reliable source for business data
Define the decision
List what staff need: account price, product, location and quantity.
Ask about a feed
Check whether the supplier can send agreed prices and availability in a file.
Check the source
Compare API fields or permitted page data with the details your decision needs.
Validate before use
Test one real purchase decision; confirm the match, permissions and freshness.
I would test the source against one real purchasing decision before choosing how to collect it. An API that omits available quantity and a webpage that says “in stock” may both be inadequate for an order that depends on a specific quantity being available.
What each route actually gives you
An official API supplies defined fields
An API is an interface through which software requests information from a provider. Instead of staff reading a page, your system asks for a product record and receives structured fields.
That makes the information easier to process, but does not establish completeness or access. Check the actual account permissions and responses, not simply whether the supplier advertises an API.
For example, Walmart’s DSV inventory documentation describes inventory retrieval for an item and ship node, bulk feeds and feed-status tracking. It is intended for DSV suppliers and solution providers. This illustrates why both location detail and eligibility matter: a documented inventory interface is not automatically an accessible source for every buyer.
Web scraping collects information from pages
Web scraping means software reads webpages and extracts selected information, such as a product code, displayed price or availability message. It can be useful when a suitable structured source is unavailable and collection is permitted.
However, a page designed for a person may leave important details implicit. “Available” might not tell you the quantity, warehouse or time of the last stock update. A changed layout can also cause a collector to pick up the wrong value while appearing to work.
A third-party scraping API is still website collection. It provides an interface for requesting extracted page data; it is not the same as an official API supplying the operator’s own records.
A supplier feed provides an agreed export
A supplier may offer a scheduled file containing prices and availability, delivered through an agreed channel. This can be a practical alternative when the public API lacks account-specific details or the website is unsuitable for collection.
Structured feeds can include useful matching detail. For example, eBay’s availability-feed guidance describes CSV or XML uploads containing availability and quantity, with unique SKUs and location identifiers where location-specific availability is supplied. That does not mean your supplier offers the same service, but it gives you concrete fields to ask for.
Compare coverage, permission and freshness before convenience
Assess all three routes against the same requirements. A convenient connection is not a good choice if it cannot support the decision.
- Coverage: Does it contain the exact product variant, account price, currency, pack size, stock location and available quantity you need? Distinguish a missing value from a genuine zero.
- Record matching: Can you match records using a stable supplier SKU or another dependable identifier? Product names alone can confuse similar sizes or variants.
- Freshness: How often does the underlying information change, and when does the source publish those changes? Fetching a page every minute does not make its stock figure a minute old.
- Permission: Do the agreement and relevant terms cover your access, storage and intended use? Consider onward sharing separately from internal use.
- Capacity: Can you retrieve the required records within the documented request limits and access conditions, including retries and busy periods?
- Failure behaviour: Can you detect missing records, old information and contradictory values before staff act?
Public visibility alone does not settle permission. The research on legal and ethical considerations in web scraping discusses contractual, intellectual-property and privacy issues as context-dependent considerations. Have the relevant terms and planned use reviewed where necessary; do not treat technical access as approval.
For an API, check authentication, account eligibility and request limits in the provider’s documentation and confirm them with a representative test. For a feed, agree delivery frequency, file completeness and how failures are reported. For page collection, check the permitted collection pattern and whether the page exposes enough detail to validate what you extract.
Worked example: ordering against supplier stock
Illustrative scenario: a distributor wants staff to prepare purchase orders using supplier prices and availability. Assume its purchasing team requires the supplier SKU, account price, currency, pack size, warehouse, available quantity and a stock update time. For this example, the team sets a maximum stock-data age of 30 minutes and requires confirmation before submitting an order.
Using an API: suppose it returns product codes and account prices, but only a general availability flag. The connection may work perfectly, yet it cannot establish whether the required quantity is available at the right warehouse. It could support price preparation, but should not approve the stock-dependent order.
Collecting the website: suppose the signed-in page shows a quantity and warehouse, but no stock update time. Recording when the page was fetched proves when the value was observed, not when the supplier last refreshed it. Unless the supplier can establish suitable update behaviour and permit collection, this route also fails the ordering requirement.
Requesting a feed: suppose the supplier offers those fields with a stock timestamp. An overnight file would still fail the assumed 30-minute threshold. A feed delivered frequently enough, with detectable missing deliveries, could fit. The recommendation changes because of its contents and delivery behaviour, not because files are inherently better.
In each case, missing or stale availability should leave the order awaiting confirmation. Do not silently reuse yesterday’s quantity or convert an unknown value to zero. Assign the purchasing team responsibility for obtaining confirmation, while the technical owner investigates the update failure.
No source in this example reserves stock. The confirmation step remains necessary unless the supplier provides an ordering or reservation process that meets that requirement.
Choose the route with the smallest supportable commitment
Prefer the official API when authorised access provides the necessary fields, suitable freshness and enough request capacity. Structured responses can simplify processing, but you still need checks for changed fields, access failures and incomplete records.
Prefer a supplier feed when the supplier can provide a better-defined dataset on a suitable schedule. Agree how you identify a complete delivery and whom to contact when it fails. Receiving a file is not proof that its contents have been successfully processed: Walmart’s bulk inventory guidance, for example, describes asynchronous processing and tells suppliers to track feed status to establish whether updates succeeded.
Use permitted page collection when the necessary information is available there, its meaning can be checked, and the business can support ongoing maintenance. Avoid making high-impact decisions from a page label whose freshness or meaning cannot be established.
Compare total operating effort rather than assuming one route is cheaper. Ask for setup, access or usage charges, monitoring, repairs, record reconciliation and staff review to be priced separately. A low setup cost can be outweighed by repeated manual investigation.
Supplier stock record: evidence before ordering
Final record
Evidence used
Combine sources only when records and meanings align
You might take product descriptions from an API and account prices from a supplier feed. That can work if both use stable identifiers and you define which source is authoritative for each field.
Keep the source, collection time and supplier update time where available. Do not merge a case price with a single-item quantity, or stock from one warehouse with another warehouse’s delivery promise.
The useful scope for business data systems includes these matching and validation rules, as well as moving values into a spreadsheet or purchasing system. If page collection is the chosen source, the next decision is whether a scraping API or custom data collector can deliver those checks.
A source-selection worksheet for your brief
Complete this before commissioning the connection. Use the same answers to assess each candidate source.
- Business action: What will staff do with the information, and what happens if it is wrong?
- Required details: List mandatory fields, units, currencies, locations and account-specific values. Mark optional fields separately.
- Matching rule: Specify the identifier and how unmatched products or variants will be handled.
- Permitted use: Record who grants access and which terms cover collection, retention and use.
- Freshness rule: Define maximum acceptable age, how age is established and whether confirmation is required before action.
- Collection volume: Record product count, update frequency, peak demand and the capacity needed for retries.
- Missing-information rule: State which gaps block action and which can go to staff for review.
- Ownership and cost: Name the technical maintainer and business decision owner. Include ongoing access, monitoring, repair and review effort.
- Stopped-update response: Define the alert recipient, how old values are marked or withheld, and the manual fallback.
Validate a small sample before automating decisions
Test representative records, including variants, unavailable items and account-specific prices. Compare the collected values with the supplier’s source and clarify ambiguous meanings. Test enough update cycles to assess the required delivery schedule rather than accepting one successful response.
Then deliberately test an absent field, an old timestamp, an unmatched SKU and a failed update. Confirm that staff see a clear warning or a blocked action, rather than an apparently current spreadsheet.
Choose the source only when it passes those tests. If none does, retain a supplier-confirmation step or narrow the automation to preparation. Automating the copying can still be useful without pretending the information is dependable enough to approve an order.
Need dependable supplier data in your business software?
Show ZappFlow the suppliers or websites involved, the details staff copy and how current those details need to be. We can assess the access options and scope a maintained collection process with appropriate validation and fallback rules.