{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre New Listings Monitor",
    "description": "Get only NEW Mercado Libre car and apartment listings, minutes after they are posted. Schedule it every 10-60 min: each run returns just what is new since the last run, with Telegram, Slack, Discord or webhook alerts. Argentina, Mexico, Uruguay, Chile.",
    "version": "0.1",
    "x-build-id": "I0rN0JqMPgrLm7Kh9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/juanga~meli-new-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-juanga-meli-new-listings",
        "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/juanga~meli-new-listings/runs": {
      "post": {
        "operationId": "runs-sync-juanga-meli-new-listings",
        "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/juanga~meli-new-listings/run-sync": {
      "post": {
        "operationId": "run-sync-juanga-meli-new-listings",
        "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",
        "required": [
          "searchUrls"
        ],
        "properties": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Mercado Libre vehicles or real-estate search URLs, with any filters you want (brand, model, city, price, owner-only...). Open the search on Mercado Libre, set filters, copy the URL. Supported: autos./motos./vehiculos. and inmuebles. sites (tested on Argentina, Mexico and Uruguay). General product search (listado.) and Brazil are not supported yet.",
            "items": {
              "type": "string"
            }
          },
          "onlyPublishedToday": {
            "title": "Only listings published today",
            "type": "boolean",
            "description": "Adds Mercado Libre's 'Publicados hoy' filter so each run scans only today's listings. Keep this on for schedules: it is faster, cheaper and catches every new listing. Turn off to also catch older listings you have not seen yet (slower; limited to the pages below).",
            "default": true
          },
          "firstRun": {
            "title": "First run",
            "enum": [
              "emit",
              "baseline"
            ],
            "type": "string",
            "description": "What the very first run of a search returns. 'Return current listings' shows today's listings right away. 'Baseline' records them silently, so only listings published after you start are returned.",
            "default": "emit"
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 42,
            "type": "integer",
            "description": "Pages of 48 results scanned per search URL each run. Results are ordered by relevance, not date, so a new listing can be on any page: keep the maximum (42, Mercado Libre's limit) unless you want to cap cost on very broad searches.",
            "default": 42
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that remembers which listings were already returned. Use a different name to start a separate history.",
            "default": "meli-new-listings-state"
          },
          "seenRetentionDays": {
            "title": "Remember listings for (days)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How long a returned listing is remembered so it is not returned again.",
            "default": 7
          },
          "failOnAnyError": {
            "title": "Fail the run if any search fails",
            "type": "boolean",
            "description": "Mark the run as failed when any search is blocked, invalid or cannot be loaded, so Apify monitoring and run-failure emails alert you. By default a run only fails when every search fails.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Connection tried first. 'No proxy' is cheapest and works for most vehicle searches.",
            "default": {
              "useApifyProxy": false
            }
          },
          "fallbackProxyConfiguration": {
            "title": "Fallback proxy (when blocked)",
            "type": "object",
            "description": "Used only when Mercado Libre blocks the first connection, which from Apify servers is the case for real-estate searches. Residential IPs from the listing's country are picked automatically. Each page loaded through it is billed as a 'proxy page' event. Set to 'No proxy' to disable; blocked searches are then reported and not charged.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional. Send new listings to Telegram. Create a bot with @BotFather."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Chat, group or channel ID the bot posts to."
          },
          "whatsappPhone": {
            "title": "WhatsApp: your number",
            "type": "string",
            "description": "Optional. Get alerts on WhatsApp via CallMeBot (free). Number with country code, e.g. +5491122334455. Activate once by sending \"I allow callmebot to send me messages\" to +34 644 51 95 23 on WhatsApp, then paste the API key below."
          },
          "whatsappApiKey": {
            "title": "WhatsApp: CallMeBot API key",
            "type": "string",
            "description": "The key CallMeBot sends you on WhatsApp."
          },
          "emailTo": {
            "title": "Email alerts to (your Apify account email)",
            "type": "string",
            "description": "Optional. Use your Apify account email: Apify's email service only sends to the account owner. A fraction of a cent per email."
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook URL",
            "type": "string",
            "description": "Optional."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional."
          },
          "webhookUrl": {
            "title": "Custom webhook URL",
            "type": "string",
            "description": "Optional. Receives a JSON POST { search, count, listings } per search with new listings."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}