{
  "openapi": "3.0.1",
  "info": {
    "title": "India Trademark Journal Watch - MarkWatch IN",
    "description": "Trademark journal watch for India: finds new marks that look or sound like yours and gives the 4-month opposition deadline.",
    "version": "1.0",
    "x-build-id": "hYgqRRLnbaIkFLVVZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leons0016~india-trademark-journal-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leons0016-india-trademark-journal-watch",
        "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/leons0016~india-trademark-journal-watch/runs": {
      "post": {
        "operationId": "runs-sync-leons0016-india-trademark-journal-watch",
        "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/leons0016~india-trademark-journal-watch/run-sync": {
      "post": {
        "operationId": "run-sync-leons0016-india-trademark-journal-watch",
        "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": [
              "watch",
              "export"
            ],
            "type": "string",
            "description": "Watch compares your marks with new Journal entries. Export outputs every entry of a Journal as data.",
            "default": "watch"
          },
          "watchedMarks": {
            "title": "Watched marks",
            "maxItems": 5000,
            "type": "array",
            "description": "One mark per line. Optional classes after a bar: TATA TEA | 30. Optional reference after a second bar: TATA TEA | 30 | Client-17. No classes = use Default classes. Lines starting with # are ignored.",
            "items": {
              "type": "string",
              "maxLength": 120,
              "pattern": "^[^|]{1,80}(\\|\\s*[0-9 ,\\-]*)?(\\|.*)?$"
            }
          },
          "watchlistCsvUrl": {
            "title": "Watch-list CSV (URL)",
            "pattern": "^https://.+",
            "type": "string",
            "description": "Optional. Public https link to a CSV with the columns mark, classes, reference (ownApplicant is accepted and ignored). Added to the list above. Max 5,000 rows, max 2 MB. Example: https://example.com/marks.csv"
          },
          "defaultClasses": {
            "title": "Default classes",
            "maxItems": 60,
            "type": "array",
            "description": "Classes used for marks without their own classes, for example 29, 30 or 29-32. Empty = all classes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sensitivity": {
            "title": "Sensitivity",
            "enum": [
              "strict",
              "balanced",
              "broad"
            ],
            "type": "string",
            "description": "Strict ≥ 85, Balanced ≥ 75, Broad ≥ 65 out of 100.",
            "default": "balanced"
          },
          "classScope": {
            "title": "Class scope",
            "enum": [
              "same",
              "related",
              "all"
            ],
            "type": "string",
            "description": "Related classes follow common Indian opposition practice, e.g. 29/30/31/32/43 for food.",
            "default": "related"
          },
          "ignoreWords": {
            "title": "Words to ignore",
            "maxItems": 200,
            "type": "array",
            "description": "Generic words removed before comparing, e.g. FOODS, INDIA, BRAND.",
            "items": {
              "type": "string",
              "maxLength": 60
            },
            "default": []
          },
          "ownApplicantNames": {
            "title": "Your applicant names",
            "maxItems": 200,
            "type": "array",
            "description": "Entries filed by these applicants are never reported (your own filings), e.g. Acme Foods Private Limited.",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "default": []
          },
          "minMarkLength": {
            "title": "Ignore watched marks shorter than",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Very short marks create noise.",
            "default": 2
          },
          "backfillJournals": {
            "title": "Also check earlier Journals (first run)",
            "minimum": 0,
            "maximum": 17,
            "type": "integer",
            "description": "Checks recent Journals this task has not checked yet. 17 ≈ the 4-month opposition window.",
            "default": 0
          },
          "journalNumbers": {
            "title": "Specific Journal numbers",
            "maxItems": 60,
            "type": "array",
            "description": "Leave empty for new Journals. Fill to re-check or export specific issues, e.g. 2283.",
            "items": {
              "type": "string",
              "maxLength": 10
            },
            "default": []
          },
          "exportClasses": {
            "title": "Export only these classes",
            "maxItems": 60,
            "type": "array",
            "description": "Export mode only, for example 30 or 29-32. Empty = all classes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerRun": {
            "title": "Max results per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops pushing results after this number. Protects your budget.",
            "default": 500
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "pattern": "^https://.+",
            "type": "string",
            "description": "Optional. We POST the run summary JSON here, e.g. https://example.com/hook."
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook",
            "type": "string",
            "description": "Optional, starts with https://hooks.slack.com/. Or use Apify's Slack integration (recommended)."
          },
          "useSharedCache": {
            "title": "Use shared parsed-Journal cache",
            "type": "boolean",
            "description": "Faster and cheaper. Turn off to parse the official PDFs in this run.",
            "default": true
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Only set if two tasks must share history. Letters, digits, dot, dash, underscore; example: client-a."
          },
          "debugSavePages": {
            "title": "Save parse debug data",
            "type": "boolean",
            "description": "Saves unparsed lines to the key-value store for support.",
            "default": false
          },
          "indexerMode": {
            "title": "Indexer mode (publisher only)",
            "type": "boolean",
            "description": "Used by the publisher to build the shared cache. Rejected for every other account.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}