Documentation
Americanas API reference
Reference for the Americanas API: what each of its seven operations accepts, its defaults and bounds, and what its reply returns.
See also: Americanas Marketplace Data overview and prices · Americanas API guide: search, detail and paging
On this page
americanas-search: matching a shopper's keyword
body.query on americanas-search is required and matches Portuguese words the way a shopper would type them into Americanas' own search box; q and keyword reach the same field under different names. body.country stays fixed at br on every operation, since Americanas sells only in Brazil and prices every reply in BRL; sending it is optional because that single value is also the default. A reply's own query field echoes the keyword that produced it, which matters once a caller is holding several replies for different keywords at once.
Fields in this section (2)
americanas-search, body.query
americanas-category: browsing by path instead of keyword
body.category on americanas-category is required and takes a path up to four levels deep, written the way Americanas itself writes it, such as eletrodomesticos/fogao, or a full category URL that encodes the same path; category_url and category_path reach the same field under different names. The reply's own category_path carries that path back as the breadcrumb the matched rows sit under, and category names the leaf the path resolved to, which is useful once a path has been typed by hand rather than copied from another reply.
Fields in this section (2)
americanas-category, body.category
Sort orders, including the retired best-sellers value
body.sort on americanas-search, americanas-category and americanas-seller-products takes one of six orders: relevance, ascending or descending by the card price, newest first, Americanas' own discount ranking, or alphabetical by name using Portuguese collation, so accented names sort the way a Brazilian shopper expects rather than by raw character code. The discount order tracks but does not exactly equal discount_pct computed from the same reply's own prices, measured at 112 of 114 adjacent pairs actually descending. A value matching Americanas' own retired best-sellers order, mais vendidos, is still accepted rather than rejected, and simply returns the relevance order unchanged.
Fields in this section (4)
body.sort, americanas-search, americanas-category, americanas-seller-products
Price, brand and stock filters shared by search, category and seller listings
body.min_price and body.max_price on americanas-search, americanas-category and americanas-seller-products both filter on the card price rather than the PIX price, and both accept 0 or higher with no documented upper bound. body.brand matches one brand at a time, written the way it appears in americanas-filters' own brand values, such as mondial. body.category_path on americanas-search and americanas-seller-products narrows a call to one category path or URL, the same value a category call's body.category would take.
body.in_stock_only defaults to false, so a call that leaves it out returns items Americanas lists as unavailable alongside the ones in stock; setting it to true drops the unavailable ones instead of marking them. body.seller on americanas-search and americanas-category narrows a call to one marketplace seller, written the way americanas-filters' own seller values publish it.
Fields in this section (7)
body.min_price, body.max_price, body.brand, body.in_stock_only, americanas-search, americanas-category, americanas-seller-products
americanas-filters: reading the facet catalogue
americanas-filters takes an optional body.query or body.category, the same keyword or path a later search or category call would use; leaving both out reads the filters for Americanas' catalogue as a whole. body.query also accepts q or keyword, and body.category also accepts category_path or category_url, as alternate names for the same field. Each filter in its reply carries:
- its own
key,labelandtype values, each one with its ownvalue,labeland matching-productcount
price_range adds the lowest and highest card price across the matching catalogue. A value read from this reply, not a label typed by hand, is what body.facets on americanas-search, americanas-category or americanas-seller-products expects.
Fields in this section (4)
americanas-filters, body.query, body.category, body.facets
americanas-seller-products: one seller's catalogue, paged
body.seller on americanas-seller-products is required and takes the seller's exact name the way americanas-filters' own seller values publish it, such as magazine-luiza; a seller value of americanas-sa names Americanas' own listings sold directly rather than a marketplace seller. body.query, which also accepts q and keyword, narrows that one seller's catalogue to a keyword instead of returning everything they list; leaving it out returns the seller's catalogue, paged the same way as a keyword-narrowed call. A reply's own seller field echoes the name sent, which is useful once a caller is holding replies for several sellers at once.
Fields in this section (3)
americanas-seller-products, body.seller, body.query
americanas-search-suggest: autocomplete terms
body.query on americanas-search-suggest is required and takes whatever a shopper has typed so far rather than a complete keyword; q and prefix reach the same field under different names. Each suggestion in the reply carries its own term, the department Americanas files it under, its position in the ranked list and search_count, Americanas' own count of how often that exact term is searched, which a caller can use to rank the suggestions it shows ahead of the position Americanas already assigned.
Fields in this section (2)
americanas-search-suggest, body.query
americanas-product-detail: the full product record
body.product_id on americanas-product-detail is required and takes the trailing id from a product URL or the full URL itself; id, url and sku reach the same field under different names. The product object carries everything a listing row carries, plus:
description, aspecificationstable of name-and-value pairs, andimagesvariants, each with its ownsku_id,ean, attributes, stock, a name and bothprice_brlandpix_price_brl, counted invariant_countoffers, each with its ownsellerblock,sku_id,price_brl,pix_price_brl,list_price_brlandinstallments, plus its stock, for that same itemcategory_id,release_dateandmeta_description
None of these fields appear on a row from americanas-search, americanas-category or americanas-seller-products.
Fields in this section (2)
americanas-product-detail, body.product_id
americanas-product-batch: several full records in one call
body.product_ids on americanas-product-batch is required and takes up to 10 ids or product URLs in one array; ids reaches the same field under a different name. products in the reply carries the same fields americanas-product-detail returns, one entry per id that resolved, and not_found lists any id that did not, by the value sent rather than silently dropping it. requested counts how many ids were sent and count counts how many resolved, so a caller can tell the two numbers apart without counting either list by hand.
Fields in this section (2)
americanas-product-batch, body.product_ids
Paging the Americanas API within the 2500-row reachable window
body.page and body.page_size page through americanas-search, americanas-category and americanas-seller-products, and the two are capped together: (page − 1) × page_size has to stay under 2500, the most of a result set Americanas serves, so a late page combined with a large page size is rejected even when earlier pages at the same size were not. has_more says whether a further page exists, total_results and max_reachable_results say how large the full match is and how far paging can actually reach within that cap, and stop_reason together with unparsable_rows_dropped explain a reply that stopped short of either number. A caller pages through a result set rather than reading it in one call.
Fields in this section (5)
body.page, body.page_size, americanas-search, americanas-category, americanas-seller-products
max_rotations across every operation
body.max_rotations is accepted on all seven operations and sets how many fresh attempts are made before giving up, from 1 to 6 with a default of 3; a value outside that range, or one that is not a number, is ignored and the default of 3 applies rather than the call being rejected. body.country is likewise accepted everywhere and fixed to the single value br, since Americanas trades only in Brazil and prices every reply in BRL, so a caller only ever needs to set it when being explicit rather than relying on the default.
Fields in this section (2)
body.max_rotations, body.country
{
"body": {
"query": "cafeteira eletrica",
"sort": "price_asc",
"page_size": 12
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
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.
Browse Category
POST /api/v1/americanas/americanas-category
Lists an Americanas category's products by path, paged with the same sorting and filtering as keyword search.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Required | — | — | — |
body.brand | string | Optional | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.facets | string[] | Optional | — | — | — |
body.in_stock_only | boolean | Optional | false | — | — |
body.max_price | number | Optional | — | — | ≥ 0 |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–2500 |
body.page_size | integer | Optional | 20 | — | 1–50 |
body.seller | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""newest""discount""name_asc" | — |
Request examples
# 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"}}'Response fields
results[]product_idsku_idtitlebrandurlimageprice_brlpix_price_brlpix_discount_pctlist_price_brldiscount_pctcurrencyinstallmentscountamount_brltotal_brlinterest_freelabel
selleridnameis_americanas
marketplacein_stockoffer_counteanreferencecategorycategory_path[]promotions[]namediscount_pct
counttotal_resultsmax_reachable_resultspagepage_sizehas_morestop_reasonunparsable_rows_droppedsortapplied_filterscountrycurrencycategory_path
Search & Category Filters
POST /api/v1/americanas/americanas-filters
Returns the brand, seller, price range and category attributes available for a keyword or a category, ready to send back as search facets.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
body.query | string | Optional | — | — | — |
Request examples
# 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-filters' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"cafeteira"}}'Response fields
filters[]keylabeltypevalues[]valuelabelcount
price_rangeminmax
countquerycategory_pathcountry
Product Batch
POST /api/v1/americanas/americanas-product-batch
Returns up to ten full Americanas product records in one call, listing any id that does not resolve separately.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.product_ids | string[] | Required | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
Request examples
# 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-product-batch' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"product_ids":["4895445","2089027"]}}'Product Detail
POST /api/v1/americanas/americanas-product-detail
Returns one Americanas product's full record: pricing, instalments, every competing seller offer, specifications, variants and images.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.product_id | string | Required | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
Request examples
# 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-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"product_id":"4895445"}}'Search Products
POST /api/v1/americanas/americanas-search
Searches Americanas by keyword and returns pricing, instalments, the selling seller and stock status for matching products.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.brand | string | Optional | — | — | — |
body.category_path | string | Optional | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.facets | string[] | Optional | — | — | — |
body.in_stock_only | boolean | Optional | false | — | — |
body.max_price | number | Optional | — | — | ≥ 0 |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–2500 |
body.page_size | integer | Optional | 20 | — | 1–50 |
body.seller | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""newest""discount""name_asc" | — |
Request examples
# 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-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"cafeteira eletrica"}}'Response fields
results[]product_idsku_idtitlebrandurlimageprice_brlpix_price_brlpix_discount_pctlist_price_brldiscount_pctcurrencyinstallmentscountamount_brltotal_brlinterest_freelabel
selleridnameis_americanas
marketplacein_stockoffer_counteanreferencecategorycategory_path[]promotions[]namediscount_pct
counttotal_resultsmax_reachable_resultspagepage_sizehas_morestop_reasonunparsable_rows_droppedsortapplied_filterscountrycurrencyquery
Search Suggestions
POST /api/v1/americanas/americanas-search-suggest
Returns Americanas' own autocomplete terms for a partial query, each with its department and search volume.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
Request examples
# 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-search-suggest' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"cafeteira eletrica"}}'Response fields
suggestions[]termsearch_countdepartmentposition
countquerycountry
Seller Products
POST /api/v1/americanas/americanas-seller-products
Lists what one named Americanas marketplace seller has for sale, paged with the same sorting and filtering as search.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.seller | string | Required | — | — | — |
body.brand | string | Optional | — | — | — |
body.category_path | string | Optional | — | — | — |
body.country | string | Optional | "br" | "br" | — |
body.facets | string[] | Optional | — | — | — |
body.in_stock_only | boolean | Optional | false | — | — |
body.max_price | number | Optional | — | — | ≥ 0 |
body.max_rotations | integer | Optional | 3 | — | 1–6 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.page | integer | Optional | 1 | — | 1–2500 |
body.page_size | integer | Optional | 20 | — | 1–50 |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""newest""discount""name_asc" | — |
Request examples
# 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-seller-products' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"seller":"magazine-luiza"}}'Response fields
results[]product_idsku_idtitlebrandurlimageprice_brlpix_price_brlpix_discount_pctlist_price_brldiscount_pctcurrencyinstallmentscountamount_brltotal_brlinterest_freelabel
selleridnameis_americanas
marketplacein_stockoffer_counteanreferencecategorycategory_path[]promotions[]namediscount_pct
counttotal_resultsmax_reachable_resultspagepage_sizehas_morestop_reasonunparsable_rows_droppedsortapplied_filterscountrycurrencyseller
How calls work
POST /api/v1/americanas/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: