Conversor IAE CNAE · Schema

SearchResponse

CompanyTaxSpainBusiness ClassificationCNAEIAEOpen DataMCP

Properties

Name Type Description
query string
type string
count integer
results array
_meta object
View JSON Schema on GitHub

JSON Schema

conversoriaecnae-es-search-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conversoriaecnae-es/json-schema/conversoriaecnae-es-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conversoriaecnae-es-b-squeda-api-openapi.yml#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "iae",
        "cnae",
        "both"
      ]
    },
    "count": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchResult"
      }
    },
    "_meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "description": "Metadatos del envelope para endpoints con clave: plan actual, cuota restante y días restantes de la prueba (solo plan trial) y nudge de upgrade a Empresa (solo plan Profesional al ≥80% de cuota).",
      "required": [
        "plan",
        "remaining"
      ],
      "properties": {
        "plan": {
          "type": "string",
          "description": "Plan de la clave (free, trial, profesional, empresa, enterprise). `trial` = prueba Profesional de 14 días sin tarjeta; al terminar, la clave pasa a free."
        },
        "remaining": {
          "type": "integer",
          "description": "Peticiones restantes de la cuota diaria."
        },
        "trial_ends_in_days": {
          "type": "integer",
          "minimum": 0,
          "description": "Días completos que quedan de la prueba Profesional (redondeo hacia arriba). Presente solo con plan `trial`."
        },
        "upgrade_hint": {
          "type": "string",
          "description": "Mensaje legible de upgrade a Empresa. Presente solo en plan Profesional al consumir ≥80% de la cuota. Las claves Free ya no reciben este nudge: ven el campo bloqueado (`locked: true`) en `associated_cnae` / `associated_iae`."
        },
        "upgrade": {
          "$ref": "#/$defs/UpgradeMeta"
        }
      }
    },
    "SearchResult": {
      "type": "object",
      "description": "Resultado de búsqueda. Incluye las columnas del RPC `search_*_codes` más un campo `type`.",
      "additionalProperties": true,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "iae",
            "cnae"
          ]
        }
      }
    },
    "UpgradeMeta": {
      "type": "object",
      "description": "Forma estructurada del nudge de upgrade para renderizar UI nativa. Presente solo en plan Profesional al ≥80% de cuota (nudge a Empresa).",
      "properties": {
        "hint": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "current_plan": {
          "type": "string"
        },
        "recommended_plan": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "daily_limit": {
              "type": "integer"
            },
            "monthly_price_eur": {
              "type": "integer"
            }
          }
        },
        "daily_limit_after": {
          "type": "integer"
        },
        "price_eur_monthly": {
          "type": "integer"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/conversoriaecnae-es-search-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.