From an Americanas API search to one product's full record
Start with body.query on americanas-search, Portuguese words a shopper would type; q and keyword work as alternative names for the same field. Once a row's own id or URL is in hand, send it as body.product_id on americanas-product-detail, which also accepts id, url and sku, to read the description, specifications, images and every competing seller's offer that a search row leaves out. Keep whichever form the search row gave rather than reformatting it before the second call.
A workflow that starts from americanas-category instead of a keyword search reaches the same product_id field the same way, so the second call does not change regardless of which listing operation produced the row. A row's own offer_count is a useful signal for when the second call is worth making: a row with more than one offer is where the offers in the full record from americanas-product-detail actually has more than one entry to compare.
Discovering and applying facets before you search
Call americanas-filters with the same keyword or category path a search or category call will use. Its reply lists each filter's values, every one carrying an exact value such as genero/feminino or tamanho/41. Add that value to body.facets on the later americanas-search, americanas-category or americanas-seller-products call.
Reading the filter catalogue first means body.facets is sent with values Americanas itself currently publishes rather than one typed by hand and matching nothing. The same reply's own price_range gives the lowest and highest card price across that catalogue, a useful starting point for the bounds of body.min_price and body.max_price before either is ever sent.
Browsing a category across pages
Set body.category to a path such as eletrodomesticos/fogao and raise body.page by one on each later call while keeping body.page_size and body.sort the same, since a category's products are paged rather than returned in one call. Keep requesting pages until has_more is false or max_reachable_results is reached, and read stop_reason for why a page came back short rather than assuming a short page means the category itself is empty.
Reading several products in one call and handling ids that don't resolve
Collect up to ten ids or product URLs in the body.product_ids array, which also accepts ids as an alternative name, and send them to americanas-product-batch in one call instead of repeating americanas-product-detail for each one; mixing bare ids and full URLs in the same array works the same way as sending only one form throughout. Compare the reply's requested count against count to see whether every id resolved, and read not_found for the ones that did not; a workflow can call americanas-product-batch again with just those ids rather than discarding the whole batch.
Suggestions, one seller's catalogue and competing offers
Feed what a shopper has typed so far to americanas-search-suggest as body.query, and read each suggestion's own term back as the next call's keyword. To watch one marketplace seller instead of a keyword, send that seller's exact name, read from americanas-filters' seller values, as body.seller on americanas-seller-products; a seller value of americanas-sa names Americanas' own direct listings rather than a marketplace seller. For one product, americanas-product-detail's offers lists every seller's own price for that same item in one call, which is faster than looking each seller up in turn.
Filtering by price, brand and stock while sorting consistently
Keep body.sort fixed across a run of calls to americanas-search or americanas-seller-products, since changing it between pages mixes two different orders into one walk. body.min_price and body.max_price narrow a run to a price band on the card price, body.brand narrows it to one brand at a time, and setting body.in_stock_only to true keeps the run to items Americanas currently lists as available rather than filtering them out afterwards. Add a body.facets value read from americanas-filters to the same call to combine a size or colour facet with the price and brand filters already in place, rather than issuing a separate call for the facet alone.
Keeping a paging loop inside the reachable window
americanas-search, americanas-category and americanas-seller-products only reach as far as max_reachable_results lets body.page and body.page_size go, since (page − 1) × page_size has to stay under 2500; a workflow that raises body.page_size to 50 reaches the end of a large result set in fewer calls than one left at the default of 20. Checking has_more before requesting the next page avoids a call that would otherwise be rejected for crossing that window. Because americanas-seller-products also accepts body.query, the same paging approach narrows one seller's catalogue to a keyword within that same window rather than needing a separate call for the keyword alone.
How Americanas works
Americanas headlines the price payable through Pix, a payment system Brazil's central bank runs so that a payer can settle at any hour with a registered key or a QR code rather than waiting on a bank's own hours. An EAN is the international barcode standard retailers use worldwide to give a single item a unique numeric identifier for stock control and trade, which is why the same EAN can be checked against other retailers' own listings for the identical item.
[
{
"body": {
"query": "cafeteira eletrica",
"sort": "price_asc",
"in_stock_only": true
}
},
{
"body": {
"product_id": "4895445"
}
}
]{
"body": {
"product_ids": ["4895445", "2089027"],
"country": "br"
}
}Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/americanas/americanas-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"eletrodomesticos/fogao"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Americanas Marketplace Data overview and prices · Read the API reference · Try it in the playground