General Services Administration Agencies API

The Agencies API from General Services Administration — 1 operation(s) for agencies.

Operations 1

GET /agencies/{agency_name}/reports/{report_name}/data Analytic Reports filtered by agency #

Documentation

Specifications

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/general-services-administration-agencies-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

general-services-administration-agencies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  title: Analytics Agencies API
  description: This program helps government agencies understand how people find, access, and use government services online. The program does not track individuals, and anonymizes the IP addresses of visitors.
servers:
- url: https://api.gsa.gov/analytics/dap/v2
security:
- ApiKeyAuth: []
tags:
- name: Agencies
paths:
  /agencies/{agency_name}/reports/{report_name}/data:
    get:
      summary: Analytic Reports filtered by agency
      description: this endpoint returns analytic reports that are filtered by agency.
      parameters:
      - name: report_name
        in: path
        description: Name of the report
        required: true
        schema:
          type: string
          format: string
      - name: agency_name
        in: path
        description: Name of the agency
        required: true
        schema:
          type: string
          format: string
      - $ref: '#/components/parameters/limit'
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/after'
      - $ref: '#/components/parameters/before'
      responses:
        '200':
          description: A JSON array of reports
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Reports'
        default:
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Agencies
      operationId: getAgenciesByAgencyNameReportsByReportNameData
      x-operation-id-source: derived
components:
  parameters:
    after:
      name: after
      in: query
      description: Limit the results to in dates on or after the date specified. Expects YYYY-MM-DD.
      schema:
        type: integer
      required: false
    page:
      name: page
      in: query
      description: Pages through the results. If the limit is set to 1000, using page=2 will render the 1001st through 2000th data point.
      schema:
        type: integer
      required: false
    before:
      name: before
      in: query
      description: Limit the results to in dates on or before the date specified. Expects YYYY-MM-DD.
      schema:
        type: integer
      required: false
    limit:
      name: limit
      in: query
      description: Limit the number of data points that are rendered. The default is 1000 and the max is 10,000
      schema:
        type: integer
      required: false
  schemas:
    Error:
      type: object
      required:
      - message
      properties:
        message:
          type: string
        required_fields:
          type: string
        example:
          type: string
    Reports:
      type: object
      required:
      - id
      - report_name
      - report_agency
      - date
      properties:
        id:
          type: integer
          description: Generated unique identifier.
        report_name:
          type: string
          description: The name of the data point’s report.
        report_agency:
          type: string
          description: The name of the data point’s agency.
        date:
          type: string
          description: The date the data in the data point corresponds to.
        active_visitors:
          type: integer
        avg_session_duration:
          type: number
        bounce_rate:
          type: number
        browser:
          type: string
        city:
          type: string
        country:
          type: string
        device:
          type: string
          description: the type of device of the visitor.
        domain:
          type: string
        event_label:
          type: string
        file_name:
          type: string
        hour:
          type: string
        landing_page:
          type: string
        language:
          type: string
        language_code:
          type: string
        mobile_device:
          type: string
        os:
          type: string
          description: the operating system of the visitor, i.e. Windows
        os_version:
          type: string
          description: the operating system version of the visitor, i.e. Vista
        page:
          type: string
          description: the path of the page visited
        page_title:
          type: string
        pageviews:
          type: integer
        pageviews_per_session:
          type: integer
        screen_resolution:
          type: string
        session_default_channel_group:
          type: string
        source:
          type: string
        total_events:
          type: integer
        users:
          type: integer
        visits:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY