Key facts
- Search endpoint:
POST https://api.datafiniti.co/v4/products/searchwith bearer-token auth. gtinsis one searchable field holding a product's EAN, ISBN, and UPC values.- Datafiniti stores what most catalogs call the MPN in
manufacturerNumber. - A product search costs 1 credit per record returned, and 0 credits if nothing is found.
mostRecentPriceByDomainlists the latest price per source domain, withamount,currency,availability,isSale,date, andsourceURL.- Downloads run through
"download": true, thenGET /v4/downloads/{id}until the status is "completed".
Datafiniti is a data-as-a-service provider that offers Property, People, Business, and Product data through a REST API, bulk downloads, and an MCP server. This guide covers one job: taking the products you already sell or track and finding the same items at other retailers.
Who needs to match products across retailers?
- Price-intelligence products that compare one item's price across stores.
- Marketplaces and retailers that want to see who else carries their assortment.
- Brands that track where their products are listed and at what price.
- Catalog and PIM teams that fill gaps in supplier data or clean up customer-entered entries.
- AI shopping and research agents that need one identifier-based record instead of a page per store.
Why is product matching hard to build yourself?
Scraping a price is the easy part. Knowing that two pages describe the same item is the work.
- Identifiers are uneven. One retailer shows a UPC, another an EAN, another only its own SKU. A product can carry several barcodes, including ones for variations.
- The same barcode gets written several ways. A 12-digit UPC and its 13- or 14-digit zero-padded form are the same GTIN, but a plain string join sees three values.
- Model numbers aren't unique on their own. Datafiniti's own docs say neither
brandnormanufacturerNumberis a reliable identifier alone. You need the pair. - Records have to be merged. Datafiniti builds
keysfromean,isbn,upc,vin,websiteIDs, and frombrandormanufacturerpaired withmanufacturerNumber. Records sharing a key merge. Building that yourself means owning the merge logic and its errors. - Sites change. Every retailer needs its own extraction, and each one breaks on its own schedule.
What fields do you use to match products?
| Field | Type | What it tells you |
|---|---|---|
gtins | keyword (list) | All EAN, ISBN, and UPC values for the product |
upc, ean | keyword (list) | Individual barcodes; several can appear when a product has variations |
manufacturerNumber | keyword | The manufacturer or model number (the MPN) |
brand | text | The brand as presented by the source |
canonicalBrand | text | The brand name after normalization |
manufacturer | text | The manufacturer; sometimes holds the brand when a source uses that term |
asins | keyword | The Amazon ASIN |
skus | nested | SKUs, typically specific to one retailer, with value and sourceURLs |
keys | keyword | Internal identifiers used to merge source data into one record |
domains | domain | Unique domains found in sourceURLs |
sourceURLs | keyword | The URLs used to build the record |
mostRecentPriceByDomain | nested | The latest price from each source domain |
prices | nested | Price history with amountMin, amountMax, condition, merchant, dateSeen, and more |
dateUpdated | date | When the product was last updated or seen |
A trimmed record looks like this (fictional example data):
How do I match my catalog step by step?
Step 1: Size the job
Prepare a CSV with sku, gtin, brand, and manufacturerNumber columns. Keep barcodes as text so a spreadsheet doesn't strip the leading zeros.
The script below asks for up to 5 candidates per lookup, and only runs the second lookup if the first finds nothing, so the worst case is 5 credits per row. Pilot 20 rows to find your real rate.
To check a query for free, use the MCP tool df_count. Over REST, send "num_records": 1 and read num_found, or send "num_records": 0 on a paid account to get only the count at no credit cost.
Step 2: Test one product
Datafiniti's docs show this brand OR manufacturer form because a brand is sometimes stored under manufacturer. Searching both can improve match rates.
For a barcode, the query is shorter: gtins:(012345678905 OR 0012345678905).
Step 3: Match the catalog in tiers, and grade each match
Try the barcode first, because it identifies a specific item. Fall back to brand and model number only when the barcode is missing, invalid, or finds nothing. Datafiniti's matching example combines the same two signals in one query. Running them as tiers tells you which signal matched.
Treat each outcome differently:
matched_gtin: the record contains your barcode and the brand agrees. Accept it.matched_model: one record, same brand and model number. Accept it, and sample a few by hand.ambiguous: more than one record came back. Use the name, size, or color to pick one, or send it to review.review: a record came back, but the barcode or brand doesn't line up. Don't accept these automatically.no_match: no credits spent on that lookup. The item may be private label, or not covered.
Step 4: Pull a whole retailer's catalog
If you want everything a store lists, rather than a list you already hold, download by domain and join on your side. Set num_records to cap spend; if you omit it, every matching record is downloaded and charged. This example limits results to records updated in the last 90 days.
JSON result files hold one object per line, so parse them line by line. Result links expire after 7 days, so copy the files to your own storage.
To match a file of thousands of known barcodes, Datafiniti also offers an enrichment flow: upload a CSV with a header row named for a schema field such as gtins, along with a query that includes gtins:*. See the product enrichment guide, and run a small test first, because the docs don't say how unmatched rows appear in the output.
Step 5: Put the result to work
Store the Datafiniti id next to your SKU, with the match_status and match date. Then:
- Compare prices by grouping
offers.csvbyskuandcurrency. Show each retailer's gap against your own price. - Measure coverage with the share of your catalog in each match status.
- See who carries an item from
domains, and link out withsourceURL. - Fill catalog gaps from
name,imageURLs,categories, anddescriptions.
Property teams solve a similar problem with addresses instead of barcodes. See How to match an address list to property records.
Can an AI agent match products?
Yes, for short lists and one-off questions. Connect an MCP client to https://api.datafiniti.co/v4/mcp (Streamable HTTP) with your API token as a bearer header:
Use "data_type": "product" with df_count (free) to test a query, and df_search (up to 50 records per call, charged per record) to read matches. df_get_schema (free) returns field names. Pass view, an array of field names, to keep responses small. For a full catalog, use df_start_download or the REST flow above.
Example prompt:
Using Datafiniti product data, find the product with barcode 012345678905. Count matches first. If there are none, search by brand "Alderbrook Audio" and manufacturer number "AB-2200-K". Show me a table of each retailer domain, its most recent price, currency, availability, and price date.
What are the common gotchas?
- Variations share records. The
upcandeanfields can hold several codes when a product has variations. Check color and size before you treat two offers as identical. - A wrong identifier at a source can merge two products. Records merge when they share one key. That's why the script checks the brand even on a barcode match.
mostRecentPriceByDomaindoesn't show condition in the schema example. If new versus used matters, readprices, which hasconditionandmerchant.- Don't compare across currencies. Group by
currency, and check the pricedateso a stale offer doesn't look like a discount. - One domain isn't always one seller. Marketplaces host many merchants. Read
prices.merchantwhen you need the seller, andmerchantsfor third-party sellers. - Parenthesize OR groups. Write
gtins:(A OR B)and(brand:"X" OR manufacturer:"X") AND manufacturerNumber:"Y". Without parentheses, the AND binds in ways you didn't intend. - Not every record has every field. The schema page says so directly. Treat a missing
gtinsormanufacturerNumberas normal, and usegtins:*to require a value. - Spreadsheets damage barcodes. Excel can strip leading zeros or convert long codes to scientific notation. Export identifiers as text.
Should you build, license, or buy?
| Scrape it yourself | License retailer or supplier feeds | Datafiniti Product Data | |
|---|---|---|---|
| Suited to | A few sites you know well | Retailers or suppliers you have agreements with | Matching across many retailers from one API |
| Identifiers | Whatever each site exposes | Defined by each feed | One schema: gtins, upc, ean, manufacturerNumber |
| Matching | You write normalization and merging | You write the cross-feed matching | Records merged on shared keys; you grade the result |
| Ongoing work | Extractors for every site | Contracts and per-feed integrations | Match review and query upkeep |
| Choose it when | Your scope is narrow and you need specific fields | You need contractual data rights or a feed's exact fields | You want cross-retailer records without running collection |
Datafiniti isn't the right fit for every catalog. Unbranded or private-label goods often have no shared identifier, so you'd need title or image similarity instead. If you reprice in near real time from a handful of stores, a direct feed gives you tighter control over freshness. And if you need to confirm who owns a barcode, go to the GS1 registry.
Frequently asked questions
What API can I use to match products across retailers?
Datafiniti Product Data. Search POST /v4/products/search with gtins:(…) or with brand and manufacturerNumber, then read domains and mostRecentPriceByDomain on the record.
How do I find a product by UPC or EAN?
Query the gtins field, for example gtins:012345678905. It covers EAN, ISBN, and UPC values, so you don't need to know the barcode's format. Use upc: only if you know the value is a UPC.
Which field holds the MPN in Datafiniti?
manufacturerNumber, which holds the manufacturer or model number. Combine it with brand or manufacturer, because the docs say neither is a reliable identifier alone.
How much does product matching cost?
A product search costs 1 credit per record returned, and nothing if 0 records are found. Limit num_records to control the most you can spend per lookup.
Can I get every product a retailer sells?
You can download the records Datafiniti holds for a domain with domains:www.example-retailer.com and "download": true. Coverage varies by retailer, so check num_found first.
Can I compare prices between retailers?
Yes. mostRecentPriceByDomain gives each domain's latest amount, currency, and date. Compare only offers with the same currency and a recent date.
Start matching your catalog
Run your first 20-row pilot with a free trial, or talk to us about volume and delivery.