{
  "openapi": "3.0.3",
  "info": {
    "title": "Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher",
    "version": "3.0.0",
    "description": "Enriches Brazilian CNAE 2.3 industry codes via official IBGE CONCLA APIs. Extracts permitted activities, tax exclusions, hierarchy (Section/Division/Class), and official 7-digit IBGE municipal codes for NF-e/NFS-e compliance.\n\n### Enterprise B2B Value Proposition (Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher)\n- **Target B2B Buyers:** Accounting Automation Platforms, B2B Lead Scoring Engines, and Franchise Expansion Analysts.\n- **Zero External API Keys Required:** Connects directly to authoritative government, regulatory, and financial primary registries with built-in retry/backoff and deterministic schema normalization.\n- **Quantitative Scoring & RAG Briefs:** Every record is enriched with a quantitative 0-100 risk/viability score and an LLM-ready Markdown executive brief (`Brazil IBGE CNAE 2.3 Subclass & Tax Activity Enriched`).\n- **Backend Proxy Secret Injection:** RapidAPI Studio and Zyla API Hub inject `Authorization: Bearer <APIFY_API_TOKEN>` invisibly at the proxy layer when forwarding synchronous calls to `https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items`.\n- **Marketplace Categories:** RapidAPI `Business` | Zyla API Hub `Company Data`.\n- **Subscription Tiers (USD):** `BASIC` ($0.00/mo, 15 req/mo hard cap), `PRO` ($19.00/mo, 1,000 req/mo + $0.02/extra), `ULTRA` ($49.00/mo, 5,000 req/mo + $0.015/extra), `MEGA` ($149.00/mo, 25,000 req/mo + $0.010/extra).\n- **SEO Keywords:** ibge-cnae, concla-subclass, brazil-tax-activities, municipal-expansion, b2b-market-sizing, company-classification, simples-nacional.",
    "termsOfService": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/",
    "contact": {
      "name": "B2B Quant APIs (@b2b-quant-apis)",
      "email": "jesleytassili@gmail.com",
      "url": "https://apify.com/b2b-quant-apis/brazil-ibge-cnae-municipal-b2b-expansion-enricher"
    },
    "license": {
      "name": "Commercial B2B API Subscription (RapidAPI & Zyla Hub)",
      "url": "https://apify.com/b2b-quant-apis/brazil-ibge-cnae-municipal-b2b-expansion-enricher"
    },
    "x-category": "Business",
    "x-rapidapi-category": "Business",
    "x-zyla-category": "Company Data",
    "x-seo-tags": [
      "ibge-cnae",
      "concla-subclass",
      "brazil-tax-activities",
      "municipal-expansion",
      "b2b-market-sizing",
      "company-classification",
      "simples-nacional"
    ],
    "x-payout-destination": "Wise #890361113",
    "x-pricing-plans": {
      "BASIC": {
        "tier": "BASIC",
        "label": "Freemium Developer Trial",
        "monthlyPriceUsd": 0.0,
        "monthlyQuotaRequests": 15,
        "overagePricePerRequestUsd": 0.0,
        "hardLimit": true
      },
      "PRO": {
        "tier": "PRO",
        "label": "Startup & RevOps Pipeline",
        "monthlyPriceUsd": 19.0,
        "monthlyQuotaRequests": 1000,
        "overagePricePerRequestUsd": 0.02,
        "hardLimit": false
      },
      "ULTRA": {
        "tier": "ULTRA",
        "label": "Mid-Market Automation Cluster",
        "monthlyPriceUsd": 49.0,
        "monthlyQuotaRequests": 5000,
        "overagePricePerRequestUsd": 0.015,
        "hardLimit": false
      },
      "MEGA": {
        "tier": "MEGA",
        "label": "Enterprise High-Throughput SLA",
        "monthlyPriceUsd": 149.0,
        "monthlyQuotaRequests": 25000,
        "overagePricePerRequestUsd": 0.01,
        "hardLimit": false
      }
    },
    "x-code-snippets": {
      "cURL": "# Primary Synchronous Endpoint: https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\ncurl --request POST \\\n  --url \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5}'",
      "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nurl = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\"\npayload = {\n    \"cnaeCodes\": \"6201501,4711302,8630503\",\n    \"targetUf\": \"SP\",\n    \"maxResults\": 5\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
      "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nconst url = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
    },
    "x-primary-backend-url": "https://api.apify.com",
    "x-primary-backend-base-url": "https://api.apify.com",
    "x-apify-sync-endpoint": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items",
    "x-apify-health-endpoint": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher",
    "x-backend-secret-header": {
      "name": "Authorization",
      "valueTemplate": "Bearer <APIFY_API_TOKEN>",
      "headerName": "Authorization",
      "headerValueTemplate": "Bearer <APIFY_API_TOKEN>",
      "injectedByProxy": true,
      "hiddenFromSubscriber": true,
      "description": "Secret Header injected invisibly by RapidAPI Studio and Zyla API Hub proxy when calling https://api.apify.com."
    },
    "x-openapi-spec-url": "https://jesleytassili-glitch.github.io/specs_openapi_31/brazil-ibge-cnae-municipal-b2b-expansion-enricher.json",
    "x-openapi-suite-spec-url": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/specs_openapi_31/brazil-ibge-cnae-municipal-b2b-expansion-enricher.json",
    "x-apis-json-url": "https://jesleytassili-glitch.github.io/apis.json",
    "x-github-release-tag": "v2.2.0"
  },
  "externalDocs": {
    "description": "Official B2B Documentation & Schema Reference for Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher",
    "url": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/actors/brazil-ibge-cnae-municipal-b2b-expansion-enricher.html"
  },
  "servers": [
    {
      "url": "https://api.apify.com",
      "description": "Primary Apify Cloud Synchronous Execution Cluster (Real HTTP 200/201 POST & GET)"
    },
    {
      "url": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items",
      "description": "Direct Apify Actor Synchronous Execution Endpoint (brazil-ibge-cnae-municipal-b2b-expansion-enricher)"
    },
    {
      "url": "https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev",
      "description": "Anti-Bypass Stateless B2B Gateway (RapidAPI & Zyla Hub Proxy)"
    }
  ],
  "tags": [
    {
      "name": "Business",
      "description": "RapidAPI Hub primary category: Business (Zyla Hub: Company Data)"
    },
    {
      "name": "ibge-cnae",
      "description": "B2B SEO Search Tag: ibge-cnae"
    },
    {
      "name": "concla-subclass",
      "description": "B2B SEO Search Tag: concla-subclass"
    },
    {
      "name": "brazil-tax-activities",
      "description": "B2B SEO Search Tag: brazil-tax-activities"
    },
    {
      "name": "municipal-expansion",
      "description": "B2B SEO Search Tag: municipal-expansion"
    },
    {
      "name": "b2b-market-sizing",
      "description": "B2B SEO Search Tag: b2b-market-sizing"
    },
    {
      "name": "company-classification",
      "description": "B2B SEO Search Tag: company-classification"
    },
    {
      "name": "simples-nacional",
      "description": "B2B SEO Search Tag: simples-nacional"
    }
  ],
  "security": [
    {
      "ApifyCloudBearerAuth": []
    },
    {
      "RapidAPIProxySecret": []
    },
    {
      "ZylaProxySecret": []
    },
    {
      "RapidAPISubscriberKey": []
    }
  ],
  "paths": {
    "/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run_sync_brazil_ibge_cnae_municipal_b2b_expansion_enricher",
        "summary": "Execute Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher (Apify Cloud Synchronous POST)",
        "description": "Synchronous stateless execution of **Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher**. RapidAPI Studio and Zyla API Hub inject the backend secret header `Authorization: Bearer <APIFY_API_TOKEN>` invisibly to the end user, validate `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` in constant time (`hmac.compare_digest`), inject quota headers (`X-RateLimit-Remaining`, `X-Engine-Version`), and return deterministic JSON records.",
        "tags": [
          "Business",
          "ibge-cnae",
          "concla-subclass",
          "brazil-tax-activities",
          "municipal-expansion",
          "b2b-market-sizing"
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "label": "cURL",
            "source": "# Primary Synchronous Endpoint: https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\ncurl --request POST \\\n  --url \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5}'"
          },
          {
            "lang": "Python",
            "label": "Python (httpx)",
            "source": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nurl = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\"\npayload = {\n    \"cnaeCodes\": \"6201501,4711302,8630503\",\n    \"targetUf\": \"SP\",\n    \"maxResults\": 5\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n"
          },
          {
            "lang": "Node.js",
            "label": "Node.js (fetch)",
            "source": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nconst url = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
          }
        ],
        "x-snippets": {
          "cURL": "# Primary Synchronous Endpoint: https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\ncurl --request POST \\\n  --url \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5}'",
          "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nurl = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\"\npayload = {\n    \"cnaeCodes\": \"6201501,4711302,8630503\",\n    \"targetUf\": \"SP\",\n    \"maxResults\": 5\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
          "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nconst url = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
        },
        "x-backend-secret-header": {
          "name": "Authorization",
          "value": "Bearer <APIFY_API_TOKEN>",
          "visibleToSubscriber": false
        },
        "requestBody": {
          "required": true,
          "description": "Structured JSON parameters for `brazil-ibge-cnae-municipal-b2b-expansion-enricher`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherRequest"
              },
              "example": {
                "cnaeCodes": "6201501,4711302,8630503",
                "targetUf": "SP",
                "maxResults": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful synchronous execution of `brazil-ibge-cnae-municipal-b2b-expansion-enricher` returning enriched B2B JSON records.",
            "headers": {
              "X-RateLimit-Remaining": {
                "description": "Remaining requests in the subscriber's monthly plan quota (BASIC=15, PRO=1000, ULTRA=5000, MEGA=25000).",
                "schema": {
                  "type": "integer",
                  "example": 999
                }
              },
              "X-Engine-Version": {
                "description": "Deterministic B2B engine release version.",
                "schema": {
                  "type": "string",
                  "example": "3.0.0"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "cnaeSubclassId": "6201501",
                      "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
                      "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
                      "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
                      "permittedActivitiesCount": 5,
                      "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
                      "targetUf": "SP",
                      "b2bFitScore": 98,
                      "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
                    }
                  ]
                }
              }
            }
          },
          "201": {
            "description": "Synchronous dataset created and returned for `brazil-ibge-cnae-municipal-b2b-expansion-enricher` on Apify Cloud (`HTTP 201`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "cnaeSubclassId": "6201501",
                      "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
                      "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
                      "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
                      "permittedActivitiesCount": 5,
                      "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
                      "targetUf": "SP",
                      "b2bFitScore": 98,
                      "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Invalid JSON payload or schema validation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "code": 400,
                  "message": "Invalid JSON request body."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — Missing or invalid `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` header (Anti-Bypass Protection).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "forbidden",
                  "code": 403,
                  "message": "Direct access denied. Requests must originate from RapidAPI Hub or Zyla API Hub with a valid Proxy-Secret."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Monthly plan quota exceeded (e.g., BASIC Freemium 15 req/month hard limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "quota_exceeded",
                  "code": 429,
                  "message": "Monthly request quota exceeded for BASIC plan (15 req/month hard limit). Upgrade to PRO ($19/mo), ULTRA ($49/mo), or MEGA ($149/mo)."
                }
              }
            }
          }
        }
      }
    },
    "/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher": {
      "get": {
        "operationId": "status_brazil_ibge_cnae_municipal_b2b_expansion_enricher",
        "summary": "Actor Metadata & Live Connectivity Check for Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher",
        "description": "Immediate `HTTP 200` status and metadata health check for `brazil-ibge-cnae-municipal-b2b-expansion-enricher` on RapidAPI Studio and Zyla API Hub (`GET https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher` and `GET /v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher/health`) without starting a container build or run.",
        "tags": [
          "Business"
        ],
        "responses": {
          "200": {
            "description": "Engine online and ready (`HTTP 200 JSON`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "actor": {
                      "type": "string",
                      "example": "brazil-ibge-cnae-municipal-b2b-expansion-enricher"
                    },
                    "engineVersion": {
                      "type": "string",
                      "example": "3.0.0"
                    },
                    "category": {
                      "type": "string",
                      "example": "Business"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true,
                      "example": {
                        "name": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                        "username": "b2b-quant-apis",
                        "isPublic": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ok",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "category": "Business",
                  "data": {
                    "name": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                    "username": "b2b-quant-apis",
                    "isPublic": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher": {
      "post": {
        "operationId": "execute_brazil_ibge_cnae_municipal_b2b_expansion_enricher",
        "summary": "Execute Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher",
        "description": "Synchronous stateless execution of **Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher**. RapidAPI Studio and Zyla API Hub inject the backend secret header `Authorization: Bearer <APIFY_API_TOKEN>` invisibly to the end user, validate `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` in constant time (`hmac.compare_digest`), inject quota headers (`X-RateLimit-Remaining`, `X-Engine-Version`), and return deterministic JSON records.",
        "tags": [
          "Business",
          "ibge-cnae",
          "concla-subclass",
          "brazil-tax-activities",
          "municipal-expansion",
          "b2b-market-sizing"
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "label": "cURL",
            "source": "# Primary Synchronous Endpoint: https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\ncurl --request POST \\\n  --url \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5}'"
          },
          {
            "lang": "Python",
            "label": "Python (httpx)",
            "source": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nurl = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\"\npayload = {\n    \"cnaeCodes\": \"6201501,4711302,8630503\",\n    \"targetUf\": \"SP\",\n    \"maxResults\": 5\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n"
          },
          {
            "lang": "Node.js",
            "label": "Node.js (fetch)",
            "source": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nconst url = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
          }
        ],
        "x-snippets": {
          "cURL": "# Primary Synchronous Endpoint: https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\ncurl --request POST \\\n  --url \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5}'",
          "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nurl = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\"\npayload = {\n    \"cnaeCodes\": \"6201501,4711302,8630503\",\n    \"targetUf\": \"SP\",\n    \"maxResults\": 5\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
          "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher)\nconst url = \"https://brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-ibge-cnae-municipal-b2b-expansion-enricher.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"cnaeCodes\": \"6201501,4711302,8630503\", \"targetUf\": \"SP\", \"maxResults\": 5})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
        },
        "x-backend-secret-header": {
          "name": "Authorization",
          "value": "Bearer <APIFY_API_TOKEN>",
          "visibleToSubscriber": false
        },
        "requestBody": {
          "required": true,
          "description": "Structured JSON parameters for `brazil-ibge-cnae-municipal-b2b-expansion-enricher`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherRequest"
              },
              "example": {
                "cnaeCodes": "6201501,4711302,8630503",
                "targetUf": "SP",
                "maxResults": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful synchronous execution of `brazil-ibge-cnae-municipal-b2b-expansion-enricher` returning enriched B2B JSON records.",
            "headers": {
              "X-RateLimit-Remaining": {
                "description": "Remaining requests in the subscriber's monthly plan quota (BASIC=15, PRO=1000, ULTRA=5000, MEGA=25000).",
                "schema": {
                  "type": "integer",
                  "example": 999
                }
              },
              "X-Engine-Version": {
                "description": "Deterministic B2B engine release version.",
                "schema": {
                  "type": "string",
                  "example": "3.0.0"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "cnaeSubclassId": "6201501",
                      "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
                      "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
                      "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
                      "permittedActivitiesCount": 5,
                      "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
                      "targetUf": "SP",
                      "b2bFitScore": 98,
                      "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
                    }
                  ]
                }
              }
            }
          },
          "201": {
            "description": "Synchronous dataset created and returned for `brazil-ibge-cnae-municipal-b2b-expansion-enricher` on Apify Cloud (`HTTP 201`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "cnaeSubclassId": "6201501",
                      "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
                      "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
                      "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
                      "permittedActivitiesCount": 5,
                      "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
                      "targetUf": "SP",
                      "b2bFitScore": 98,
                      "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Invalid JSON payload or schema validation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "code": 400,
                  "message": "Invalid JSON request body."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — Missing or invalid `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` header (Anti-Bypass Protection).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "forbidden",
                  "code": 403,
                  "message": "Direct access denied. Requests must originate from RapidAPI Hub or Zyla API Hub with a valid Proxy-Secret."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Monthly plan quota exceeded (e.g., BASIC Freemium 15 req/month hard limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "quota_exceeded",
                  "code": 429,
                  "message": "Monthly request quota exceeded for BASIC plan (15 req/month hard limit). Upgrade to PRO ($19/mo), ULTRA ($49/mo), or MEGA ($149/mo)."
                }
              }
            }
          }
        }
      }
    },
    "/v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher/health": {
      "get": {
        "operationId": "health_brazil_ibge_cnae_municipal_b2b_expansion_enricher",
        "summary": "Health & SLA Check for Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher",
        "description": "Immediate `HTTP 200` status and metadata health check for `brazil-ibge-cnae-municipal-b2b-expansion-enricher` on RapidAPI Studio and Zyla API Hub (`GET https://api.apify.com/v2/acts/b2b-quant-apis~brazil-ibge-cnae-municipal-b2b-expansion-enricher` and `GET /v1/brazil-ibge-cnae-municipal-b2b-expansion-enricher/health`) without starting a container build or run.",
        "tags": [
          "Business"
        ],
        "responses": {
          "200": {
            "description": "Engine online and ready (`HTTP 200 JSON`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "actor": {
                      "type": "string",
                      "example": "brazil-ibge-cnae-municipal-b2b-expansion-enricher"
                    },
                    "engineVersion": {
                      "type": "string",
                      "example": "3.0.0"
                    },
                    "category": {
                      "type": "string",
                      "example": "Business"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true,
                      "example": {
                        "name": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                        "username": "b2b-quant-apis",
                        "isPublic": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ok",
                  "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                  "engineVersion": "3.0.0",
                  "category": "Business",
                  "data": {
                    "name": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
                    "username": "b2b-quant-apis",
                    "isPublic": true
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApifyCloudBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "APIFY_API_TOKEN",
        "description": "Backend Secret Header (`Authorization: Bearer <APIFY_API_TOKEN>`) injected invisibly by RapidAPI Studio and Zyla API Hub proxy when calling https://api.apify.com."
      },
      "RapidAPIProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret",
        "description": "RapidAPI Hub shared proxy secret verified in constant time via hmac.compare_digest."
      },
      "ZylaProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Zyla-Proxy-Secret",
        "description": "Zyla API Hub shared proxy secret verified in constant time via hmac.compare_digest."
      },
      "RapidAPISubscriberKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Key",
        "description": "Subscriber API Key injected by RapidAPI Hub or Zyla API Hub."
      }
    },
    "schemas": {
      "BrazilIbgeCnaeMunicipalB2bExpansionEnricherRequest": {
        "type": "object",
        "title": "Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher Request Schema",
        "description": "Input parameters for Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher.",
        "properties": {
          "cnaeCodes": {
            "type": "string",
            "title": "CNAE 2.3 Subclass Codes (CSV)",
            "description": "Comma-separated 7-digit Brazilian CNAE codes (e.g., '6201501, 4711302, 8630503').",
            "default": "6201501,4711302,8630503",
            "example": "6201501,4711302,8630503"
          },
          "targetUf": {
            "type": "string",
            "title": "Target State UF (for IBGE Capital/Municipal Lookup)",
            "description": "Two-letter Brazilian state UF code (e.g., SP, RJ, MG, PR).",
            "default": "SP",
            "example": "SP"
          },
          "maxResults": {
            "type": "integer",
            "title": "Max CNAE Codes to Enrich",
            "description": "Maximum number of CNAE subclass records to return (1 to 50).",
            "default": 5,
            "minimum": 1,
            "maximum": 50,
            "example": 5
          }
        },
        "required": [
          "cnaeCodes"
        ],
        "example": {
          "cnaeCodes": "6201501,4711302,8630503",
          "targetUf": "SP",
          "maxResults": 5
        }
      },
      "BrazilIbgeCnaeMunicipalB2bExpansionEnricherRecord": {
        "type": "object",
        "title": "Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher Output Record",
        "description": "Enriched B2B dataset item returned by `brazil-ibge-cnae-municipal-b2b-expansion-enricher`.",
        "properties": {
          "cnaeSubclassId": {
            "type": "string",
            "title": "CNAE 7-Digit Code",
            "description": "Official 7-digit CNAE 2.3 subclass identifier.",
            "example": "6201501"
          },
          "cnaeDescription": {
            "type": "string",
            "title": "Official CNAE Description",
            "description": "Official IBGE CONCLA subclass description.",
            "example": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA"
          },
          "sectionCode": {
            "type": "string",
            "title": "Macro Section",
            "description": "IBGE macro economic section.",
            "example": "J - INFORMAÇÃO E COMUNICAÇÃO"
          },
          "divisionDescription": {
            "type": "string",
            "title": "Economic Division",
            "description": "IBGE 2-digit division description.",
            "example": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO"
          },
          "permittedActivitiesCount": {
            "type": "integer",
            "title": "Permitted Activities Count",
            "description": "Total specific activities covered by this CNAE.",
            "example": 5
          },
          "sampleActivities": {
            "type": "string",
            "title": "Sample Covered Activities",
            "description": "Top activities included in this CNAE.",
            "example": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
          },
          "targetUf": {
            "type": "string",
            "title": "Target State UF",
            "description": "Queried Brazilian state UF.",
            "example": "SP"
          },
          "b2bFitScore": {
            "type": "integer",
            "title": "B2B Tax & Expansion Fit Score (0-100)",
            "description": "Quantitative score for B2B segmentation and fiscal clarity (0-100).",
            "example": 98
          },
          "markdownCnaeDossier": {
            "type": "string",
            "title": "Markdown Fiscal & B2B Segmentation Dossier",
            "description": "Executive report for accountants, ERPs, and B2B lead segmentation.",
            "example": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
          }
        },
        "example": {
          "cnaeSubclassId": "6201501",
          "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
          "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
          "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
          "permittedActivitiesCount": 5,
          "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
          "targetUf": "SP",
          "b2bFitScore": 98,
          "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
        }
      },
      "BrazilIbgeCnaeMunicipalB2bExpansionEnricherResponseEnvelope": {
        "type": "object",
        "title": "Brazil IBGE CNAE 2.3 & Municipal Code B2B Tax Enricher Synchronous Response Envelope",
        "required": [
          "status",
          "actor",
          "count",
          "data"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "succeeded"
          },
          "actor": {
            "type": "string",
            "example": "brazil-ibge-cnae-municipal-b2b-expansion-enricher"
          },
          "marketplace": {
            "type": "string",
            "example": "rapidapi_zyla_hub"
          },
          "engineVersion": {
            "type": "string",
            "example": "3.0.0"
          },
          "count": {
            "type": "integer",
            "example": 1
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrazilIbgeCnaeMunicipalB2bExpansionEnricherRecord"
            }
          }
        },
        "example": {
          "status": "succeeded",
          "actor": "brazil-ibge-cnae-municipal-b2b-expansion-enricher",
          "engineVersion": "3.0.0",
          "count": 1,
          "data": [
            {
              "cnaeSubclassId": "6201501",
              "cnaeDescription": "DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA",
              "sectionCode": "J - INFORMAÇÃO E COMUNICAÇÃO",
              "divisionDescription": "ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO",
              "permittedActivitiesCount": 5,
              "sampleActivities": "DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA",
              "targetUf": "SP",
              "b2bFitScore": 98,
              "markdownCnaeDossier": "# BRAZIL IBGE CNAE 2.3 FISCAL & B2B SEGMENTATION DOSSIER: 6201501\n\n## 1. Official CONCLA / IBGE Classification\n- **CNAE Subclass (7 Digits):** `6201501`\n- **Official Description:** **DESENVOLVIMENTO DE PROGRAMAS DE COMPUTADOR SOB ENCOMENDA**\n- **Macro Section:** `J - INFORMAÇÃO E COMUNICAÇÃO`\n- **Economic Division:** `ATIVIDADES DOS SERVIÇOS DE TECNOLOGIA DA INFORMAÇÃO`\n- **Target State UF:** `SP`\n\n## 2. Covered Tax Activities & B2B ICP Score\n- **B2B Tax & Expansion Fit Score:** **98/100**\n- **Permitted Activities Count:** `5`\n- **Sample Covered Activities:** DESENVOLVIMENTO DE SISTEMAS E SOFTWARE SOB ENCOMENDA; PROGRAMAÇÃO DE SISTEMAS INFORMÁTICOS SOB ENCOMENDA; MODELAGEM DE BANCO DE DADOS SOB ENCOMENDA; DESENVOLVIMENTO DE APLICATIVO INFORMÁTICO SOB ENCOMENDA"
            }
          ]
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "status",
          "code",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "code": {
            "type": "integer",
            "example": 403
          },
          "message": {
            "type": "string",
            "example": "Direct access denied."
          }
        }
      }
    }
  }
}