最后更新
更新日志/categories/{category}/products5 credits per call类别商品
返回 A101 Kapıda 某个类别或子类别下的全部生鲜杂货商品,按网站自身顺序(按子类别)排列:名称、品牌、当前价格、货架价、折扣标签、购物篮优惠价、促销活动和门店库存。同时返回输入的解析方式、各子类别及其商品数量,以及 `total`(网站上的商品总数)。
Authorization: Bearer <key> on every request.Parameters
category id (C05), subcategory id (C0502), the slug from the category link (sut-urunleri-kahvaltilik, yogurt) or its Turkish name (Süt Ürünleri, Kahvaltılık)
page of 50 products, 1 being the first; when given, page, page_size and pages are set. Leave it out to get the whole category.
comma-separated product field names (e.g. id,name) to put first in each product, in that order; every product still carries all of its fields. An unknown name is an error.
Response fields
category
inpute.g."sut-urunleri-kahvaltilik"ide.g."C05"namee.g."Süt Ürünleri, Kahvaltılık"typee.g."category"subcategories
ide.g."C0502"namee.g."Süt"counte.g.26totale.g.229products
ide.g."12000244"namee.g."Birşah Tam Yağlı Süt 1 L"brande.g."BİRŞAH"pricee.g.64.5original_pricee.g.64.5currencye.g."TRY"discount_labeldiscount_ratepromo_pricecampaignsin_stocke.g.truestocke.g.27categorye.g."Süt Ürünleri, Kahvaltılık"subcategorye.g."Süt"subcategory_ide.g."C0502"imagee.g."https://cdn2.a101.com.tr/dbmk89vnr/CALL/Image/get/dNfRDxuKUY_256x256.png"urle.g."https://www.a101.com.tr/kapida/sut-urunleri-kahvaltilik/birsah-tam-yagli-sut-1-l_p-12000244"fetched_ate.g."2026-11-27T10:04:17.500Z"agee.g.0curl "https://api.maviapi.com/v1/sites/a101/categories/sut-urunleri-kahvaltilik/products" \-H "Authorization: Bearer $MAVI_KEY"
{
"category": {
"input": "sut-urunleri-kahvaltilik",
"id": "C05",
"name": "Süt Ürünleri, Kahvaltılık",
"type": "category"
},
"subcategories": [
{
"id": "C0502",
"name": "Süt",
"count": 26
}
],
"total": 229,
"products": [
{
"id": "12000244",
"name": "Birşah Tam Yağlı Süt 1 L",
"brand": "BİRŞAH",
"price": 64.5,
"original_price": 64.5,
"currency": "TRY",
"discount_label": null,
"discount_rate": null,
"promo_price": null,
"campaigns": [
null
],
"in_stock": true,
"stock": 27,
"category": "Süt Ürünleri, Kahvaltılık",
"subcategory": "Süt",
"subcategory_id": "C0502",
"image": "https://cdn2.a101.com.tr/dbmk89vnr/CALL/Image/get/dNfRDxuKUY_256x256.png",
"url": "https://www.a101.com.tr/kapida/sut-urunleri-kahvaltilik/birsah-tam-yagli-sut-1-l_p-12000244"
}
],
"fetched_at": "2026-11-27T10:04:17.500Z",
"age": 0
}Get all the data, no code
Collect every page of GET /categories/sut-urunleri-kahvaltilik/products into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use A101 API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of A101 API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=a101 -- npx -y '@maviapi/mcp'Import A101 API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/a101/openapi.json - Postman
https://api.maviapi.com/v1/apis/a101/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 A101 API 进行开发
选择一个端点开始
- 类别商品
GET /categories/{category}/products返回 A101 Kapıda 某个类别或子类别下的全部生鲜杂货商品,按网站自身顺序(按子类别)排列:名称、品牌、当前价格、货架价、折扣标签、购物篮优惠价、促销活动和门店库存。同时返回输入的解析方式、各子类别及其商品数量,以及 `total`(网站上的商品总数)。
GET /categories/{category}/products 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 category string / path 是 category id (C05), subcategory id (C0502), the slug from the category link (sut-urunleri-kahvaltilik, yogurt) or its Turkish name (Süt Ürünleri, Kahvaltılık) page string / query 否 page of 50 products, 1 being the first; when given, page, page_size and pages are set. Leave it out to get the whole category. fields string / query 否 comma-separated product field names (e.g. id,name) to put first in each product, in that order; every product still carries all of its fields. An unknown name is an error. 响应字段 字段 类型 说明 category object category.input string category.id string category.name string category.type string subcategories object[] subcategories[].id string subcategories[].name string subcategories[].count integer total integer products object[] products[].id string products[].name string products[].brand string products[].price number products[].original_price number products[].currency string products[].discount_label null products[].discount_rate null products[].promo_price null products[].campaigns string[] products[].in_stock boolean products[].stock integer products[].category string products[].subcategory string products[].subcategory_id string products[].image string products[].url string fetched_at string age integer - 类别
GET /categoriesA101 Kapıda 的全部生鲜杂货类别(水果蔬菜、乳制品、烘焙、饮品等),按网站菜单顺序排列。每个 id 或 slug 均可作为 /categories/{category}/products 中的 {category} 使用。
GET /categories 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 only categories whose name or slug contains this text, case and Turkish accents ignored (e.g. "süt") 响应字段 字段 类型 说明 categories object[] categories[].id string categories[].name string categories[].slug string categories[].url string categories[].image string total integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 商品
GET /products/{id}单个 A101 Kapıda 生鲜杂货商品:名称、品牌、当前门店价格、货架价、折扣标签、购物篮优惠价、促销活动、库存、类别、条形码、重量、销售单位、描述和图片。价格和库存取自网站为访客分配的默认门店(store_id)。
GET /products/{id} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / path 是 A101 product id, the number after _p- in a product link (e.g. 12003088) 响应字段 字段 类型 说明 id string name string brand string price number original_price number currency string discount_label string discount_rate number promo_price null campaigns string[] in_stock boolean stock integer category string category_id string subcategory string subcategory_id string barcode string net_weight_g integer unit string description string image string images string[] url string store_id string fetched_at string age integer
将 A101 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
类别GET /categories | id, name, slug, url, image |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
A101 API 常见问题
能获取什么数据、费用多少、如何调用。
A101 有官方 API 吗?
这个 A101 API 不是官方 API。它是 maviapi 针对 a101.com.tr 上的公开数据提供的独立托管 API,并非由 A101 开发、认可或支持。A101 是否提供自己的开发者 API,请向 A101 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。
A101 API 可以获取哪些数据?
A101 API 有 3 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/categories/{category}/products: 返回 A101 Kapıda 某个类别或子类别下的全部生鲜杂货商品,按网站自身顺序(按子类别)排列:名称、品牌、当前价格、货架价、折扣标签、购物篮优惠价、促销活动和门店库存。 - GET
/categories: A101 Kapıda 的全部生鲜杂货类别(水果蔬菜、乳制品、烘焙、饮品等),按网站菜单顺序排列。 - GET
/products/{id}: 单个 A101 Kapıda 生鲜杂货商品:名称、品牌、当前门店价格、货架价、折扣标签、购物篮优惠价、促销活动、库存、类别、条形码、重量、销售单位、描述和图片。
A101 API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 A101 API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /categories/{category}/products:
curl 'https://api.maviapi.com/v1/sites/a101/categories/sut-urunleri-kahvaltilik/products' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 A101 数据有哪些方式?
以 JSON 获取 A101 数据的每种方式适合不同的需求:
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 a101.com.tr 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 A101 API:3 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
a101.com.tr 改版后会怎样?
更新会破坏我的 A101 API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Trendyol API
以 JSON 格式提供 Trendyol 商品数据:按关键词或类别搜索和浏览商品,获取含价格和卖家信息的商品详情、带评分的用户评论、已回答的问题,以及任意列表的筛选条件。
- Amazon Türkiye API
在 Amazon Türkiye(amazon.com.tr)上搜索商品、浏览畅销榜,并获取商品详情(价格、库存状态、评分、规格)和用户评论。
- Hepsiburada API
来自 Hepsiburada(hepsiburada.com)的商品搜索列表:按搜索词返回商品名称、品牌、价格、评分和卖家(商家)。
- Booking.com API
按地点和入住日期搜索 Booking.com 的住宿,查看住宿详情、价格和住客评分。
- Selcoin API
来自 Selcoin(selcoin.io)的实时行情数据:加密货币与传统金融资产的现货价格、外汇、贵金属、美股、OHLC K 线,以及单个资产的详情。
- GSM Servix API
gsmservix.net 的 GSM 服务目录:手机网络解锁、IMEI 查询、FRP 和工具点数、工具租用,附价格、交付时间和下单要求。