NationGraph Metadata API

The Metadata API from NationGraph — 1 operation(s) for metadata.

Operations 1

GET /api/v3/metadata/{entity_id} Get Entity Metadata #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/nationgraph-metadata-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

nationgraph-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nationgraph Metadata API
  version: 0.2.36
tags:
- name: Metadata
paths:
  /api/v3/metadata/{entity_id}:
    get:
      tags:
      - Metadata
      summary: Get Entity Metadata
      description: 'Get the metadata for an institution by its entity ID.


        Args:

        entity_id: The unique identifier for the institution


        Returns:

        Dict containing:

        - overview: Text description of the institution

        - homepage_url: URL of the institution''s homepage

        - latitude: Latitude coordinate (float or None)

        - longitude: Longitude coordinate (float or None)

        - population: Population count (int or None)

        - students: Number of students in the district (int or None)

        - teachers: Number of teachers in the district (int or None)

        - total_schools: Number of schools in the district (int or None)

        - district_type: The type of school district we have (string or None)

        - federal_grants: The amount of money the school district is granted yearly by the federal government

        - state_grants: The amount of money the school district is granted yearly by the state government

        - local_grants: The amount of money the school district is granted yearly by the local government

        - interest_expenditure: The amount of money the school district spends yearly on paying interest

        - operations_expenditure: The amount of money the school district spends yearly on its operations

        - instructional_expenditure: The amount of money the school district spends yearly on its instructional costs

        - administration_expenditure: The amount of money the school district spends yearly on administration

        - phone_number: A phone number to contact the school district

        - locale: A short description of the area that the school district is in (suburban, urban, rural, town, etc.)

        - student_and_staff_support_expenditure: The amount of money the school district spends yearly on student and staff support and resources

        - total_grants: The total amount of grant money the school district receives yearly

        - total_expenditures: The total amount of money the school district spends yearly across all expenses


        Raises:

        HTTPException: If there''s an error retrieving the data'
      operationId: get_entity_metadata_api_v3_metadata__entity_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          title: Entity Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  anyOf:
                  - type: string
                  - type: number
                  - type: integer
                  - type: 'null'
                title: Response Get Entity Metadata Api V3 Metadata  Entity Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer