Documentation Mercado Libre

Check out all the necessary information about APIs Mercado Libre.
circulos azuis em degrade

Documentation

Last update 25/11/2026

Category predictor

Before publishing a product, you have to predict in which category you should publish products. It helps sellers and developers recognize the category domain and required attributes to be filled, improving the listing quality when uploading a product to Mercado Libre.

Resource Description Example
https://api.mercadolibre.com/sites Retrieves information about the sites where Mercado Libre runs. GET
https://api.mercadolibre.com/sites/$SITE_ID/listing_types Returns different exposure levels associated with all listing types in Mercado Libre. GET
https://api.mercadolibre.com/sites/$SITE_ID/categories Returns available categories in the site. GET
https://api.mercadolibre.com/categories/$CATEGORY_ID Returns information about a category. GET
https://api.mercadolibre.com/categories/$CATEGORY_ID/attributes Displays attributes and rules over them in order to describe the items that are stored in each category. GET
https://api.mercadolibre.com/sites/$SITE_ID/listing_types/$LISTING_TYPE_ID Retrieves the configuration for a specific listing type. GET
https://api.mercadolibre.com/domains/$DOMAIN_ID/technical_specs Returns detailed technical information of the domain. GET

Get the category prediction

Make a GET request with a product title to predict one product at a time and identify suggested categories and attributes. English is recommended.

Note:
This request has a limit 400 request per minute.

Parameters

Parameter Type Required Description
q String Yes A descriptive product title. English is recommended. Include the product type and relevant details such as brand, model or specifications. See A good title.
picture_id String No ID of the product’s main image. Include it alongside the title to improve category prediction. If no image is available, omit this parameter; do not send it empty. See Pictures.

Important: Include the picture_id of the product’s main image. Providing the image alongside the title can significantly improve category prediction.

Input validation

  • The same title rules apply with or without an image. A title without Han characters must contain at least two segments separated by Unicode whitespace. A single segment containing a Han character can continue unless it matches the domain identifier pattern.
  • A single segment with a domain identifier format, such as BODY_SKIN or body_skin, is rejected. Provide a descriptive title instead.
  • When included, picture_id must match ^\d+-[A-Z]{3}\d+_\d{6}$, for example 691405-CBT117449810381_092026. A valid format does not guarantee the image exists or is used by the predictor.

After access checks, validation checks a missing or exactly empty q, then an invalid or empty picture_id, then a domain-formatted title, and finally a title with insufficient segments. A whitespace-only title reaches title validation.


Request:

curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET 'https://api.mercadolibre.com/marketplace/domain_discovery/search?q=$Q'

Example with a title and image:

curl -L -X GET 'https://api.mercadolibre.com/marketplace/domain_discovery/search?q=Tenis%20Nike&picture_id=795376-CBT120717190447_112026' \
-H 'Authorization: Bearer $ACCESS_TOKEN'

Category ranking: The response lists suggested categories in order of relevance. The first category is the best match according to the predictor. When there are no suggestions, the response may be an empty list ([]).


Response: HTTP 200

[
  {
    "domain_id": "CBT-SNEAKERS",
    "domain_name": "Sneakers",
    "category_id": "CBT454734",
    "category_name": "Sneakers",
    "attributes": [
      {
        "id": "BRAND",
        "name": "Brand",
        "value_id": "14671",
        "value_name": "Nike"
      },
      {
        "id": "MODEL",
        "name": "Model",
        "value_id": "45091454",
        "value_name": "Big Nike Low"
      },
      {
        "id": "GENDER",
        "name": "Gender",
        "value_id": "339666",
        "value_name": "Man"
      },
      {
        "id": "WIDTH_TYPE",
        "name": "Width type",
        "value_id": "15665144",
        "value_name": "Standard"
      }
    ]
  },
  {
    "domain_id": "CBT-SNEAKERS",
    "domain_name": "Sneakers",
    "category_id": "CBT109027",
    "category_name": "Sports Shoes",
    "attributes": [
      {
        "id": "BRAND",
        "name": "Brand",
        "value_id": "14671",
        "value_name": "Nike"
      },
      {
        "id": "MODEL",
        "name": "Model",
        "value_id": "45091454",
        "value_name": "Big Nike Low"
      },
      {
        "id": "GENDER",
        "name": "Gender",
        "value_id": "339666",
        "value_name": "Man"
      },
      {
        "id": "WIDTH_TYPE",
        "name": "Width type",
        "value_id": "15665144",
        "value_name": "Standard"
      }
    ]
  },
  {
    "domain_id": "CBT-TENNIS_AND_PADDLE_NETS",
    "domain_name": "Tennis and paddle nets",
    "category_id": "CBT18404",
    "category_name": "Redes de tenis",
    "attributes": []
  }
]

