Grid Status CSV Exports API

Bulk per-day CSV export files on S3.

Operations 2

GET /csv-exports/{dataset_id}/{export_date} Generate a presigned S3 URL for a bulk export file #
GET /csv-exports/{dataset_id} List available bulk export files for a dataset #

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/gridstatus:gridstatus-csv-exports-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

gridstatus-csv-exports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Grid Status CSV Exports API
  version: 1.3.0
servers:
- url: https://api.gridstatus.io/v1
tags:
- name: CSV Exports
paths:
  /csv-exports/{dataset_id}/{export_date}:
    get:
      tags:
      - CSV Exports
      summary: Generate a presigned S3 URL for a bulk export file
      description: 'Return a time-limited presigned URL for a bulk export object on S3.


        Caller supplies dataset id, date, and (optionally) file type; the server

        constructs the S3 key per the layout documented in

        `gitbook/bulk-csv-download/folder-structure.md`.'
      operationId: get_export_presigned_url_v1_csv_exports__dataset_id___export_date__get
      parameters:
      - name: dataset_id
        in: path
        required: true
        schema:
          type: string
          description: Dataset id, e.g. `caiso_lmp_day_ahead_hourly`.
          title: Dataset Id
        description: Dataset id, e.g. `caiso_lmp_day_ahead_hourly`.
      - name: export_date
        in: path
        required: true
        schema:
          type: string
          format: date
          description: ISO 8601 date of the partition, e.g. `2025-03-14`.
          title: Export Date
        description: ISO 8601 date of the partition, e.g. `2025-03-14`.
      - name: file_type
        in: query
        required: false
        schema:
          const: csv
          type: string
          description: File format. Currently only `csv` (gzipped) is available.
          default: csv
          title: File Type
        description: File format. Currently only `csv` (gzipped) is available.
      - name: api_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key for authentication (query)
          title: Api Key
        description: API key for authentication (query)
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key for authentication (header)
          title: X-Api-Key
        description: API key for authentication (header)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresignedUrlResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /csv-exports/{dataset_id}:
    get:
      tags:
      - CSV Exports
      summary: List available bulk export files for a dataset
      description: 'List the per-day export files available on S3 for a dataset.


        Each entry includes the partition date, object size, and last-modified

        timestamp; combine with `GET /{dataset_id}/{date}` to fetch a presigned

        URL for any specific file.'
      operationId: list_dataset_exports_v1_csv_exports__dataset_id__get
      parameters:
      - name: dataset_id
        in: path
        required: true
        schema:
          type: string
          description: Dataset id, e.g. `caiso_lmp_day_ahead_hourly`.
          title: Dataset Id
        description: Dataset id, e.g. `caiso_lmp_day_ahead_hourly`.
      - name: year
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 9999
            minimum: 1900
          - type: 'null'
          description: Optional. Restrict the listing to a single year.
          title: Year
        description: Optional. Restrict the listing to a single year.
      - name: month
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 12
            minimum: 1
          - type: 'null'
          description: Optional. Restrict the listing to a single month. Requires `year`.
          title: Month
        description: Optional. Restrict the listing to a single month. Requires `year`.
      - name: file_type
        in: query
        required: false
        schema:
          const: csv
          type: string
          description: File format to list. Currently only `csv` (gzipped).
          default: csv
          title: File Type
        description: File format to list. Currently only `csv` (gzipped).
      - name: api_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key for authentication (query)
          title: Api Key
        description: API key for authentication (query)
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key for authentication (header)
          title: X-Api-Key
        description: API key for authentication (header)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetExportsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PresignedUrlResponse:
      properties:
        presigned_url:
          type: string
          title: Presigned Url
          description: Time-limited HTTPS URL to download the requested file.
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
          description: Number of seconds the presigned URL is valid for.
        bucket:
          type: string
          title: Bucket
          description: S3 bucket the object lives in.
        object_key:
          type: string
          title: Object Key
          description: S3 object key the URL points to.
      type: object
      required:
      - presigned_url
      - expires_in_seconds
      - bucket
      - object_key
      title: PresignedUrlResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    DatasetExportFile:
      properties:
        date:
          type: string
          format: date
          title: Date
          description: Partition date for this file.
        size_bytes:
          type: integer
          title: Size Bytes
          description: Object size in bytes.
        last_modified:
          type: string
          format: date-time
          title: Last Modified
          description: When the object was last written by the export pipeline.
      type: object
      required:
      - date
      - size_bytes
      - last_modified
      title: DatasetExportFile
    DatasetExportsListResponse:
      properties:
        dataset_id:
          type: string
          title: Dataset Id
        file_type:
          type: string
          const: csv
          title: File Type
        count:
          type: integer
          title: Count
        files:
          items:
            $ref: '#/components/schemas/DatasetExportFile'
          type: array
          title: Files
      type: object
      required:
      - dataset_id
      - file_type
      - count
      - files
      title: DatasetExportsListResponse
externalDocs:
  description: 'GridStatus documentation. Human docs: https://docs.gridstatus.io/developers. Ask a natural-language question (RAG search): append a URL-encoded question to https://docs.gridstatus.io/?ask='
  url: https://docs.gridstatus.io/llms.txt
x-tagGroups:
- name: API Endpoints
  tags:
  - API Info
  - Block Pricing Data
  - Dataset Metadata
  - Query Data
  - Dataset Updates
  - Reports
x-rag-search:
  description: Natural-language question answering over the GridStatus documentation. Substitute a URL-encoded question for {question}.
  url_template: https://docs.gridstatus.io/?ask={question}
  llms_txt: https://docs.gridstatus.io/llms.txt
x-provenance:
  method: harvested
  publisher: Grid Status
  source: https://api.gridstatus.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)