Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Official Stores
ID de marcas
This resource retrieves brands associated to an user_id. There can be more than one per user. The official_store_id attribute identifies a store.
Exemplo:
curl -X GET https://api.mercadolibre.com/users/$USER_ID/brands
Response:
{
"cust_id": 12345678,
"tags": [
"large_seller",
"user_info_verified",
"brand"
],
"brands": [
{
"tags": [
"girls",
"female"
],
"official_store_id": 16,
"categories_ids": [
"MLA1430"
],
"fantasy_name": "47 Street",
"site_id": "MLA",
"status": "active",
"name": "47 Street",
"pictures": [
{
"id": 104,
"name": "big_logo",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/47street/149254178-logo-g2.jpg",
"size": "174x164"
},
{},
{},
{},
{},
{}
],
"relevance_position": 50
},
{},
{},
{},
{}
],
"site_id": "MLA",
"user_type": "brand"
}
Obtain all information about a specific brand
To get information about a specific brand, you can make the call to the brand_id you want to know about like in the example that follows:
Example:
curl -X GET https://api.mercadolibre.com/users/58715193/brands/133
Response:
{
"tags": [
"home",
"standout"
],
"official_store_id": 133,
"categories_ids": [
"MLA1403"
],
"fantasy_name": "Bodega Lanzarini",
"users": [
{
"cust_id": 58715193,
"tags": [
"eshop",
"large_seller",
"user_info_verified",
"brand"
],
"site_id": "MLA",
"user_type": "brand"
}
],
"site_id": "MLA",
"status": "active",
"name": "Bodega Lanzarini",
"date_created": "2014-08-04T04:00:00.000Z",
"pictures": [
{
"id": 632,
"name": "big_logo",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/bodegalanzarini/58715193-logo-g.jpg",
"size": "174x164"
},
{
"id": 2474,
"name": "facebook_logo",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/mla-fb/58715193-logo-fb.jpg",
"size": "1600x750"
},
{
"id": 9428,
"name": "home_app",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/bkg_apps/58715193-bkg.jpg",
"size": "270x155"
},
{
"id": 634,
"name": "logo",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/bodegalanzarini/58715193-logo-home.jpg",
"size": "160x80"
},
{
"id": 633,
"name": "logo_landing",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/bodegalanzarini/58715193-logo-home.jpg",
"size": "160x80"
},
{
"id": 631,
"name": "background",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/bodegalanzarini/58715193-bkg.jpg",
"size": "1600x750"
},
{
"id": 635,
"name": "small_logo",
"secure_url": null,
"url": "http://static.mlstatic.com/org-img/apparel/images/bodegalanzarini/58715193-logo-ch2.jpg",
"size": "96x70"
}
],
"boost": {
"is_active": false,
"last_update": "2015-08-17T20:55:12.000Z"
},
"relevance_position": 69
}
Common errors in the API response while listing on multi-brand Official Stores
If you don’t send the official_store_id of the item for a multi-brand Official Store, you’ll get as response the possible IDs you could send with your user:
"message": "Validation error",
"error": "validation_error",
"status": 400,
"cause": [{
"code": "item.official_store_id.invalid",
"message": "Users type brand have to provide one of this [60, 274, 257] official store id"
If you send an invalid official_store_id for a multibrand Official Store you’ll get:
{
"message": "body.invalid_official_store_id",
"error": "The seller 148829068 is not allowed to use official_store_id 315 on site MLA.",
"status": 403,
"cause": []
}
Great! You already know the brand_id associated to your user to send every time you want to list an item.