Campaign products
Lists the products on one A101 campaign page in Kapıda or Ekstra, one page of results at a time.
Loading / 加载中…
A101 API: Kapıda groceries and Ekstra products · E-commerce & marketplace data
The A101 API reads the two online shops of the Turkish discount chain A101: Kapıda, with groceries and household goods at the delivery store's prices, and Ekstra, with electronics, home goods and clothing. It searches either shop by keyword, lists the products on a campaign page such as Aldın Aldın or Haftanın Yıldızları, suggests products, categories and brands for a partly typed word, and returns a single product record. Prices are in Turkish lira.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Lists the products on one A101 campaign page in Kapıda or Ekstra, one page of results at a time.
Reads one A101 product by its product id or its page address, from either shop.
Searches the Kapıda or Ekstra shop for a Turkish keyword and returns a page of matching products.
Returns the top matching products and the category and brand suggestions for a partly typed keyword.
A101 is a Turkish discount grocery chain run by Yeni Mağazacılık A.Ş. from Üsküdar in Istanbul, and it follows the discounter model. Turgut Aydın founded it in 2008, and Turgut Aydın Holding owns the majority of the company.
Its network counts thousands of shops, and together with Bim and Şok it is one of three discount chains with stores in each of Turkey's 81 provinces. A101 Kapıda, which started as an app in April 2020, delivers groceries and household needs to the door, while A101 Ekstra offers a wider non-food range of electronics, white goods, furniture and clothing.
The channel input picks which of A101's two online shops a call reads, and its starting point differs per operation. Search, suggestions and campaign listings read kapida when the request leaves the input out, so a request for televisions or phones needs ekstra written out.
The product detail call starts from auto instead and looks for a product id in both shops; naming one shop narrows that look-up, and when you pass a page address the address alone decides the shop. Each row repeats its shop in channel, and Kapıda answers name their delivery store in store_code, so rows gathered from both shops can be told apart and grouped later.
Rows from search, campaign listings and suggestions share one shape.
| Field | What it tells you |
|---|---|
price | the shelf price, as a number |
currency | the currency of the prices, which reads TRY |
price_before_discount | the struck price |
discount_percent | the discount printed beside the struck price |
campaigns | the badges attached to the product, each with a code, a label, a site_name and the starts_on and ends_on dates of the promotion |
in_stock | whether the product is in stock |
image | a link to the product's picture |
url | a link to the product's page |
category, category_id, category_path | where the product sits in the shop's categories |
position | the product's place in the list |
Kapıda rows can carry further price blocks that sit next to the shelf price and never replace it, together with fields about the delivery store and the order.
| Field | What it tells you |
|---|---|
basket_offer | a price that applies only inside a qualifying basket, with the offer price, the regular_price, the condition to meet, a code, a label and the ends_on date |
multi_buy | a quantity offer, described through min_quantity, the reduced unit_price and the regular_unit_price |
unit_price | the shop's own price per unit, with price, per and label |
campaign_conditions | the shop's campaign text |
store_code | which store delivers the order |
sold_at_store | whether that store sells the item |
sales_unit, base_unit | how the item is sold |
max_order_quantity | the largest quantity of the item in one order |
The product detail call returns a product object with the row fields described above and further product details, some of them only on Ekstra records.
| Field | What it tells you |
|---|---|
net_weight_g, gross_weight_g | the weights in grams |
shelf_life_days | the shelf life in days |
storage_condition | how the item is kept |
return_days | the return period in days |
private_label | whether the item is one of A101's own labels |
description | the product text |
images | the pictures of the product |
breadcrumb | the trail of categories above the product |
campaign_period | the campaign shown on the page, with its dates |
product_page | false when only the search index could be read |
stock_count, stock_level | on Ekstra records, the stock of the product |
specifications | on Ekstra records, name and value pairs |
variants | on Ekstra records, the variants with size, colour and price |
installments, max_interest_free_installments | on Ekstra records, the card offers |
badges, collections | on Ekstra records, the badges and collections of the product |
Search expects Turkish words, such as peynir for cheese, yumurta for eggs or kulaklık for headphones, and brand names work as well as product words. A101's search tolerates typos, so a slightly misspelled keyword still reaches the intended products.
Choosing the right shop matters more than the spelling: a grocery word sent to ekstra cannot find groceries, because they are sold only in Kapıda. On a search, total_results can be null, while total_pages, page and has_more still describe where the current page sits in the result list.
{
"body": {
"query": "peynir",
"channel": "kapida"
}
}POST /api/v1/a101/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).Call the campaign listing with campaign set to aldin_aldin, which is also the default. Send channel ekstra to read the Ekstra version of the page instead of the default Kapıda one. Each row carries the product id, title, brand, shelf price, struck price, discount and the campaign badges with their start and end dates. For the Ekstra-only list, use aldin_aldin_ekstra with the ekstra channel instead.
Send campaign haftanin_yildizlari with channel kapida to the campaign listing, since this campaign belongs to the Kapıda shop. Start at page 1 and request the next page while has_more shows that more pages follow; total_pages states how many pages the campaign has.
Send the product detail call either product_id, which is the product_id of a search or campaigns row, or url, an a101.com.tr product address ending in _p- followed by the id or in /kapida/product/ followed by the id. The record returns price, barcodes, net and gross weight, storage condition and stock fields.
Send the same query again with page raised by one. The answer reports the page it holds, page_size, total_pages and has_more, so a loop can stop when has_more shows that no further page follows or when page reaches total_pages. Keep query, channel and sort the same on each request so that the pages belong to one result list.
Yes. With channel ekstra, sort takes price_asc for the lowest price first, price_desc for the highest, newest for the newest listings, discount for the biggest discount and best_selling for best sellers. Without sort the results follow A101's recommended order, which is relevance.
Send what the user has typed so far as query to the suggest call, for example peyn on the way to peynir. It returns the top matching products with their prices, category suggestions with their counts, and on Ekstra the brands with their counts. The echoed query helps you discard an answer that arrives after the user typed more.
Rows from the Ekstra shop carry barcode, the GTIN of the product, already in search, campaign and suggestion results. The product record adds barcodes, a list of barcodes; for a Kapıda product it holds every barcode that A101 lists for that item. Matching on these codes avoids comparing product titles, which differ in wording between retailers.
When A101 finds nothing for a query it fills the page with unrelated products. These rows are dropped from results by default, and fallback_results_dropped tells you how many were removed. Set include_fallback_results to true to receive them separately in fallback_results, with fallback_total. keyword_matches_on_page and page_notice help you tell a genuine match from a filled page.
Read the product with the detail call and look at other_channel_offer. When the item is sold in the other A101 shop as well, this object gives that shop's channel, product_id, price, struck price, discount, stock state, url and store code. The two shops set their own prices, so the figures in this object and in the record's own price field can differ.