{
  "openapi": "3.1.0",
  "info": {
    "title": "Netstate KYB API — registry records (api.netstate.co)",
    "version": "1.0.0",
    "description": "Netstate is a KYB API and business verification platform for US and Canadian companies, built to discover, verify and monitor them against the official public record. It covers 128 million companies across every US state, DC, Puerto Rico and Canada — registration status and good standing, officers, EIN, UCC liens, licenses and permits, federal contractor, loan and filing history, plus OpenSanctions and PEP screening — with every field cited to its government source. Teams use it for KYB, onboarding, underwriting and due diligence: Netstate resolves and screens the record; your people review it and make the decisions.\n\nThis document covers api.netstate.co: US businesses anchored on their Secretary of State registration, with their UCC liens, licenses, permits and federal records. Every operation needs a dashboard API key from an account with an active paid Build or Growth plan, and each key has a daily request cap that GET /v1/account reports. Company search, sanctions & PEP screening and monitoring on netstate.co are in https://netstate.co/openapi.json; https://netstate.co/apis.json lists both.\n\nCall the API from a server, where the API key stays private.\n\nPrices are per request at standard rates; Build pays 10% less and Growth 25% less.\n\n**Can I use Netstate data for credit or hiring decisions?** No. Netstate is not a consumer reporting agency, and its data may not be used for any purpose covered by the FCRA — decisions about credit, insurance, employment or housing. It is built for research and business due diligence, where your team reviews the records and makes the call.",
    "termsOfService": "https://netstate.co/terms",
    "contact": {
      "name": "Netstate",
      "url": "https://netstate.co/",
      "email": "hello@netstate.co"
    }
  },
  "servers": [
    {
      "url": "https://api.netstate.co"
    }
  ],
  "paths": {
    "/v1/businesses": {
      "get": {
        "operationId": "search_businesses",
        "summary": "Search businesses",
        "description": "Full-text search over all names a company has been seen under. Returns sparse business objects; follow id for the full profile.\n\nPrice: $0.01 per request.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Company name query; all terms must match.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Two-letter state (tx) or jurisdiction code (us_tx).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "The registry's verbatim status value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "description": "The registry's verbatim entity type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "registration_date for newest first; relevance by default.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "live",
            "in": "query",
            "required": false,
            "description": "With a state that has a live parser, runs a Secretary of State lookup first so brand-new filings appear. Adds up to ~20s.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/businesses/{id}": {
      "get": {
        "operationId": "get_business",
        "summary": "Get a business",
        "description": "The full business object, with the 10 most recent rows of every record section inline.\n\nPrice: $0.01 per request.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Business id, us-{state}-{file_number}, e.g. us-tx-803212845.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "refresh",
            "in": "query",
            "required": false,
            "description": "Re-pulls the company from the state's Secretary of State (and UCC, where live parsers exist) before responding. Adds up to ~15s per lookup; a failed lookup falls back to stored data.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sparse",
            "in": "query",
            "required": false,
            "description": "Skips the record sections for a faster response; their total_count comes back null (not fetched, distinct from zero).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/businesses/{id}/liens": {
      "get": {
        "operationId": "list_business_liens",
        "summary": "List liens",
        "description": "UCC financing statements matched to the business, newest first, with the registry's original fields under record.\n\nPrice: $0.03 per request.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Business id, us-{state}-{file_number}, e.g. us-tx-803212845.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/businesses/{id}/licenses": {
      "get": {
        "operationId": "list_business_licenses",
        "summary": "List licenses",
        "description": "Professional and business licenses matched to the business, with the issuing register's original fields under record.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Business id, us-{state}-{file_number}, e.g. us-tx-803212845.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/businesses/{id}/permits": {
      "get": {
        "operationId": "list_business_permits",
        "summary": "List permits",
        "description": "Building and trade permits matched to the business, with the issuing register's original fields under record.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Business id, us-{state}-{file_number}, e.g. us-tx-803212845.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/businesses/{id}/federal": {
      "get": {
        "operationId": "list_business_federal_records",
        "summary": "List federal records",
        "description": "Federal records matched to the business other than liens: SAM registrations, H-1B LCAs, E-Verify, Medicare/NPI, IRS 990, FEC, Form 5500, SEC filings and more.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "businesses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Business id, us-{state}-{file_number}, e.g. us-tx-803212845.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/people": {
      "get": {
        "operationId": "search_business_people",
        "summary": "Search people",
        "description": "Companies by the people on file: officers, directors and registered agents, as the registers name them.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "people"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Person or firm name; all terms must match.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Restrict to one state.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, 1-based; windows deeper than 10,000 results return 400.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, up to 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/jurisdictions": {
      "get": {
        "operationId": "list_jurisdiction_coverage",
        "summary": "List jurisdictions",
        "description": "Coverage map: company counts per state, whether the data arrived by bulk load, and whether live Secretary of State and UCC lookups are wired.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "jurisdictions"
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "get_account_usage",
        "summary": "Get account usage",
        "description": "Usage against your key's daily cap. The counter resets at midnight UTC.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "account"
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Netstate API key, from https://netstate.co/account."
      },
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same API key, sent as Authorization: Bearer <key>."
      }
    }
  },
  "externalDocs": {
    "description": "The Netstate KYB API",
    "url": "https://netstate.co/products/kyb-api"
  }
}