{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Trademark Filings (INPI) — Marcas com CNPJ",
    "description": "New trademark applications published by Brazil's INPI every week, each with the holder company's CNPJ, legal name, CNAE, size, city, website, role e-mail and phone. Lookup mode: trademarks of a CNPJ list. PT: novos pedidos de marca INPI com CNPJ.",
    "version": "0.3",
    "x-build-id": "C0tsdXaDKm4RW5H7Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latsouth~brazil-trademark-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latsouth-brazil-trademark-filings",
        "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/latsouth~brazil-trademark-filings/runs": {
      "post": {
        "operationId": "runs-sync-latsouth-brazil-trademark-filings",
        "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/latsouth~brazil-trademark-filings/run-sync": {
      "post": {
        "operationId": "run-sync-latsouth-brazil-trademark-filings",
        "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": {
          "mode": {
            "title": "Mode (modo)",
            "enum": [
              "new_filings",
              "lookup"
            ],
            "type": "string",
            "description": "new_filings = applications the INPI published in the last N days (or since a date), with the filters below. lookup = the filings of each CNPJ you send (list or CSV). PT: new_filings = novos pedidos publicados na RPI; lookup = marcas de uma lista de CNPJs.",
            "default": "new_filings"
          },
          "days": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Counted back from the INPI release date of the data (the INPI re-publishes its files every week), so the newest weekly RPI is always inside the window. PT: publicados nos ultimos N dias.",
            "default": 30
          },
          "since_date": {
            "title": "Or since this date",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides 'last N days'."
          },
          "date_basis": {
            "title": "Date used for the window",
            "enum": [
              "published",
              "filed"
            ],
            "type": "string",
            "description": "A filing appears in the INPI open data only after its RPI publication, 3-8 weeks after it was filed; 'published' gives the newest leads every week.",
            "default": "published"
          },
          "nice_classes": {
            "title": "Nice classes (classes Nice 1-45)",
            "type": "array",
            "description": "e.g. 9 software/electronics, 25 clothing, 30 food, 35 retail/advertising, 41 education, 42 IT services, 43 restaurants, 44 health/beauty. NOTE: the INPI open data has Nice classes only for applications filed up to about October 2025 (its class file stopped updating); newer filings have no class and do not match this filter. Use the CNAE filters (the holder company's activity) for recent filings.",
            "items": {
              "type": "string"
            }
          },
          "brand_keywords": {
            "title": "Keyword in the brand (marca)",
            "type": "array",
            "description": "Matches anywhere in the brand, accent- and case-insensitive (cafe = Cafe = CAFE). Several = any of them.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (UF)",
            "type": "array",
            "description": "State of the holder company's registered address. Empty = all of Brazil.",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AM",
                "AP",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MG",
                "MS",
                "MT",
                "PA",
                "PB",
                "PE",
                "PI",
                "PR",
                "RJ",
                "RN",
                "RO",
                "RR",
                "RS",
                "SC",
                "SE",
                "SP",
                "TO"
              ],
              "enumTitles": [
                "AC - Acre",
                "AL - Alagoas",
                "AM - Amazonas",
                "AP - Amapa",
                "BA - Bahia",
                "CE - Ceara",
                "DF - Distrito Federal",
                "ES - Espirito Santo",
                "GO - Goias",
                "MA - Maranhao",
                "MG - Minas Gerais",
                "MS - Mato Grosso do Sul",
                "MT - Mato Grosso",
                "PA - Para",
                "PB - Paraiba",
                "PE - Pernambuco",
                "PI - Piaui",
                "PR - Parana",
                "RJ - Rio de Janeiro",
                "RN - Rio Grande do Norte",
                "RO - Rondonia",
                "RR - Roraima",
                "RS - Rio Grande do Sul",
                "SC - Santa Catarina",
                "SE - Sergipe",
                "SP - Sao Paulo",
                "TO - Tocantins"
              ]
            }
          },
          "cnae_divisions": {
            "title": "Holder's industry (CNAE 2-digit division)",
            "type": "array",
            "description": "Main activity of the holder company, e.g. 62 IT, 47 retail, 56 food service, 86 health, 10-11 food & beverage makers.",
            "items": {
              "type": "string"
            }
          },
          "cnae_codes": {
            "title": "Holder's industry (CNAE subclass or prefix)",
            "type": "array",
            "description": "7-digit CNAE subclass (6201501 or 6201-5/01) or a shorter prefix.",
            "items": {
              "type": "string"
            }
          },
          "company_size": {
            "title": "Company size (porte)",
            "type": "array",
            "description": "Receita 'porte' of the holder. Empty = all sizes.",
            "items": {
              "type": "string",
              "enum": [
                "micro",
                "small",
                "other"
              ],
              "enumTitles": [
                "Micro (ME)",
                "Small (EPP)",
                "Other (medium and large)"
              ]
            }
          },
          "statuses": {
            "title": "Filing status",
            "type": "array",
            "description": "Default: pending + in_force.",
            "items": {
              "type": "string",
              "enum": [
                "pending",
                "in_force",
                "dead"
              ],
              "enumTitles": [
                "Pending (under examination / opposition)",
                "Registered (in force)",
                "Dead (archived, refused, extinct)"
              ]
            }
          },
          "only_with_contact": {
            "title": "Only with a company contact",
            "type": "boolean",
            "description": "Keep filings whose holder has a phone not flagged as the accountant's, a role e-mail or a contact on its own website.",
            "default": false
          },
          "only_with_email": {
            "title": "Only with a role e-mail",
            "type": "boolean",
            "description": "Registered role mailbox on the company's own domain, or a role e-mail published on its own website. Personal mailboxes are never output.",
            "default": false
          },
          "exclude_accountant_phone": {
            "title": "Exclude accountant-looking phones",
            "type": "boolean",
            "description": "Drop filings whose registered phone is probably the accountant's (shared by many companies).",
            "default": false
          },
          "cnpjs": {
            "title": "CNPJs (lookup mode)",
            "type": "array",
            "description": "14-digit CNPJs (formatted or not, alphanumeric CNPJ included) = filings of that establishment; an 8-digit root = filings of every establishment of the company. CPFs are not supported (company data only).",
            "items": {
              "type": "string"
            }
          },
          "cnpjs_file": {
            "title": "CSV or TXT file with CNPJs (lookup mode)",
            "type": "string",
            "description": "One CNPJ per line, or a CSV with a column whose header contains 'cnpj'. Up to 100,000 distinct CNPJs, 50 MB."
          },
          "include_not_found": {
            "title": "Return a row for CNPJs without filings",
            "type": "boolean",
            "description": "On (default): a CNPJ with no filing in the data (or inactive / MEI / not in the Receita release) gets one row with not_found = true, free of charge, so the output lines up 1:1 with your list. An input rejected on format alone (wrong check digits, a CPF) gets lookup_match = invalid and is free too. Only filings are charged.",
            "default": true
          },
          "max_filings_per_company": {
            "title": "Max filings per CNPJ (lookup)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest filings first.",
            "default": 100
          },
          "filed_after": {
            "title": "Filed on or after (lookup)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "max_results": {
            "title": "Max filings",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "You pay per filing returned (US$0.004 each: 1,000 filings = US$4). The run also stops at your spending limit. Default 25 in new_filings, 10,000 in lookup."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}