{
  "openapi": "3.0.1",
  "info": {
    "title": "Russian Counterparty Check by INN: Fedresurs + FNS Risk Score",
    "description": "Check a Russian company by INN across FNS \"Prozrachny biznes\", GIR BO financials and Fedresurs in one record, with a transparent risk score and change monitoring.",
    "version": "0.1",
    "x-build-id": "7ptN6AGBtBWJd3eba"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/isolovyev~ru-counterparty-check/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-isolovyev-ru-counterparty-check",
        "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/isolovyev~ru-counterparty-check/runs": {
      "post": {
        "operationId": "runs-sync-isolovyev-ru-counterparty-check",
        "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/isolovyev~ru-counterparty-check/run-sync": {
      "post": {
        "operationId": "run-sync-isolovyev-ru-counterparty-check",
        "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",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search = one-off risk profile per company. monitor = compare vs the previous run (needs a schedule) and emit only companies whose bankruptcy stage, legal-case count or publications changed, with webhook.",
            "default": "search"
          },
          "inns": {
            "title": "INNs / OGRNs",
            "type": "array",
            "description": "Company INN (10 digits) or OGRN to look up. Exact-match native key on fedresurs.ru - the recommended way to identify a company unambiguously. Also the ONLY key the nalog source can use (pb.nalog.ru/bo.nalog.gov.ru have no name search) - a name-only query (searchStrings) is fedresurs-only.",
            "items": {
              "type": "string"
            }
          },
          "searchStrings": {
            "title": "Company names (optional, fuzzy)",
            "type": "array",
            "description": "Optional. Company name to search when you don't have the INN. fedresurs.ru's own search may return several matches for a name - the actor takes up to 'Max matches per name' of them, each flagged with matchedQuery so you can tell which search string found it. Fedresurs-only: once fedresurs resolves a name to an INN, the nalog source is looked up for that INN too.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Due diligence sources",
            "type": "array",
            "description": "Which official sources to check per company and merge into one record. fedresurs = fedresurs.ru (ЕФРСБ): bankruptcy, publications, encumbrances, net worth. nalog = pb.nalog.ru + bo.nalog.gov.ru (ФНС «Прозрачный бизнес» + ГИР БО): tax arrears, mass address, headcount, financials by year, founders. rnp = zakupki.gov.ru: реестр недобросовестных поставщиков (44-ФЗ/223-ФЗ/ПП РФ 615). rosfinmonitoring = fedsfm.ru: перечень организаций и физических лиц Росфинмониторинга (115-ФЗ), проверяется компания по ИНН/ОГРН и директор/учредители по ФИО. mchs = digital.mchs.gov.ru: зарегистрированные декларации пожарной безопасности (справочно, не влияет на risk score). All five by default for a full profile.",
            "items": {
              "type": "string",
              "enum": [
                "fedresurs",
                "nalog",
                "rnp",
                "rosfinmonitoring",
                "mchs"
              ],
              "enumTitles": [
                "Fedresurs (ЕФРСБ bankruptcy/publications)",
                "Nalog (ФНС tax risk + financials + founders)",
                "RNP (реестр недобросовестных поставщиков)",
                "Rosfinmonitoring (перечень организаций и физлиц, 115-ФЗ)",
                "МЧС (декларации пожарной безопасности)"
              ]
            },
            "default": [
              "fedresurs",
              "nalog",
              "rnp",
              "rosfinmonitoring",
              "mchs"
            ]
          },
          "maxMatchesPerName": {
            "title": "Max matches per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "For each entry in 'Company names', how many of fedresurs.ru's search results to fetch a full risk profile for (name search is fuzzy and can return multiple companies).",
            "default": 1
          },
          "fedresursSections": {
            "title": "Fedresurs: risk sections to fetch",
            "type": "array",
            "description": "Which fedresurs.ru risk sections to pull per company (only used when 'fedresurs' is in Due diligence sources). Fewer sections = faster/cheaper run. Identity (name/INN/OGRN/status/address/legal form/director/unreliable-info flags) is always included.",
            "items": {
              "type": "string",
              "enum": [
                "bankruptcy",
                "publications",
                "encumbrances",
                "networth",
                "licenses",
                "sro_membership",
                "reorganizations",
                "biddings",
                "pledged_subjects",
                "receivables"
              ],
              "enumTitles": [
                "Bankruptcy (intentions + legal cases)",
                "Publications (ЕФРСБ messages)",
                "Encumbrances (pledges/leasing/guarantees)",
                "Net worth history",
                "Licenses",
                "SRO membership",
                "Reorganizations",
                "Biddings (as bankrupt debtor)",
                "Pledged-asset sales (as debtor)",
                "Receivables sales (as debtor)"
              ]
            },
            "default": [
              "bankruptcy",
              "publications",
              "encumbrances",
              "networth",
              "licenses",
              "sro_membership",
              "reorganizations",
              "biddings",
              "pledged_subjects",
              "receivables"
            ]
          },
          "nalogSections": {
            "title": "Nalog: sections to fetch",
            "type": "array",
            "description": "Which ФНС blocks to pull per company (only used when 'nalog' is in Due diligence sources). 'identity'/'taxRisk'/'founders' share one pb.nalog.ru call (founders adds no extra request); 'financials' is a separate bo.nalog.gov.ru call - drop it for a faster/cheaper run if you only need risk markers.",
            "items": {
              "type": "string",
              "enum": [
                "identity",
                "taxRisk",
                "founders",
                "financials"
              ],
              "enumTitles": [
                "Identity (name/INN/OGRN/status/address)",
                "Tax risk (arrears, mass address, special regimes, headcount, taxes paid)",
                "Founders (учредители + mass-founder flag)",
                "Financials by year (revenue, profit, assets, liabilities)"
              ]
            },
            "default": [
              "identity",
              "taxRisk",
              "founders",
              "financials"
            ]
          },
          "notifyWebhookUrl": {
            "title": "Monitor: notify webhook URL",
            "type": "string",
            "description": "Monitor mode: POST the run summary (counts, changed companies) to this URL - wire it to n8n/Zapier/Make for Telegram/Slack risk alerts."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "REQUIRED on Apify: all sources geoblock datacenter/foreign IPs at the network level. fedresurs.ru's connection times out before Qrator's PoW challenge is even reached; pb.nalog.ru/bo.nalog.gov.ru, zakupki.gov.ru and fedsfm.ru get a ConnectTimeout. Use Apify Residential proxy with country RU for all of them - from an RU-residential IP, Camoufox clears the Qrator PoW automatically and the nalog/rnp/rosfinmonitoring sources connect cleanly.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "RU"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}