Configuring Mercado Livre as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Mercado Livre option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need to create a Mercado Livre application and generate OAuth credentials to connect your seller account to Nekt. The following configurations are required:- Client ID: The application ID from your Mercado Livre OAuth app.
- Client Secret: The secret key from your Mercado Livre OAuth app.
- Refresh Token: A refresh token obtained through the Mercado Livre OAuth flow, from a seller account with enough permissions to access the data.
- Metrics Granularity: The time granularity for item-level metrics (visits, ad performance, etc.). Available options:
day- Daily metrics (most granular, but slower extraction)week- Weekly metricsmonth- Monthly metrics (default, fastest extraction)
- Start Date: The earliest date from which records will be synced.
The more granular the metrics setting, the longer the extraction will take, as more API calls are required.
How to create a Mercado Livre application and generate credentials
How to create a Mercado Livre application and generate credentials
Follow these steps to create an OAuth application in Mercado Livre and obtain the credentials needed for Nekt:
Create an application in the Mercado Livre Developer Center
- Go to Mercado Livre Developer Center (use the appropriate country link for your account)
- Log in with your Mercado Livre seller account
- Click Create new application
- Fill in the application details:
- Application name: e.g., “Nekt Data Integration”
- Short description: e.g., “Data extraction for analytics”
- Redirect URI:
https://developers.google.com/oauthplayground
- Under Scopes, select:
read— Read access to your account dataoffline_access— Required to generate a refresh token
- Click Create application
- Copy your App ID (this is your Client ID) and Secret Key (this is your Client Secret)
Open the Google OAuth Playground
Click the link below to open Google OAuth Playground pre-configured for Mercado Livre:Open Mercado Livre OAuth Playground →
Configure the OAuth Playground
In the OAuth Playground, click the gear icon (⚙️) on the right side to open “OAuth 2.0 configuration” and update these values:
- Replace
ML_CLIENT_IDwith your App ID (Client ID) - Replace
ML_CLIENT_SECRETwith your Secret Key (Client Secret) - Verify the endpoints:
- OAuth authorization endpoint:
https://auth.mercadolivre.com.br/authorization - OAuth token endpoint:
https://api.mercadolibre.com/oauth/token
- OAuth authorization endpoint:
If your account is from Argentina, use
https://auth.mercadolibre.com.ar/authorization. For Mexico, use https://auth.mercadolibre.com.mx/authorization. The token endpoint is always https://api.mercadolibre.com/oauth/token regardless of region.- Click Close
Authorize and get your Refresh Token
- In Step 1 of the playground, click Authorize APIs
- You’ll be redirected to Mercado Livre — log in and grant permissions
- After returning to the playground, click Exchange authorization code for tokens (Step 2)
- Your refresh token will appear in the response on the right side
Copy your credentials for Nekt
You now have everything needed to configure Mercado Livre in Nekt:
- Client ID: Your App ID from the Developer Center
- Client Secret: Your Secret Key from the Developer Center
- Refresh Token: The
refresh_tokenfrom the OAuth response (starts withTG-)
The refresh token will be automatically renewed by Nekt on each extraction. You don’t need to manually refresh it.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. Important: Advertising streams (Product Ads Campaigns, Product Ads Campaign Metrics, Brand Ads Campaigns, Brand Ads Campaign Metrics) are only available if your account has an Advertiser ID registered with Mercado Livre Advertising.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data - which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data - which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Below you’ll find all available data streams from Mercado Livre and their corresponding fields:Orders
Orders
Stream for all orders from your seller account, including payment details, items, and buyer/seller information.Key Fields:
id- Unique identifier for the orderstatus- Order statusstatus_detail- Detailed status informationdate_created- When the order was createddate_closed- When the order was closeddate_last_updated- Last update timestamp (replication key)last_updated- Last modification timestampexpiration_date- Order expiration date
total_amount- Total order amountpaid_amount- Amount paidshipping_cost- Shipping costcurrency_id- Currency code (e.g., BRL, ARS, MXN)coupon- Coupon informationamount- Coupon discount amountid- Coupon ID
taxes- Tax informationamount- Tax amountcurrency_id- Tax currencyid- Tax ID
payments- Array of payment detailsid- Payment IDstatus- Payment statusstatus_code- Payment status codestatus_detail- Payment status detailtotal_paid_amount- Total amount paidtransaction_amount- Transaction amounttransaction_amount_refunded- Refunded amountpayment_method_id- Payment method identifierpayment_type- Payment typeinstallments- Number of installmentsinstallment_amount- Amount per installmentdate_created- Payment creation datedate_approved- Payment approval datedate_last_modified- Last modification dateauthorization_code- Authorization codeoperation_type- Operation typetaxes_amount- Taxes on paymentshipping_cost- Shipping cost in paymentcoupon_id- Applied coupon IDcoupon_amount- Coupon discount amountoverpaid_amount- Overpaid amountcurrency_id- Currency IDsite_id- Site IDpayer_id- Payer IDorder_id- Associated order IDcard_id- Card ID (if applicable)issuer_id- Card issuer IDcollector- Collector information (id)available_actions- Available actions arrayactivation_uri- Activation URIdeferred_period- Deferred periodatm_transfer_reference- ATM transfer reference (transaction_id, company_id)transaction_order_id- Transaction order IDreason- Payment reason
order_items- Array of purchased itemsitem- Item detailsid- Item ID (MLB…)title- Item titlecategory_id- Category IDvariation_id- Variation IDseller_custom_field- Seller custom fieldseller_sku- Seller SKUglobal_price- Global pricenet_weight- Net weightvariation_attributes- Variation attributes arraywarranty- Warranty infocondition- Item condition
quantity- Quantity purchasedunit_price- Unit pricefull_unit_price- Full unit price (before discounts)currency_id- Currency IDsale_fee- Mercado Livre sale feelisting_type_id- Listing typemanufacturing_days- Manufacturing dayspicked_quantity- Picked quantityrequested_quantity- Requested quantity (measure, value)base_exchange_rate- Base exchange ratebase_currency_id- Base currency IDbundle- Bundle infoelement_id- Element ID
buyer- Buyer information (id, nickname)seller- Seller information (id, nickname)
shipping- Shipping information (id)fulfilled- Whether the order is fulfilledpack_id- Pack ID for grouped shipmentspickup_id- Pickup ID
tags- Array of order tagscomment- Order commentmanufacturing_ending_date- Manufacturing ending datefeedback- Feedback info (buyer, seller)order_request- Order request info (change, return)context- Context informationapplication- Applicationproduct_id- Product IDchannel- Channelsite- Siteflows- Flows array
Items
Items
Stream for all product listings from your seller account.Key Fields:
id- Unique item identifier (e.g., MLB12345678)title- Item titlepermalink- Direct link to the listingcondition- Item condition (new, used)status- Item status (active, paused, closed, etc.)site_id- Site identifierseller_id- Seller IDcategory_id- Category IDdomain_id- Domain IDcatalog_product_id- Catalog product ID (if linked to catalog)catalog_listing- Whether item is a catalog listinglisting_type_id- Listing type (gold_special, gold_pro, etc.)buying_mode- Buying mode (buy_it_now, auction)start_time- Listing start timestop_time- Listing end timeend_time- Listing end timeexpiration_time- Listing expiration timedate_created- Item creation datelast_updated- Last update timestamphealth- Item health scorefamily_name- Family namefamily_id- Family IDuser_product_id- User product IDparent_item_id- Parent item ID (for variations)seller_custom_field- Custom seller field
price- Current pricebase_price- Base priceoriginal_price- Original price (before discount)currency_id- Currency code
available_quantity- Available stock quantityinitial_quantity- Initial quantitysold_quantity- Total units soldinventory_id- Inventory ID
thumbnail- Thumbnail URLthumbnail_id- Thumbnail IDvideo_id- Video IDpictures- Array of item picturesid- Picture IDurl- Picture URLsecure_url- Secure picture URLsize- Picture sizemax_size- Max picture sizequality- Picture quality
official_store_id- Official store ID
shipping- Shipping configurationstore_pick_up- Store pickup availablelocal_pick_up- Local pickup availablefree_shipping- Free shipping enabledlogistic_type- Logistic type (fulfillment, xd_drop_off, etc.)mode- Shipping modetags- Shipping tagsmethods- Available shipping methodsdimensions- Package dimensions
international_delivery_mode- International delivery mode
seller_address- Seller’s addressaddress_line- Address linezip_code- ZIP codecity- City (id, name)state- State (id, name)country- Country (id, name)latitude- Latitudelongitude- Longitudesearch_location- Search location (neighborhood, city, state)
geolocation- Geolocation coordinates (latitude, longitude)
attributes- Array of item attributesid- Attribute IDname- Attribute namevalue_id- Value IDvalue_name- Value nameattribute_group_id- Attribute group IDattribute_group_name- Attribute group namevalue_struct- Structured value (number, unit)values- Values arraysource- Attribute sourcevalue_type- Value type
sale_terms- Array of sale termsid- Term IDname- Term namevalue_id- Value IDvalue_name- Value namevalue_type- Value typevalues- Values array (id, name)
variations- Array of product variationsid- Variation IDprice- Variation priceavailable_quantity- Available quantity for this variationsold_quantity- Sold quantity for this variationinventory_id- Inventory IDuser_product_id- User product IDcatalog_product_id- Catalog product IDseller_custom_field- Seller custom fieldpicture_ids- Picture IDs arrayattribute_combinations- Attribute combinations array (id, name, value_id, value_name, value_type, values)sale_terms- Sale terms for this variationitem_relations- Related items (id, variation_id, stock_relation)
accepts_mercadopago- Accepts MercadoPagosub_status- Sub-status arraytags- Item tags arraywarranty- Warranty informationdeal_ids- Active deal IDsautomatic_relist- Whether item is auto-relisteditem_relations- Related items array (id, variation_id, stock_relation)channels- Sales channels arraylisting_source- Listing sourcedescriptions- Item descriptionsnon_mercado_pago_payment_methods- Non-MercadoPago payment methodscoverage_areas- Coverage areaswarnings- Item warningsdifferential_pricing- Differential pricing info
Buyer Experience Per Item
Buyer Experience Per Item
Customer experience and reputation metrics for each item. This stream is a child of the Items stream.Key Fields:
item_id- The item identifier
status- Current status (id)freeze- Freeze information (text)title- Title information (text)
reputation- Overall reputationcolor- Reputation color indicatortext- Reputation textvalue- Reputation score
subtitles- Array of subtitle informationorder- Display ordertext- Subtitle textplaceholders- Placeholder values
actions- Available actions arrayorder- Action ordertext- Action text
metrics_details- Detailed metrics breakdownproblems- Array of problemsorder- Problem orderkey- Problem keycolor- Problem severity colorquantity- Quantity stringcancellations- Number of cancellationsclaims- Number of claimstag- Problem taglevel_two- Level two details (key, title)level_three- Level three details (key, title, remedy)
distribution- Rating distributionfrom- Period startto- Period endlevel_one- Level one breakdown arraykey- Keytitle- Title (order, text)color- Colorpercentage- Percentagequantities_level_two- Level two quantities
Visits Per Item
Visits Per Item
Visit statistics for each item over time. This stream is a child of the Items stream.Key Fields:
item_id- The item identifierdate_from- Period start date (replication key)date_to- Period end date
total_visits- Total number of visits in the period
visits_detail- Breakdown by sourcecompany- Source/company namequantity- Number of visits from this source
Quality Score Per Item
Quality Score Per Item
Quality score and performance metrics for each item. This stream is a child of the Items stream.Key Fields:
Quality score is only available for non-catalog items. Items linked to the Mercado Livre catalog will be skipped.
entity_type- Entity typeentity_id- Entity identifier (item ID)score- Overall quality scorelevel- Quality levellevel_wording- Quality level descriptioncalculated_at- Calculation timestamp (replication key)
buckets- Quality score buckets arraykey- Bucket keytype- Bucket typestatus- Bucket statusscore- Bucket scoretitle- Bucket titlecalculated_at- Calculation timestampvariables- Variables arraykey- Variable keystatus- Variable statusscore- Variable scorecalculated_at- Calculation timestamptitle- Variable titlerules- Rules arraykey- Rule keystatus- Rule statusprogress- Progress valuemode- Rule modecalculated_at- Calculation timestampwordings- Rule wordings (title, label, link)
Product Ads Campaigns
Product Ads Campaigns
Product Ads campaign configurations and settings. Only available for accounts with an Advertiser ID.Key Fields:
id- Campaign IDname- Campaign namestatus- Campaign status (active, paused, etc.)date_created- Creation timestamplast_updated- Last update timestamp
budget- Daily budget amountcurrency_id- Budget currencyacos_target- Target ACoS (Advertising Cost of Sale)acos_top_search_target- Target ACoS for top search positionsstrategy- Bidding strategy
channel- Campaign channel
Product Ads Campaign Metrics
Product Ads Campaign Metrics
Daily performance metrics for Product Ads campaigns. This stream is a child of Product Ads Campaigns.Key Fields:
campaign_id- Campaign identifierdate- Metrics date (replication key)
prints- Number of impressionsclicks- Number of clicksctr- Click-through ratecpc- Cost per clickcost- Total advertising cost
direct_units_quantity- Units sold from direct clicksindirect_units_quantity- Units sold from indirect attributionunits_quantity- Total units solddirect_amount- Revenue from direct conversionsindirect_amount- Revenue from indirect conversionstotal_amount- Total attributed revenuedirect_items_quantity- Items sold from direct clicksindirect_items_quantity- Items sold from indirect attributionadvertising_items_quantity- Total items from advertising
organic_units_quantity- Organic units soldorganic_units_amount- Organic revenueorganic_items_quantity- Organic items sold
acos- Advertising Cost of Sale (cost/revenue)cvr- Conversion rateroas- Return on Ad Spend
sov- Share of Voiceimpression_share- Impression sharetop_impression_share- Top position impression sharelost_impression_share_by_budget- Lost impressions due to budgetlost_impression_share_by_ad_rank- Lost impressions due to ad rank
acos_benchmark- ACoS benchmark for comparison
Brand Ads Campaigns
Brand Ads Campaigns
Brand Ads campaign configurations and settings. Only available for accounts with an Advertiser ID.Key Fields:
campaign_id- Campaign IDname- Campaign namestatus- Campaign statusmoderation_status- Content moderation statuscampaign_type- Campaign typestart_date- Campaign start dateend_date- Campaign end date
advertiser_id- Advertiser IDsite_id- Site IDeshop_id- E-shop IDofficial_store_id- Official store IDdestination_id- Destination ID
headline- Campaign headline
budget- Budget informationamount- Budget amountcurrency- Currency code
cpc- Cost per click bid
items- Array of campaign itemscampaign_id- Campaign IDstatus- Item statusitem_id- Item ID
keywords- Array of campaign keywordscampaign_id- Campaign IDtype- Keyword typeterm- Keyword termmatch_type- Match type (exact, phrase, broad)is_negative- Is negative keywordcpc- Keyword CPC bid
Brand Ads Campaign Metrics
Brand Ads Campaign Metrics
Daily performance metrics for Brand Ads campaigns. This stream is a child of Brand Ads Campaigns.Key Fields:
campaign_id- Campaign identifierdate- Metrics date (replication key)
prints- Number of impressionsclicks- Number of clicksctr- Click-through ratecost_per_clicks- Cost per click (CPC)consumed_budget- Budget consumed
cvr- Conversion rateacos- Advertising Cost of Saleroas- Return on Ad Spend
attribution_order_conversions- Number of orders attributed to the campaignattribution_order_amount- Revenue attributed to the campaignleads- Number of leads generated
Data Model
The following diagram illustrates the relationships between the core data streams in Mercado Livre. The arrows indicate the join keys that link the different entities.Use Cases for Data Analysis
This guide outlines valuable business intelligence use cases when consolidating Mercado Livre data, along with ready-to-use SQL queries that you can run on Explorer.1. Product Ads Campaign Performance Overview
Analyze the performance of your Product Ads campaigns to understand ROI and optimize budget allocation. Business Value:- Identify top-performing campaigns by ROAS and ACoS
- Understand which campaigns drive the most conversions
- Optimize budget distribution across campaigns
SQL query
SQL query
- AWS
- GCP
Sample Result
Sample Result
| campaign_name | campaign_status | strategy | total_impressions | total_clicks | total_cost | total_revenue | total_units_sold | ctr_percent | cvr_percent | acos_percent | target_acos_percent | roas |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Top Products Campaign | active | automatic | 1,245,890 | 42,156 | 8,542.30 | 42,800.00 | 856 | 3.38 | 2.03 | 19.96 | 20.00 | 5.01 |
| Electronics Promo | active | manual | 892,340 | 31,245 | 4,998.50 | 21,150.00 | 423 | 3.50 | 1.35 | 23.64 | 25.00 | 4.23 |
| Seasonal Sale | paused | automatic | 567,230 | 18,456 | 3,691.20 | 12,670.00 | 289 | 3.25 | 1.57 | 29.13 | 30.00 | 3.43 |
2. Item Quality Score Analysis
Monitor the quality scores of your listings to improve visibility and sales performance. Business Value:- Identify items with low quality scores that need improvement
- Track quality metrics over time
- Prioritize optimization efforts
SQL query
SQL query
- AWS
- GCP
Sample Result
Sample Result
| item_id | item_title | price | available_quantity | quality_score | quality_level | quality_description | last_calculated |
|---|---|---|---|---|---|---|---|
| MLB12345678 | Smartphone Samsung Galaxy | 1299.00 | 45 | 72 | medium | Bom | 2024-11-27T10:30:00Z |
| MLB23456789 | Notebook Dell Inspiron | 3499.00 | 12 | 85 | high | Muito bom | 2024-11-27T10:25:00Z |
| MLB34567890 | Fone de Ouvido Bluetooth | 89.90 | 230 | 58 | low | Regular | 2024-11-27T10:20:00Z |
3. Sales and Revenue Analysis
Analyze order data to understand sales performance and payment methods. Business Value:- Track revenue trends over time
- Understand payment method preferences
- Identify top-selling items
SQL query
SQL query
- AWS
- GCP
Sample Result
Sample Result
| order_date | total_orders | total_units_sold | total_revenue | total_fees | avg_order_value |
|---|---|---|---|---|---|
| 2024-11-27 | 156 | 234 | 45,678.90 | 5,481.47 | 292.81 |
| 2024-11-26 | 142 | 198 | 38,456.20 | 4,614.74 | 270.82 |
| 2024-11-25 | 128 | 176 | 32,890.50 | 3,946.86 | 256.96 |
Implementation Notes
Data Quality Considerations
- Advertising Streams: Product Ads and Brand Ads streams are only available if your Mercado Livre account has an advertiser ID. Accounts without advertising access will only have access to Orders, Items, and item-level metrics.
- Quality Score Availability: Quality scores are only available for non-catalog items. Items linked to the Mercado Livre product catalog will be skipped during extraction.
- Metrics Time Window: Campaign metrics are available for the last 90 days only.
API Limits & Performance
- Metrics Granularity Impact: The more granular the metrics setting (day vs. month), the longer extractions will take due to increased API calls.
- Visit Data Limit: Visit statistics are limited to the last 2 years of data.
- Pagination: Large seller accounts with many items may experience longer extraction times.
Regional Considerations
- Currency: All financial values are in the local currency of the site (BRL for MLB, ARS for MLA, MXN for MLM).
- Timestamps: All timestamps are in UTC.
Skills for agents
Download Mercado Livre skills file
Mercado Livre connector documentation as plain markdown, for use in AI agent contexts.