How to export data to Mercadolivre? [PHP/JSON]

Asked

Viewed 2,355 times

1

I downloaded the SDK from Mercadolivre: https://github.com/mercadolibre/php-sdk

I just honestly couldn’t find a way to export data there. Both in Gib and in ML itself has tutorials how to read products, categories and everything else, but nothing related to export.

For example, how can I send the name of a category in my bank to see if it exists in ML and get their ID? Does anyone have an idea of where to start?

Tutorial ML: http://pmsapp.mercadolivre.com.br/jm/ml.faqs.framework.main.FaqsController?pageId=FAQ&faqId=11063&categId=promo&type=FAQ

Archive of API Car Categories: https://api.mercadolibre.com/categories/MLB1744

1 answer

1


After the authentication is done you need to know which is the endpoint of the API you’ll need to use.

In your case it’s endpoint search (https://api.mercadolibre.com/sites/MLA/search)

So if you want to do a product search by category just do:

https://api.mercadolibre.com/sites/MLA/search?category=MLB1744

(Source: http://developers.mercadolibre.com/search-by-category/)

And check the API response, which will be a listing with 0 or more items, or else an error.

Anything you can do to check documentation.

  • Pasta, worse than that I rolled... I don’t know the category code in the ML. Let’s say I have a car "Focus", with the ?q=Focus it returns a specific product... or I traveled total here :P

  • 1

    Take a look at this documentation (https://api.mercadolibre.com/sites/MLA/search/#options) And look at the result of what you said: (https://api.mercadolibre.com/sites/MLA/search/? q=Focus)

  • Wow, thanks! In the end, I really traveled, I didn’t take care of the tag filters

Browser other questions tagged

You are not signed in. Login or sign up in order to post.