{
  "openapi": "3.0.1",
  "info": {
    "title": "MercadoLibre Exodus Listing Enrichment",
    "description": "Private API-based MercadoLibre enrichment for listing descriptions, seller signals, and Mexican vehicle-compatibility-domain discovery.",
    "version": "0.2",
    "x-build-id": "GfiJHrDF9pP3O2WIG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~mercadolibre-exodus-enrichment-private/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-mercadolibre-exodus-enrichment-private",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~mercadolibre-exodus-enrichment-private/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-mercadolibre-exodus-enrichment-private",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~mercadolibre-exodus-enrichment-private/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-mercadolibre-exodus-enrichment-private",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Operation",
            "enum": [
              "compatibility_domain",
              "listing_enrichment",
              "vehicle_compatibility"
            ],
            "type": "string",
            "description": "Choose compatibility_domain for a no-secret Mexican domain health probe, listing_enrichment for full descriptions and seller signals, or vehicle_compatibility for authorized product-to-vehicle matches. The default health probe is not billed as a result. NOT a browser-scraping mode.",
            "default": "compatibility_domain"
          },
          "compatibilityQuery": {
            "title": "Compatibility-domain query",
            "type": "string",
            "description": "Spanish search phrase used with MercadoLibre Mexico domain discovery. Example: 'camioneta'. The Actor emits only the proven MLM-CARS_AND_VANS_FOR_COMPATIBILITIES domain when it matches. Defaults to camioneta. NOT an item search or a vehicle fitment lookup.",
            "default": "camioneta"
          },
          "startUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Direct public MercadoLibre or Mercado Livre listing URLs to enrich. Example: https://articulo.mercadolibre.com.mx/MLM-1234567890-example-_JM. The Actor extracts canonical item IDs and fetches their API records. Use this or searchQuery in listing_enrichment mode. NOT search or seller-profile URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Listing search query",
            "type": "string",
            "description": "Keyword query submitted to the authenticated MercadoLibre site-search endpoint. Example: 'filtro aire jetta'. Use only in listing_enrichment mode when no listing URLs are supplied. Results are capped by maxResults. NOT a compatibility-domain query."
          },
          "country": {
            "title": "Marketplace country",
            "enum": [
              "MX",
              "BR",
              "AR",
              "CL",
              "CO",
              "PE",
              "UY",
              "EC",
              "DO"
            ],
            "type": "string",
            "description": "Marketplace used for authenticated keyword search. Example: MX for Mexico. Listing URLs carry their own canonical item prefix; this setting only selects the search endpoint. Defaults to MX. NOT a proxy-country setting.",
            "default": "MX"
          },
          "maxResults": {
            "title": "Maximum enriched listings",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Hard cap on persisted listing or compatibility records. Example: 10 returns at most ten paid records. Defaults to 10 and caps at 150 so a daily job has a predictable budget. Each paid record is one billable event. NOT a page count.",
            "default": 10
          },
          "apiConcurrency": {
            "title": "API enrichment concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Maximum concurrent MercadoLibre API listing requests. Example: 4 runs four enrichment workers at once. Defaults to 4 and is limited to 6 to keep the owner token within a bounded request envelope. NOT browser or proxy concurrency.",
            "default": 4
          },
          "userProductIds": {
            "title": "MercadoLibre user product IDs",
            "type": "array",
            "description": "Optional MercadoLibre user-product IDs for authorized vehicle compatibility. Example: MLMU123456. Use this in vehicle_compatibility mode when Exodus already knows the product ID; listing URLs are resolved first otherwise. NOT seller IDs or vehicle IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxVehicleMatchesPerProduct": {
            "title": "Maximum vehicle matches per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on compatibility entries returned for each MercadoLibre user product. Example: 50 retains the first fifty upstream matches. Defaults to 50 and caps at 100 to keep response size predictable. NOT a billable-event multiplier.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}