Response fields

domain_id: ID of the predicted domain.
domain_name: name of the predicted domain.
category_id: ID of the predicted category.
category_name: name of the predicted category.
attributes: list of attributes for the predicted category.


Categories of Global Selling

Request:

curl -H 'Authorization: Bearer $ACCESS_TOKEN' -X GET https://api.mercadolibre.com/sites/CBT/categories

Response:

[
  {
    "id": "CBT1071",
    "name": "Animals and Pets"
  },
  {
    "id": "CBT1367",
    "name": "Antiques and Collectibles"
  },
  {
    "id": "CBT5726",
    "name": "Appliances"
  },
  {
    "id": "CBT1368",
    "name": "Art, Craft and School Supplies"
  },
  {
    "id": "CBT1384",
    "name": "Babies"
  },
  {
    "id": "CBT1246",
    "name": "Beauty and Personal Care"
  },
  {
    "id": "CBT3025",
    "name": "Books, Magazines and Comics"
  },
  {
    "id": "CBT1039",
    "name": "Cameras and Accessories"
  },
  {
    "id": "CBT1743",
    "name": "Cars, Motorcycles and Others"
  },
  {
    "id": "CBT1051",
    "name": "Cell Phones and Phones"
  },
  {
    "id": "CBT1430",
    "name": "Clothing and Accessories"
  },
  {
    "id": "CBT1648",
    "name": "Computers"
  },
  {
    "id": "CBT1144",
    "name": "Consoles and Video Games"
  },
  {
    "id": "CBT1500",
    "name": "Construction"
  },
  {
    "id": "CBT1000",
    "name": "Electronics, Audio and Video"
  },
  {
    "id": "CBT1403",
    "name": "Food and Drinks"
  },
  {
    "id": "CBT1132",
    "name": "Games and Toys"
  },
  {
    "id": "CBT409431",
    "name": "Health and Health Supplies"
  },
  {
    "id": "CBT1574",
    "name": "Home, Furniture and Garden"
  },
  {
    "id": "CBT1499",
    "name": "Industries and Offices"
  },
  {
    "id": "CBT3937",
    "name": "Jewels and Watches"
  },
  {
    "id": "CBT1168",
    "name": "Music, Movies and Series"
  },
  {
    "id": "CBT1182",
    "name": "Musical Instruments"
  },
  {
    "id": "CBT1459",
    "name": "Real Estate"
  },
  {
    "id": "CBT1540",
    "name": "Services"
  },
  {
    "id": "CBT9304",
    "name": "Souvenirs, Favours and Parties"
  },
  {
    "id": "CBT1276",
    "name": "Sports and Fitness"
  },
  {
    "id": "CBT2547",
    "name": "Tickets"
  },
  {
    "id": "CBT407134",
    "name": "Tools"
  },
  {
    "id": "CBT5725",
    "name": "Vehicle Accessories"
  },
  {
    "id": "CBT1953",
    "name": "Other categories"
  }
]

For a second level categories, or information related to specific categories, you have to use the Categories resource, sending the category Id as a URL parameter. The next example shows the "Beauty and Personal Care" category:

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/categories/CBT1246

Response:

