DVIDS API Unit API

Search and retrieve military units

Operations 1

GET /unit/search Search units #

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/dvids-api-unit-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

dvids-api-unit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DVIDS Asset Unit API
  description: The Defense Visual Information Distribution Service (DVIDS) API provides programmatic access to U.S. military news, photos, video, audio, publications, units, and live events. The API is implemented as JSON over HTTP and requires a public API key.
  version: v2
  contact:
    name: DVIDS
    url: https://api.dvidshub.net/
servers:
- url: https://api.dvidshub.net
  description: DVIDS API
security:
- apiKey: []
tags:
- name: Unit
  description: Search and retrieve military units
paths:
  /unit/search:
    get:
      operationId: searchUnits
      summary: Search units
      description: Search the DVIDS unit directory by name, abbreviation, branch, or ID.
      tags:
      - Unit
      parameters:
      - name: api_key
        in: query
        required: true
        schema:
          type: string
      - name: unit_id
        in: query
        schema:
          type: integer
      - name: branch
        in: query
        schema:
          type: string
      - name: unit_abbrev
        in: query
        schema:
          type: string
      - name: unit_name
        in: query
        schema:
          type: string
      - name: max_results
        in: query
        schema:
          type: integer
      - name: sortdir
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnitListResponse'
        '400':
          description: Invalid parameters
        '403':
          description: Missing or invalid API key
components:
  schemas:
    UnitListResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            type: string
        page_info:
          $ref: '#/components/schemas/PageInfo'
        results:
          type: array
          items:
            $ref: '#/components/schemas/Unit'
    Unit:
      type: object
      properties:
        unit_id:
          type: integer
        unit_name:
          type: string
        unit_abbrev:
          type: string
        branch:
          type: string
    PageInfo:
      type: object
      properties:
        total_results:
          type: integer
        results_per_page:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: api_key
externalDocs:
  description: DVIDS API Documentation
  url: https://api.dvidshub.net/docs