Own-label brands
List BİM's product categories, then the own-label brand names and logos inside one category.
Loading / 加载中…
BİM API · E-commerce & marketplace data
The BİM API offers six calls: the list of current and upcoming leaflets, the products of one leaflet with prices in TRY, one product by URL or slug, the leaflet posters as images, the own-label brands by category and the store finder by province and district.
JSON in, a structured response out. Every public gateway endpoint uses POST.
List BİM's product categories, then the own-label brand names and logos inside one category.
Read the product rows of one leaflet with prices, package size, features and instalments.
List the current, upcoming and recent leaflets with their keys, dates and status.
Return the printed leaflet sheets as cover and page images with BİM's download link.
Read one leaflet product by URL or slug with its images, feature list and brand.
List the provinces, the districts of a province and the stores of a district.
BİM publishes its weekly campaigns as leaflets, and the family decides what a leaflet carries. The aktuel family holds the dated special-buy sheets, and BİM prints no struck price on them. The indirim family holds the price-cut sheets: each runs over a date range and shows a struck price next to BİM's discount percent.
body.type names the family in three operations. bim-leaflets and bim-posters accept all for both families, and bim-posters adds kirtasiye for the stationery sheets, while bim-leaflet-products reads one family per call.
A row of products in bim-leaflet-products describes one product, and these fields carry its figures:
| Field | What it tells you |
|---|---|
position | where the product sits on the leaflet |
brand | the product's brand, null when BİM left its brand field empty |
package_size | the size of the pack |
features | the feature bullets of the product |
price | the campaign price as a number in TRY |
max_interest_free_installments | the highest number of interest-free instalments |
campaign_type | the kind of campaign the product belongs to |
When brand is null, the brand is often inside title, because it is not split out. image and url point to the product's picture and its page, and slug is the part of the address that bim-product-detail takes as body.slug.
Besides products, a call to bim-leaflet-products returns figures about the whole sheet:
count and products_with_struck_price: how many products the sheet has and how many of them carry a struck priceprice_range: the lowest and highest price on the sheet, with currency set to TRYproducts_without_price: the products for which BİM prints no price, because it hides a 0,00 price button on thembanner_tiles: the advert tiles inside BİM's grid, which are never counted as productsleaflet: the sheet the products belong to, with its leaflet_key and urlOn every aktuel leaflet source_publishes_struck_price is false, which matches the way BİM prints no struck price there.
Each entry of leaflets in bim-leaflets carries the leaflet_key that bim-leaflet-products takes.
status places an entry in time with current, upcoming, today or past, and current is the sheet BİM's own site is showing. starts_on and ends_on are ISO dates whose year is inferred, since BİM prints only day and month, and year_inferred says so.
weekday, is_current and days_from_today show the day of the week, whether the entry is the current one and how many days it lies from today. Around the entries, count counts the leaflets, current_leaflet_key names the current sheet, today is the date in Istanbul and types_present lists the families found.
Each entry of posters in bim-posters carries:
type: aktuel, indirim or kirtasiye, the tab the poster belongs tolabel: BİM's date label, shown next to starts_on and ends_oncover_image and page_images: the cover and the page images in page orderpage_count and download_url: how many pages the poster has and BİM's own download linkAround the entries, count counts the posters. When body.type is left at its default all, the posters of every tab arrive together, counts_by_type breaks the count down by tab and total_pages is the page total.
BİM's product page does not publish a brand, so bim-product-detail takes it from the leaflet the product sits on. With body.include_brand at its default of true, the operation reads that leaflet as well, which takes one extra request. That fills brand and returns the leaflet block, which carries the key, the dates and the status of the sheet.
Setting body.include_brand to false reads the product page alone. Then brand and leaflet are null, and brand_source reads not_requested, where it reads leaflet when the brand was read. The product page often carries more feature bullets than the leaflet tile, and images holds every image of the product.
bim-stores returns one list per call, and level says which one: cities, counties or stores. An entry of cities or counties carries an id and a name, and a name or BİM's numeric id from these entries works as body.city or body.county.
A store carries name, address, city and county. At the top of the result, city and county show the selected province and district with their ids.
count counts the entries returned, and reported_count is the store count BİM itself reports.
bim-brands returns one of two lists, and level says which. Without body.category it returns categories, BİM's eleven product categories, each with a category_id, a slug, a name and a url.
With a category, brands comes back instead, and its entries hold name and logo. Next to them, category repeats the selected category and description carries BİM's own text about it, and count counts the entries. Products and prices come from the leaflet operations instead.
BİM Birleşik Mağazalar A.Ş. is a Turkish discount supermarket chain founded in 1995, which began with 21 stores and is listed on Borsa Istanbul. BİM describes itself as the pioneer of the hard-discount model in Türkiye, selling basic food and consumer goods at low prices, with stores in Türkiye, Morocco and Egypt.
Hard-discount at BİM means a limited product range with many own-label brands, and little spent on promotion, advertising and store decoration, so that savings reach shoppers as lower prices. BİM brought out Turkey's first private-label product, Dost Süt, in 1997. All BİM stores are owned and operated by the company itself, and BİM does not franchise.
POST /api/v1/bim/<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).bim-leaflets currently lists answer in bim-leaflet-products, and any other key is rejected.bim-stores; the stores come from a call that also names a district.bim-stores returns no coordinates, telephone numbers or opening hours, because BİM does not publish them for its stores.bim-brands returns brand names and logos only, with no products and no prices.body.max_rotations takes 1 to 8 and defaults to 3, and a value outside that range is ignored so that the default applies.Call bim-leaflet-products with no inputs, or with body.type set to aktuel. The type defaults to aktuel, and the call returns the sheet on shelf today as rows in products. To read a different sheet, list the keys with bim-leaflets and send one as body.leaflet_key, in which case body.type is ignored.
Call bim-leaflets and keep the entries whose status is upcoming. BİM puts the next week's sheets up days early, so they appear in the list before the sheet starts. Then read an upcoming sheet by sending the leaflet_key of its entry to bim-leaflet-products, or by sending a future date as body.date.
Send an ISO date as body.date to bim-leaflet-products, with body.type set to the family you want. For indirim, BİM runs a long sheet and a weekly one at the same time, and the sheet that starts nearest to your date is returned. To read the other one, take its leaflet_key from bim-leaflets instead.
Read the rows of an indirim leaflet. price_before_discount holds the struck price and price the campaign price. discount_percent is BİM's own printed figure, which truncates, while discount_percent_calculated is the exact arithmetic on the two prices. On every aktuel leaflet BİM prints no struck price, so price_before_discount and discount_percent_calculated are null there.
Call bim-posters, which returns the printed leaflet sheets as pictures instead of rows. body.type narrows the result to one tab. Read the page_images of the poster you want, and match it to its campaign by its dates. To get the same campaign as structured rows instead, find its key in bim-leaflets and send it to bim-leaflet-products.
Send body.url or body.slug to bim-product-detail. Take the value from a row of bim-leaflet-products, where url and slug hold it. Do not store the value for later: a product page lives only while its leaflet does, so a product whose leaflet has expired is rejected. product_url is accepted as an alternative name for body.url.
Call bim-stores and add one input per level. With no inputs it returns the 81 provinces. With body.city it returns that province's districts. With body.city and body.county it returns the stores of the district. For example, İstanbul with Kadıköy returns the stores of that district, and district is accepted as an alternative name for body.county.
Call bim-brands without inputs to get BİM's eleven product categories. The categories carry a slug and a category_id. Send a slug, such as sut-ve-sut-urunleri, or a numeric id from that same list as body.category in the next call. That call returns the brands of the category.