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

# Get Time Series data

## OpenAPI

````json GET /ts/data-request/{requestId}
{
  "openapi": "3.0.3",
  "info": {
    "title": "Solargis API documentation",
    "version": "2.1.1",
    "description": "Explore Solargis API endpoints and learn how to retrieve TimeSeries, TMY, and other data from your Solargis subscriptions."
  },
  "servers": [
    {
      "url": "https://api.solargis.com",
      "description": "TimeSeries and TMY API endpoint"
    }
  ],
  "tags": [
    {
      "name": "Solargis Time Series API",
      "description": "Endpoints for Time Series data requests"
    },
    {
      "name": "Solargis TMY API",
      "description": "Endpoints for TMY data requests"
    },
    {
      "name": "Subscription details API",
      "description": "Get information about your subscription"
    }
  ],
  "paths": {
    "/ts/data-request/{requestId}": {
      "get": {
        "tags": [
          "Solargis Time Series API"
        ],
        "summary": "Get Time Series data",
        "security": [
          {
            "TimeSeriesToken": []
          }
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": "true",
            "description": "Unique identifier returned by the data request POST endpoint.",
            "schema": {
              "type": "string"
            },
            "example": "BeHpHTBE8y"
          }
        ],
        "responses": {
          "200": {
            "description": "TimeSeries data retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeSeriesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid authorization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidToken"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/BadRequestId"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TimeSeriesResponse": {
        "type": "object",
        "required": [
          "status",
          "statusCode",
          "statusMessage",
          "downloadUrl"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success",
              "error",
              "pending"
            ],
            "description": "Current processing state of the data request.",
            "example": "success"
          },
          "statusCode": {
            "type": "string",
            "pattern": "^SG2-\\d{5}$",
            "description": "Machine-readable Solargis status code for the request result.",
            "example": "SG2-20000"
          },
          "statusMessage": {
            "type": "string",
            "description": "Human-readable message describing the request result.",
            "example": "Request has been processed."
          },
          "downloadUrl": {
            "type": "string",
            "format": "uri",
            "description": "Pre-signed URL to download the output data file.",
            "example": "https://sg2-base-api-prod-apidatabucketa8a36..."
          }
        }
      },
      "InvalidToken": {
        "type": "object",
        "description": "Invalid authorization",
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable error code indicating the authentication failure reason.",
            "example": "token.invalid"
          }
        }
      },
      "TSerror500": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable error code indicating the reason for the failure.",
            "example": "api.data_request.not_found"
          }
        }
      }
    },
    "responses": {
      "BadRequestId": {
        "description": "Bad requestId",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/TSerror500"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "TimeSeriesToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter your Solargis TimeSeries Bearer token.  Example: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n"
      }
    }
  }
}
````

