{
  "openapi": "3.0.1",
  "info": {
    "title": "Infoisinfo Business Directory Scraper",
    "description": "Scrape Infoisinfo, a leading Spain business directory. Search by category and city, or fetch business profile pages directly by URL. Get name, category, address, phone, website, coordinates, description and more -- no login required.",
    "version": "1.0",
    "x-build-id": "8kE8DaBZfAibhYEbp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~infoisinfo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-infoisinfo-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/crawlerbros~infoisinfo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-infoisinfo-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/crawlerbros~infoisinfo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-infoisinfo-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "category": {
            "title": "Category (mode=search)",
            "enum": [
              "custom",
              "restaurantes",
              "bares",
              "bar",
              "cafeteria",
              "cafe",
              "cervecerias",
              "hamburguesas",
              "tapas",
              "catering",
              "pizzerias",
              "pastelerias",
              "hoteles",
              "moteles",
              "agencias-de-viajes",
              "abogados",
              "notarios",
              "arquitectos",
              "psicologos",
              "fisioterapeutas",
              "dentistas",
              "clinicas-dentales",
              "farmacias",
              "hospitales",
              "clinicas",
              "veterinarios",
              "peluquerias",
              "centros-de-estetica",
              "gimnasios",
              "talleres",
              "autoescuelas",
              "electricistas",
              "fontaneros",
              "inmobiliarias",
              "supermercados",
              "panaderias",
              "carnicerias",
              "pescaderias",
              "fruterias",
              "zapaterias",
              "joyerias",
              "papelerias",
              "librerias",
              "ferreterias",
              "muebles",
              "decoracion",
              "informatica",
              "colegios",
              "academias",
              "guarderias",
              "bancos",
              "aseguradoras",
              "tintorerias"
            ],
            "type": "string",
            "description": "Business category to search. Pick one of the curated categories, or select \"Custom category\" and type any category slug in `customCategory` (any valid infoisinfo.es /busqueda/{slug} value works even if not listed here).",
            "default": "restaurantes"
          },
          "customCategory": {
            "title": "Custom category override (mode=search)",
            "type": "string",
            "description": "Free-text category name or infoisinfo.es slug (e.g. \"opticas\", \"clinicas veterinarias\"). Takes priority over `category` when set. Accented/spaced text is automatically slugified."
          },
          "city": {
            "title": "City (mode=search)",
            "enum": [
              "custom",
              "madrid",
              "barcelona",
              "valencia",
              "sevilla",
              "zaragoza",
              "malaga",
              "murcia",
              "palma-de-mallorca",
              "las-palmas-de-gran-canaria",
              "bilbao",
              "alicante",
              "cordoba",
              "valladolid",
              "vigo",
              "gijon",
              "granada",
              "a-coruna",
              "vitoria",
              "elche",
              "oviedo",
              "santa-cruz-de-tenerife",
              "badalona",
              "cartagena",
              "terrassa",
              "jerez-de-la-frontera",
              "sabadell",
              "santander",
              "pamplona",
              "almeria",
              "san-sebastian",
              "burgos",
              "albacete",
              "getafe",
              "salamanca",
              "logrono",
              "badajoz",
              "huelva",
              "marbella",
              "tarragona",
              "leon",
              "cadiz",
              "lleida",
              "mataro",
              "santiago-de-compostela",
              "torrejon-de-ardoz",
              "alcala-de-henares",
              "fuenlabrada",
              "leganes",
              "mostoles",
              "alcorcon",
              "reus",
              "telde",
              "torrevieja",
              "girona",
              "lugo",
              "caceres",
              "guadalajara",
              "toledo",
              "cuenca",
              "segovia",
              "avila",
              "soria",
              "teruel",
              "zamora",
              "palencia",
              "ourense",
              "pontevedra",
              "huesca",
              "ceuta",
              "melilla",
              "benidorm",
              "torremolinos",
              "fuengirola",
              "estepona",
              "dos-hermanas",
              "mijas",
              "sanlucar-de-barrameda",
              "algeciras",
              "granollers",
              "manresa",
              "mollet-del-valles",
              "rubi",
              "sant-cugat-del-valles",
              "sant-boi-de-llobregat",
              "viladecans",
              "castelldefels",
              "cornella-de-llobregat",
              "el-prat-de-llobregat",
              "l-hospitalet-de-llobregat",
              "santa-coloma-de-gramenet",
              "aviles",
              "merida",
              "talavera-de-la-reina",
              "ponferrada",
              "aranjuez",
              "alcobendas",
              "las-rozas-de-madrid",
              "pozuelo-de-alarcon",
              "majadahonda",
              "collado-villalba",
              "coslada",
              "parla",
              "valdemoro",
              "aranda-de-duero",
              "miranda-de-ebro",
              "irun",
              "eibar",
              "barakaldo",
              "getxo",
              "portugalete",
              "torrelavega",
              "linares",
              "jaen",
              "motril",
              "antequera",
              "ronda",
              "lorca",
              "cieza-murcia",
              "yecla",
              "gandia",
              "sagunto",
              "paterna",
              "torrent-girona",
              "figueres",
              "blanes",
              "lloret-de-mar",
              "sitges",
              "vilanova-i-la-geltru",
              "igualada",
              "vic",
              "calvia",
              "inca",
              "manacor",
              "eivissa",
              "ciutadella-de-menorca",
              "mao",
              "arrecife",
              "puerto-del-rosario",
              "san-bartolome-de-tirajana",
              "adeje",
              "arona",
              "la-orotava",
              "puerto-de-la-cruz",
              "san-cristobal-de-la-laguna",
              "ecija",
              "utrera",
              "alcala-de-guadaira"
            ],
            "type": "string",
            "description": "City to search within. Pick one of the 147 curated major Spanish cities/provincial capitals, or select \"Custom city\" and type any city name in `customCity` (any of the 300+ city subdomains infoisinfo.es supports works even if not listed here).",
            "default": "madrid"
          },
          "customCity": {
            "title": "Custom city override (mode=search)",
            "type": "string",
            "description": "Free-text Spanish city/town name (e.g. \"Alcalá de Henares\", \"San Sebastián de los Reyes\"). Takes priority over `city` when set. Accented/spaced text is automatically slugified to match infoisinfo.es city subdomains."
          },
          "urls": {
            "title": "Business profile URLs (mode=byUrl)",
            "type": "array",
            "description": "Full infoisinfo.es ficha (business profile) URLs, e.g. `https://madrid.infoisinfo.es/ficha/strawberry_fields_hamburguesas_y_musica/3547328`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cityFilter": {
            "title": "City name filter",
            "type": "string",
            "description": "Only keep results whose city field contains this text (case- and diacritics-insensitive). Useful with mode=byUrl or to double-check mode=search results."
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only keep results whose name, description, or category contain this text (case- and diacritics-insensitive)."
          },
          "minReviewCount": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop businesses with fewer than this many reviews. Most infoisinfo.es listings have 0 reviews, so leave empty to keep everything."
          },
          "fetchDetails": {
            "title": "Fetch full business profile page",
            "type": "boolean",
            "description": "For mode=search: visit each business profile (ficha) page to also collect category, website, postal code, coordinates, and description. Slower (1 extra request per business) but recommended -- most fields require it.",
            "default": true
          },
          "fetchPhone": {
            "title": "Reveal phone numbers",
            "type": "boolean",
            "description": "Call infoisinfo.es's phone-reveal endpoint to fetch the real, unmasked phone number for each business. Requires `fetchDetails`. Adds 1 extra request per business.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. Leave empty to use no proxy -- infoisinfo.es is publicly accessible without one. The actor automatically escalates to the free AUTO datacenter proxy group if it hits a 403/429."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}