> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endaoment.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get organization counts by NTEE major code

> 
    Returns the number of organizations associated with each requested NTEE major code.
    Each count matches the total number of results from the organization search filtered by that code,
    using the same default public visibility rules. Provide nteeMajorCodes as a comma-separated list. An asOf
    timestamp indicates when the counts were computed.
    



## OpenAPI

````yaml https://api.dev.endaoment.org/oas-json get /v1/orgs/counts
openapi: 3.0.0
info:
  title: Endaoment API
  description: >-
    The official Endaoment API endpoints. Dev (canary) = newest features;
    Staging (stable) = pre-production.
  version: 0.0.0-dev
  contact: {}
servers:
  - url: https://api.dev.endaoment.org
    description: Dev (canary)
security: []
tags:
  - name: Partner Endpoints
    description: Tech-platform partner server-to-server APIs
  - name: Authentication
    description: OAuth callers, API keys, and session verification
  - name: Funds
    description: Donor-advised fund lifecycle
  - name: Donations
    description: Donation pledges, supported assets, and impact totals
  - name: Portfolios
    description: Investment portfolio catalog
  - name: Nonprofit Organizations
    description: Nonprofit lookup, subprojects, and missing-org intake
  - name: Grant Transfers
    description: Grant and entity transfers
  - name: Collaboration
    description: Collaborator recommendations and fund collaboration
  - name: Activity
    description: Public and scoped activity feeds
paths:
  /v1/orgs/counts:
    get:
      tags:
        - Nonprofit Organizations
      summary: Get organization counts by NTEE major code
      description: |2-

            Returns the number of organizations associated with each requested NTEE major code.
            Each count matches the total number of results from the organization search filtered by that code,
            using the same default public visibility rules. Provide nteeMajorCodes as a comma-separated list. An asOf
            timestamp indicates when the counts were computed.
            
      operationId: OrgsController_countOrgsByNteeCode_v1
      parameters:
        - name: nteeMajorCodes
          required: true
          in: query
          description: Comma-separated list of NTEE Major Codes to count organizations for
          schema:
            example: A,B,C
            type: string
      responses:
        '200':
          description: Per-code organization counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgNteeCountsResponseDto'
components:
  schemas:
    OrgNteeCountsResponseDto:
      type: object
      properties:
        counts:
          description: One entry per requested NTEE code
          type: array
          items:
            $ref: '#/components/schemas/OrgNteeCountDto'
        asOf:
          type: string
          description: ISO-8601 timestamp the counts were computed at
          example: '2026-07-20T00:00:00.000Z'
      required:
        - counts
        - asOf
    OrgNteeCountDto:
      type: object
      properties:
        nteeCode:
          type: string
          description: The NTEE major code the count is for
          example: A
        orgCount:
          type: number
          description: >-
            Number of organizations matching this NTEE code under public search
            visibility
          example: 123456
      required:
        - nteeCode
        - orgCount

````