{
  "id": "CBT1246",
  "name": "Beauty and Personal Care",
  "picture": "http://resources.mlstatic.com/category/images/d1c445e9-f3bb-49e8-8cd3-3cfa81e57cf9.png",
  "permalink": null,
  "total_items_in_this_category": 0,
  "path_from_root": [
    {
      "id": "CBT1246",
      "name": "Beauty and Personal Care"
    }
  ],
  "children_categories": [
    {
      "id": "CBT417575",
      "name": "Beard & Mustache Care",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT417770",
      "name": "Beauty Treatments",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT29884",
      "name": "Foot, Hand & Nail Care",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT455174",
      "name": "Hair & Styling Appliances",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT1263",
      "name": "Hair Care",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT43673",
      "name": "Hair Removal",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT431642",
      "name": "Hair Salon Listings",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT1248",
      "name": "Makeup",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT1275",
      "name": "Other",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT454712",
      "name": "Perfumes & Fragrances",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT393366",
      "name": "Personal Care",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT431646",
      "name": "Pharmacy",
      "total_items_in_this_category": 0
    },
    {
      "id": "CBT1253",
      "name": "Skin Care",
      "total_items_in_this_category": 0
    }
  ],
  "attribute_types": "attributes",
  "settings": {
    "adult_content": false,
    "buying_allowed": true,
    "buying_modes": [
      "auction",
      "buy_it_now"
    ],
    "catalog_domain": "CBT-BEAUTY_AND_PERSONAL_CARE_SUPPLIES",
    "coverage_areas": "not_allowed",
    "currencies": [
      "USD"
    ],
    "fragile": false,
    "immediate_payment": "required",
    "item_conditions": [
      "new"
    ],
    "items_reviews_allowed": false,
    "listing_allowed": false,
    "max_description_length": 50000,
    "max_pictures_per_item": 12,
    "max_pictures_per_item_var": 10,
    "max_sub_title_length": 70,
    "max_title_length": 60,
    "max_variations_allowed": 100,
    "maximum_price": null,
    "maximum_price_currency": "USD",
    "minimum_price": 1,
    "minimum_price_currency": "USD",
    "mirror_category": null,
    "mirror_master_category": null,
    "mirror_slave_categories": [
    ],
    "price": "required",
    "reservation_allowed": "not_allowed",
    "restrictions": [
    ],
    "rounded_address": false,
    "seller_contact": "not_allowed",
    "shipping_options": [
      "carrier",
      "custom"
    ],
    "shipping_profile": "optional",
    "show_contact_information": false,
    "simple_shipping": "optional",
    "stock": "required",
    "sub_vertical": "health_beauty",
    "subscribable": false,
    "tags": [
    ],
    "vertical": "consumer_goods",
    "vip_subdomain": "articulo",
    "buyer_protection_programs": null,
    "status": "enabled"
  },
  "channels_settings": [
    {
      "channel": "mp-merchants",
      "settings": {
        "buying_modes": [
          "buy_it_now"
        ],
        "immediate_payment": "required",
        "minimum_price": 1,
        "status": "enabled"
      }
    }
  ],
  "meta_categ_id": null,
  "attributable": false,
  "date_created": "2018-04-25T08:12:56.000Z"
}

As you can see, you get the "path_from_root" and children_categories attributes. Use these attributes to browse through the category tree and find the specific category for your item.


Category detail

Make a request to a specific category will allow you to know the information and specific description of it. Below you will find the description of some of these attributes.

Request:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/categories/$CATEGORY_ID

Example:

curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/categories/CBT11796

Response:

