{
  "openapi": "3.0.1",
  "info": {
    "title": "WIPO Trademarks Scraper [$8/1K💰] | Madrid Monitor | Patents",
    "description": "Extract international trademark registrations and PCT patents from WIPO — mark name, status, holder, Nice classes, goods and services, IRN and gazette data — as structured JSON. Built for trademark watch, brand clearance and IP due diligence. From $1.50 per 1,000 patents, $8 per 1,000 trademarks.",
    "version": "0.0",
    "x-build-id": "ijdQu9baW4GawnBSH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~wipo-int-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-wipo-int-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/ahmed_jasarevic~wipo-int-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-wipo-int-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/ahmed_jasarevic~wipo-int-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-wipo-int-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": {
          "query": {
            "title": "Search query (brand name, IRN or record URL)",
            "type": "array",
            "description": "Free-text search on the trademark NAME. Examples: 'apple', 'louis vuitton', 'tesla'. Each entry can also be an international registration number (IRN, e.g. '652471'), a Madrid record ID ('WO50000652471') or a full Madrid Monitor record URL for a direct lookup. Multiple entries are searched independently.",
            "items": {
              "type": "string"
            }
          },
          "applicantName": {
            "title": "Applicant / owner name (filter)",
            "type": "array",
            "description": "Filter the fetched trademark records by APPLICANT / holder name — case-insensitive substring match, so 'APPLE' also catches 'APPLE INC.'. Multiple names are OR-ed. Madrid Monitor's public lookup returns top name matches only, so combine this filter with a broad brand 'query'.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "statuses": {
            "title": "Trademark statuses (filter)",
            "type": "array",
            "description": "Filter by legal status — case-insensitive substring match. Typical values: 'Active', 'Ended', 'Pending'. Leave empty for all statuses.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "niceClasses": {
            "title": "Nice classes (filter)",
            "type": "array",
            "description": "Filter by Nice classification numbers (1-45) — the international trademark goods & services categories. Examples: '9' = electronics/software, '25' = clothing, '35' = advertising, '42' = IT services. A record matches when any of its classes is listed.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResultsPerQuery": {
            "title": "Max trademark hits per query",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many Madrid Monitor top matches to read per query entry. The public lookup endpoint returns up to about 10 top matches per term.",
            "default": 10
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to store in the dataset across trademarks and patents. Start with 30 to validate filters, then scale up. Each PCT gazette page holds 200 rows.",
            "default": 200
          },
          "gazettes": {
            "title": "PCT gazette numbers",
            "type": "array",
            "description": "PCT Gazette issues to scrape, in the form NN/YYYY (for example \"42/2026\" for gazette 42 of 2026). Each gazette lists every PCT application published that week.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "latestGazettes": {
            "title": "Scrape the latest N gazettes",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Instead of (or in addition to) explicit gazette numbers, scrape the N most recent PCT gazettes (1 = the gazette published last Thursday).",
            "default": 0
          },
          "patentQueries": {
            "title": "PATENTSCOPE search queries (optional)",
            "type": "array",
            "description": "Optional keyword queries for the PATENTSCOPE simple search (e.g. \"electric car\", \"WIPO2026\"). Note: PATENTSCOPE protects keyword-search result pages with reCAPTCHA on flagged IP addresses — enable Apify Proxy (residential) if searches return no data.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "patentSearchField": {
            "title": "PATENTSCOPE search field",
            "enum": [
              "FP",
              "EN_ALL",
              "EN_ALLTXT",
              "EN_CL",
              "ALLNUM",
              "CLASSIF",
              "ALLNAMES",
              "DP"
            ],
            "type": "string",
            "description": "PATENTSCOPE field used for the keyword queries.",
            "default": "FP"
          },
          "maxPagesPerGazette": {
            "title": "Max pages per gazette",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many 200-row pages to fetch per gazette (a large gazette contains several thousand publications).",
            "default": 5
          },
          "maxRequestsPerCrawl": {
            "title": "Max requests per crawl",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety cap on the total number of HTTP requests the crawler may perform.",
            "default": 25
          },
          "proxyConfig": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler. Trademark mode works without a proxy; enable Apify Proxy (residential) for PATENTSCOPE keyword searches if reCAPTCHA blocks them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}