{
  "openapi": "3.0.1",
  "info": {
    "title": "Spain Trademark Monitor — New BOPI/OEPM Filings",
    "description": "Daily new trademark, trade-name and shop-sign applications, grants and refusals from the Spanish BOPI (OEPM) for one, several or all Nice classes. Holder data: companies only by default, optional pseudonymous key or individuals' names.",
    "version": "0.1",
    "x-build-id": "J0hFEDgxBV44pUtQj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~spain-trademark-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-spain-trademark-monitor",
        "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/rastriq~spain-trademark-monitor/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-spain-trademark-monitor",
        "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/rastriq~spain-trademark-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-spain-trademark-monitor",
        "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": {
          "dateFrom": {
            "title": "📅 From",
            "type": "string",
            "description": "First bulletin date (YYYY-MM-DD). Empty = dateTo."
          },
          "dateTo": {
            "title": "📅 To",
            "type": "string",
            "description": "Last bulletin date. Empty = the last published bulletin."
          },
          "niceClasses": {
            "title": "🏷️ Nice classes",
            "type": "array",
            "description": "Pick one or more Nice classes, or <b>All classes</b> for the whole bulletin. Marks covering several selected classes are returned once. Default: 43 (restaurants).",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32",
                "33",
                "34",
                "35",
                "36",
                "37",
                "38",
                "39",
                "40",
                "41",
                "42",
                "43",
                "44",
                "45"
              ],
              "enumTitles": [
                "All classes (whole bulletin)",
                "1 — Chemicals",
                "2 — Paints, varnishes, coatings",
                "3 — Cosmetics, cleaning products",
                "4 — Industrial oils, fuels, candles",
                "5 — Pharmaceuticals, medical supplies",
                "6 — Common metals, metal goods",
                "7 — Machines, machine tools, engines",
                "8 — Hand tools, cutlery",
                "9 — Software, electronics, scientific apparatus",
                "10 — Medical and dental apparatus",
                "11 — Lighting, heating, cooling, sanitary",
                "12 — Vehicles",
                "13 — Firearms, fireworks",
                "14 — Jewellery, watches",
                "15 — Musical instruments",
                "16 — Paper, printed matter, stationery",
                "17 — Rubber, plastics, insulation",
                "18 — Leather goods, bags, umbrellas",
                "19 — Non-metallic building materials",
                "20 — Furniture, mirrors, frames",
                "21 — Household and kitchen utensils",
                "22 — Ropes, tents, sacks, textile fibres",
                "23 — Yarns and threads",
                "24 — Textiles, bed and table linen",
                "25 — Clothing, footwear, headwear",
                "26 — Lace, buttons, haberdashery",
                "27 — Carpets, wall coverings",
                "28 — Games, toys, sporting goods",
                "29 — Meat, fish, dairy, preserved foods",
                "30 — Coffee, bread, pastry, sweets, spices",
                "31 — Fresh produce, plants, animal food",
                "32 — Beer, soft drinks, juices",
                "33 — Wine, spirits (except beer)",
                "34 — Tobacco, smokers' articles",
                "35 — Advertising, business management, retail",
                "36 — Insurance, finance, real estate",
                "37 — Construction, repair, installation",
                "38 — Telecommunications",
                "39 — Transport, travel, storage",
                "40 — Treatment of materials, custom manufacturing",
                "41 — Education, entertainment, sports",
                "42 — Science, technology, software development",
                "43 — Restaurants, cafés, bars, accommodation",
                "44 — Medical, beauty, agricultural services",
                "45 — Legal, security, personal services"
              ]
            },
            "default": [
              "43"
            ]
          },
          "modalities": {
            "title": "📑 Modalities",
            "type": "array",
            "description": "Empty = all three.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "Marca",
                "Nombre comercial",
                "Rótulo de establecimiento"
              ]
            }
          },
          "annotationTypes": {
            "title": "📰 Publication types",
            "type": "array",
            "description": "Keep only types containing these words, e.g. Solicitudes (new applications) or Concesiones. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "holderData": {
            "title": "👤 Holder data",
            "enum": [
              "companies_only",
              "hashed",
              "include_individuals"
            ],
            "type": "string",
            "description": "<b>Companies only</b>: name and CIF of legal entities; individuals are withheld. <b>Pseudonymous key</b>: adds <code>holderKey</code>, a stable hash per holder, so you can group filings by applicant without identifying people. <b>Include individuals</b>: also outputs the names of natural persons (never their NIF or address). These are <b>personal data under the GDPR</b>: you need a lawful basis to store and use them, must inform the people concerned and honour objections and deletion requests.",
            "default": "companies_only"
          },
          "requestIntervalSecs": {
            "title": "⏱️ Seconds between requests",
            "minimum": 1,
            "type": "number",
            "description": "Pacing to the OEPM.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "RESIDENTIAL, country ES. From a datacenter IP the OEPM answers 403.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "ES"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}