{"id":19640147,"url":"https://github.com/gearplug/mercadolibre-python","last_synced_at":"2025-07-02T11:33:07.498Z","repository":{"id":57440865,"uuid":"102021936","full_name":"GearPlug/mercadolibre-python","owner":"GearPlug","description":"MercadoLibre wrapper written in python","archived":false,"fork":false,"pushed_at":"2023-03-28T13:57:16.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T12:58:15.649Z","etag":null,"topics":["api","api-wrapper","mercadolibre","mercadolibre-python","python","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GearPlug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-31T16:33:31.000Z","updated_at":"2024-01-30T18:16:51.000Z","dependencies_parsed_at":"2022-09-02T06:43:24.085Z","dependency_job_id":null,"html_url":"https://github.com/GearPlug/mercadolibre-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fmercadolibre-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fmercadolibre-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fmercadolibre-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fmercadolibre-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GearPlug","download_url":"https://codeload.github.com/GearPlug/mercadolibre-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251304789,"owners_count":21567938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","mercadolibre","mercadolibre-python","python","wrapper"],"created_at":"2024-11-11T14:04:48.886Z","updated_at":"2025-04-28T11:31:03.352Z","avatar_url":"https://github.com/GearPlug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mercadolibre-python\n\nmercadolibre is an API wrapper for MercadoLibre written in python\n\n## Installing\n```\npip install mercadolibre-python\n```\n\n## Usage\n```\nfrom mercadolibre.client import Client\n\nclient = Client('CLIENT_ID', 'CLIENT_SECRET', site='MCO')\n```\n\nGet authorization url\n```\nurl = client.authorization_url('REDIRECT_URL')\n```\n\nExchange the code for an access token\n```\ntoken = client.exchange_code('REDIRECT_URL', 'CODE')\n```\n\nSet the token\n```\nclient.set_token('TOKEN')\n```\n\nRefresh the token\n```\nnew_token = client.refresh_token()\n```\n\nGet account information\n```\nresponse = client.me()\n```\n\nGet account information for an user\n```\nresponse = client.get_user('USER_ID')\n```\n\nGet user address\n```\nresponse = client.get_user_address('USER_ID')\n```\n\nGet accepted payment methods for an user\n```\nresponse = client.get_user_accepted_payment_methods('USER_ID')\n```\n\nGet application information\n```\nresponse = client.get_application('APPLICATION_ID')\n```\n\nGet user brands\n```\nresponse = client.get_user_brands('USER_ID')\n```\n\nGet project information\n```\nresponse = client.get_project('PROJECT_ID')\n```\n\nGet sites\n```\nresponse = client.get_sites(')\n```\n\nGet listing types\n```\nresponse = client.get_listing_types('SITE_ID')\n```\n\nGet listing exposures\n```\nresponse = client.get_listing_exposures('SITE_ID')\n```\n\nGet categories\n```\nresponse = client.get_categories('SITE_ID')\n```\n\nGet category\n```\nresponse = client.get_category('CATEGORY_ID')\n```\n\nGet category attributes\n```\nresponse = client.get_category_attributes('CATEGORY_ID')\n```\n\nGet countries\n```\nresponse = client.get_countries()\n```\n\nGet country\n```\nresponse = client.get_country('COUNTRY_ID')\n```\n\nGet state\n```\nresponse = client.get_state('STATE_ID')\n```\n\nGet city\n```\nresponse = client.get_city('CITY_ID')\n```\n\nGet currencies\n```\nresponse = client.get_currencies()\n```\n\nGet currency\n```\nresponse = client.get_currency('CURRENCY_ID')\n```\n\nList item\n```\nitem = {'title': 'Test item - Moto G 4th Gen', 'condition': 'used', 'category_id': 'MCO174749', 'price': 10,\n        'currency_id': 'COP',\n        'available_quantity': 1, 'buying_mode': 'buy_it_now', 'listing_type_id': 'free', 'warranty': '24 months',\n        'video_id': 'zQF96f01duA',\n        'pictures': ['https://mxmoto.vteximg.com.br/arquivos/ids/156297-600-600/92849LYESAF5_1_1.png']}\n\nresponse = client.list_item(**item)\n```\n\n## Requirements\n- requests\n\n## Tests\n```\npython tests/test_client.py\n```\n\n## Contributing\nWe are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.\n#### You can report any bug you find or suggest new functionality with a new [issue](https://github.com/GearPlug/mercadolibre-python/issues).\n#### If you want to add yourself some functionality to the wrapper:\n1. Fork it ( https://github.com/GearPlug/mercadolibre-python )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Adds my new feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fmercadolibre-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgearplug%2Fmercadolibre-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fmercadolibre-python/lists"}