{
  "openapi": "3.0.1",
  "info": {
    "title": "Coppel Mexico Scraper: Prices, Deals & Credit",
    "description": "Scrape Coppel Mexico products and prices without a browser. Search by words, categories or URLs. Extract cash and list price, real discount, Coppel credit (quincenal) cost, seller, MXN+USD prices, a deals report, and a price-drop monitor. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "eWwqBXCVfCMiKuBEk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~coppel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-coppel-scraper",
        "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/kareninatech~coppel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-coppel-scraper",
        "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/kareninatech~coppel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-coppel-scraper",
        "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": {
          "search_terms": {
            "title": "Search words",
            "type": "array",
            "description": "Words you would type in the coppel.com search box, e.g. lego, pantalla 55, refrigerador, iphone. If Coppel sends a word to one of its categories (e.g. juguetes), the Actor follows it. Leave everything empty to search \"lego\".",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category URLs (https://www.coppel.com/ct/juguetes/juegos-construccion/cat000902), category ids (cat000902) or names (juguetes, celulares, linea blanca).",
            "items": {
              "type": "string"
            }
          },
          "start_urls": {
            "title": "Coppel URLs",
            "type": "array",
            "description": "Any coppel.com URL: search pages (/sd/...), category pages (/ct/...) with their filters, landing pages (/juguetes) or product pages (/pdp/...).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "max_items": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum products to save in total (shared between all lists).",
            "default": 100
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "name_asc",
              "discount_desc"
            ],
            "type": "string",
            "description": "Order of the lists on Coppel. \"Biggest discount first\" sorts the products this run saves.",
            "default": "relevance"
          },
          "min_price": {
            "title": "Min price (MXN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products with a cash price at or above this, in Mexican pesos."
          },
          "max_price": {
            "title": "Max price (MXN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products with a cash price at or below this, in Mexican pesos. Good for gift budgets."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Only these brands, e.g. LEGO, Samsung, Mattel. Not case sensitive.",
            "items": {
              "type": "string"
            }
          },
          "seller_type": {
            "title": "Seller",
            "enum": [
              "any",
              "coppel",
              "marketplace"
            ],
            "type": "string",
            "description": "Limit results to Coppel's own products or to marketplace sellers. Leave empty for both.",
            "default": "any"
          },
          "min_discount_pct": {
            "title": "Min discount %",
            "minimum": 0,
            "maximum": 95,
            "type": "integer",
            "description": "Only products discounted at least this much vs the crossed list price."
          },
          "deals_only": {
            "title": "Only discounted products",
            "type": "boolean",
            "description": "If true, skip products that have no discount.",
            "default": false
          },
          "exclude_international": {
            "title": "Skip international imports",
            "type": "boolean",
            "description": "Skip \"Venta Internacional\" products (shipped from abroad, longer delivery).",
            "default": false
          },
          "fetch_details": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open every product for the full image gallery, specs, model number, description, real category path and other sellers. One extra request per product (slower).",
            "default": false
          },
          "monitor_mode": {
            "title": "Monitor mode (only new products and price changes)",
            "type": "boolean",
            "description": "Remembers products between runs (in a named key-value store) and saves only new products, price drops and price increases. Schedule it daily for Buen Fin, Black Friday or Navidad.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use different names to keep separate monitors (e.g. toys, tvs). Default: default."
          },
          "emit_unchanged": {
            "title": "Also save unchanged products",
            "type": "boolean",
            "description": "In monitor mode, also save products whose price did not change.",
            "default": false
          },
          "emit_removed": {
            "title": "Also save removed products",
            "type": "boolean",
            "description": "In monitor mode, save products that disappeared from a list (only when the whole list was read).",
            "default": false
          },
          "usd_rate": {
            "title": "MXN per USD (optional)",
            "type": "string",
            "description": "Fixed exchange rate, e.g. 18.6. Empty = today's European Central Bank rate."
          },
          "max_concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages to fetch at the same time, for example 3. A lower number is gentler on the site.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default: no proxy (cheapest). If Coppel blocks, the Actor switches to Apify datacenter and then residential Mexico proxy by itself.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}