Skip to content

Mercado Libre - Get User

This module allows querying user information, either the authenticated user (your account) or public information of other users such as buyers or sellers.

This module requires Mercado Libre (OAuth) credentials with the following fields:

FieldDescription
access_tokenValid OAuth access token
FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
user_idstringNoUser ID to query
get_mebooleanNoGet authenticated user
include_reputationbooleanNoInclude reputation data
include_addressbooleanNoInclude addresses (own only)
{
"success": true,
"user": {...},
"user_id": 123456789,
"nickname": "VENDEDOR_PRO",
"email": "vendedor@email.com",
"first_name": "Juan",
"last_name": "Perez",
"country_id": "AR",
"seller_reputation": {
"level_id": "5_green",
"power_seller_status": "platinum",
"transactions": {
"completed": 1500,
"canceled": 10
}
},
"message": "User VENDEDOR_PRO retrieved successfully"
}
{
"credentials_id": "meli_cuenta",
"get_me": true
}
{
"credentials_id": "meli_cuenta",
"user_id": "123456789"
}
{
"credentials_id": "meli_cuenta",
"get_me": true,
"include_reputation": true
}
{
"credentials_id": "meli_cuenta",
"get_me": true,
"include_address": true
}
{
"credentials_id": "meli_cuenta",
"get_me": true,
"include_reputation": true,
"include_address": true
}
FieldDescription
idUnique user ID
nicknamePublic username
emailEmail (own user only)
first_nameFirst name
last_nameLast name
country_idCountry (AR, MX, BR, etc.)
site_idSite (MLA, MLM, MLB, etc.)
seller_reputationSeller reputation
buyer_reputationBuyer reputation
statusAccount status
user_typeUser type
LevelColorDescription
1_redRedVery low reputation
2_orangeOrangeLow reputation
3_yellowYellowAverage reputation
4_light_greenLight greenGood reputation
5_greenGreenExcellent reputation
StatusDescription
goldGold Seller
platinumPlatinum Seller
nullNo qualification
[Order received] -> [MeliGetUser buyer_id] -> [Evaluate risk] -> [Decide action]
[Daily schedule] -> [MeliGetUser me + reputation] -> [Check changes] -> [Alert]
[Paid order] -> [MeliGetUser] -> [MeliGetUser address] -> [Generate invoice]
// Evaluate buyer risk
const comprador = ctx.data.user;
let riesgo = 'bajo';
let notas = [];
// Check reputation
const reputacion = comprador.buyer_reputation;
if (!reputacion) {
riesgo = 'medio';
notas.push('Sin historial de compras');
} else if (reputacion.canceled_transactions > 3) {
riesgo = 'alto';
notas.push(`${reputacion.canceled_transactions} compras canceladas`);
}
// Check account age
const fechaRegistro = new Date(comprador.registration_date);
const diasRegistro = (Date.now() - fechaRegistro) / (1000 * 60 * 60 * 24);
if (diasRegistro < 30) {
riesgo = riesgo === 'bajo' ? 'medio' : 'alto';
notas.push('Cuenta nueva (< 30 dias)');
}
ctx.data = {
buyer_id: comprador.id,
nickname: comprador.nickname,
nivel_riesgo: riesgo,
notas: notas,
aprobar_automatico: riesgo === 'bajo'
};
  • Email is only available for the authenticated user
  • Addresses are only available for the own user
  • Other users’ information is public and limited
  • Seller reputation includes sales metrics
  • Buyer reputation includes purchase metrics