{
   "id":"CBT11796",
   "name":"Footwear",
   "picture":null,
   "permalink":null,
   "total_items_in_this_category":0,
   "path_from_root":[
      {
         "id":"CBT1430",
         "name":"Clothing and Accessories"
      },
      {
         "id":"CBT1455",
         "name":"Baby Clothes & Shoes"
      },
      {
         "id":"CBT11796",
         "name":"Footwear"
      }
   ],
   "children_categories":[

   ],
   "attribute_types":"variations",
   "settings":{
      "adult_content":false,
      "buying_allowed":true,
      "buying_modes":[
         "auction",
         "buy_it_now"
      ],
      "catalog_domain":"CBT-BABIES_FOOTWEAR",
      "coverage_areas":"not_allowed",
      "currencies":[
         "USD"
      ],
      "fragile":false,
      "immediate_payment":"required",
      "item_conditions":[
         "new"
      ],
      "items_reviews_allowed":false,
      "listing_allowed":true,
      "max_description_length":50000,
      "max_pictures_per_item":12,
      "max_pictures_per_item_var":10,
      "max_sub_title_length":70,
      "max_title_length":60,
      "maximum_price":null,
      "minimum_price":1,
      "mirror_category":null,
      "mirror_master_category":null,
      "mirror_slave_categories":[

      ],
      "price":"required",
      "reservation_allowed":"not_allowed",
      "restrictions":[

      ],
      "rounded_address":false,
      "seller_contact":"not_allowed",
      "shipping_modes":[
         "custom",
         "not_specified"
      ],
      "shipping_options":[
         "custom",
         "carrier"
      ],
      "shipping_profile":"optional",
      "show_contact_information":false,
      "simple_shipping":"optional",
      "stock":"required",
      "sub_vertical":"clothes",
      "subscribable":false,
      "tags":[

      ],
      "vertical":"apparel",
      "vip_subdomain":"articulo",
      "buyer_protection_programs":null,
      "status":"enabled"
   },
   "meta_categ_id":null,
   "attributable":false,
   "date_created":"2019-09-10T14:12:56.000Z"
}

Download categories

In case of not being able to use the category predictor, you can download the category tree.


HTTP response code references

Successful responses

Code Description
200 OK Request was successful. Returns the requested data.

Error responses

Code Error Description
400 Bad Request For category prediction, q is missing or empty, the title is invalid, or picture_id is empty or invalid.
403 Forbidden Unexpected error validating API access. Check that your access token is valid and not expired.
404 not_found Resource not found. The site ID or category ID does not exist.

Error response examples

400 Bad Request: Missing or empty q.

{
  "message": "Required String parameter 'q' is not present",
  "error": "bad_request",
  "status": 400,
  "cause": []
}

400 Bad Request: Insufficient title segments.

{
  "message": "Invalid query parameter 'q'. Provide a descriptive product title, including the product type and relevant details such as brand, model or specifications. See: https://global-selling.mercadolibre.com/devsite/introduction-globalselling#A-good-title",
  "error": "bad_request",
  "status": 400,
  "cause": [
    "title_too_short"
  ]
}

400 Bad Request: Title with domain identifier format.

{
  "message": "Invalid query parameter 'q'. The supplied value matches a domain identifier format. Provide a descriptive product title with the product type and relevant details. See: https://global-selling.mercadolibre.com/devsite/introduction-globalselling#A-good-title",
  "error": "bad_request",
  "status": 400,
  "cause": [
    "title_domain_format"
  ]
}

400 Bad Request: Empty or invalid picture_id.

{
  "message": "Invalid query parameter 'picture_id'. Provide a valid picture ID. See: https://global-selling.mercadolibre.com/devsite/en_us/pictures/pictures",
  "error": "bad_request",
  "status": 400,
  "cause": [
    "invalid_picture_id"
  ]
}

403 Forbidden - Invalid or expired access token:

{
  "message": "Unexpected error validating API access",
  "error": "Forbidden",
  "status": 403,
  "cause": "Forbidden",
  "cause_list": [
    {
      "msg": "Forbidden"
    }
  ]
}

404 Not Found: Invalid site ID for the site-specific resource shown below; this example is not the marketplace predictor endpoint.

{
  "message": "Resource /sites/INVALID_SITE/domain_discovery/search not found.",
  "error": "not_found",
  "status": 404,
  "cause": []
}

404 Not Found: Category not found when querying a category resource.

{
  "message": "Category not found: CBT999999999",
  "error": "not_found",
  "status": 404,
  "cause": []
}