Integration setup - get the Time Series requestId

Prev Next
Post
/ts-integration/data-request

Request type:

POST

URL:

https://api.solargis.com/ts-integration/data-request/ 

Authorization:

Bearer {API token}

Body parameters:

See the specification below

In this guide, we will provide information about how to set up the Time Series API integration to obtain the requestId required for obtaining the location data. The endpoint provided here is for integration purposes only and does not allow you to download location data from your live Solargis account.

Once you obtain the integration requestId, you can proceed to get the sample location data to understand the response.

Key points to remember before you proceed:

  • Our Sales team must create an integration account for you. Contact them if you do not have one already. 

  • This integration endpoint shows how to set up the API request for Time Series API subscription to obtain the requestId.

  • You will need to generate an API token to authenticate calls to the integration account.

  • Calls to the integration API endpoint are free of charge.

  • You can test the endpoint in the API console to the right. Learn how to use the console in the Using the API console guide.

  • The request parameters can not be changed for the API integration call to work. Amending the request parameters will result in an error.

Integration setup request parameters

When setting up your integration and executing the API calls, use the API parameters provided below to prevent errors. 

To test the request for Time Series API in the API console to the right, enter the generated API token in the console and amend the request parameters according to the following table:

Subscription type

Integration request parameters

Solargis Time Series Pro 

Change the following parameters in the API console:

  •  "compressOutput": false

Security
HTTP
Type bearer

Enter your Solargis TimeSeries Bearer token. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Body parameters
{
  "site": {
    "latitude": 48.88375,
    "longitude": 20.159472,
    "siteName": "Basic example Site"
  },
  "timeStep": "PT15M",
  "columns": [
    "GHI",
    "DNI",
    "DIF",
    "GHI_NOSHD",
    "DNI_NOSHD",
    "DIF_NOSHD",
    "GTI_NOSHD",
    "GTI",
    "CI_FLAG",
    "SUN_ELEVATION",
    "SUN_AZIMUTH",
    "PANEL_AZIMUTH",
    "PANEL_TILT",
    "PANEL_INC",
    "TEMP",
    "WS",
    "WD",
    "WG",
    "RH",
    "AP",
    "PWAT",
    "PREC",
    "TD",
    "WBT",
    "SDWE",
    "SFWE"
  ],
  "compressOutput": false,
  "fromDate": "AUTODETECT",
  "toDate": "2023-12-31",
  "outputFormat": "SOLARGIS_JSON",
  "timeAlignment": "CENTER",
  "utcOffset": "+01:00",
  "terrainShading": true,
  "environment": {
    "surfaceAlbedo": 0.12,
    "horizon": {
      "azimuth": [
        0,
        37.5,
        60,
        82.5,
        105,
        127.5,
        150,
        172.5,
        195,
        217.5,
        240,
        262.5,
        285,
        307.5,
        330,
        352.5
      ],
      "height": [
        0.705,
        1.0588235,
        1.058894,
        1.428,
        0.70588764,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ]
    }
  },
  "gtiConfiguration": {
    "layout": {
      "mounting": {
        "type": "FIXED_ONE_ANGLE",
        "tilt": 39
      }
    }
  },
  "fileLabel": "Integration_example"
}
object
site
object Required
latitude
number (double)
Example48.88375
longitude
number (double)
Example20.159472
siteName
string
ExampleBasic example Site
timeStep
string Required
Valid values[ "PT15M" ]
ExamplePT15M
columns
Array of string Required
Example[ "GHI", "DNI", "DIF", "GHI_NOSHD", "DNI_NOSHD", "DIF_NOSHD", "GTI_NOSHD", "GTI", "CI_FLAG", "SUN_ELEVATION", "SUN_AZIMUTH", "PANEL_AZIMUTH", "PANEL_TILT", "PANEL_INC", "TEMP", "WS", "WD", "WG", "RH", "AP", "PWAT", "PREC", "TD", "WBT", "SDWE", "SFWE" ]
string
Valid values[ "GHI", "DNI", "DIF", "GHI_NOSHD", "DNI_NOSHD", "DIF_NOSHD", "GTI_NOSHD", "GTI", "CI_FLAG", "SUN_ELEVATION", "SUN_AZIMUTH", "PANEL_AZIMUTH", "PANEL_TILT", "PANEL_INC", "TEMP", "WS", "WD", "WG", "RH", "AP", "PWAT", "PREC", "TD", "WBT", "SDWE", "SFWE", "UVA", "UVB", "PAR", "KT", "KC", "PM2P5", "PM10" ]
outputFormat
string Required
Valid values[ "SOLARGIS_JSON" ]
ExampleSOLARGIS_JSON
compressOutput
boolean
Defaultfalse
Examplefalse
fromDate
string (string)

Start date in ISO 8601 format (YYYY-MM-DD). You can also use the keyword AUTODETECT to automatically select the earliest available start date.

Pattern^(AUTODETECT|\d{4}-\d{2}-\d{2})$
ExampleAUTODETECT
toDate

End date in ISO 8601 format (YYYY-MM-DD). You can also use LAST_MONTH or LAST_YEAR for relative date selection.

Example2023-12-31
AnyOf
string
string
Valid values[ "LAST_MONTH", "LAST_YEAR" ]
string (date)
string
timeAlignment
string
Valid values[ "CENTER", "LEFT", "RIGHT" ]
Default"CENTER"
ExampleCENTER
utcOffset
string
Pattern^[+-]\d{2}:\d{2}$
Example+01:00
terrainShading
boolean
Defaultfalse
environment
object
surfaceAlbedo

Surface albedo as a single value or array of 12 monthly values (Jan-Dec)

OneOf
number
number
Example0.12
array
array
number
horizon
object
azimuth
Array
Example[ 0.0, 37.5, 60.0, 82.5, 105.0, 127.5, 150.0, 172.5, 195.0, 217.5, 240.0, 262.5, 285.0, 307.5, 330.0, 352.5 ]
OneOf
integer
integer
number
number
height
Array
Example[ 0.705, 1.0588235, 1.058894, 1.428, 0.70588764, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]
OneOf
integer
integer
number
number
gtiConfiguration
object (gtiIntegratoinConfigurationSchema)
layout
object
mounting
OneOf
FixedOneAngleMounting
object (FixedOneAngleMounting)
type
string Required
Valid values[ "FIXED_ONE_ANGLE" ]
ExampleFIXED_ONE_ANGLE
tilt
number Required
Minimum0.0
Maximum90.0
Example39.0
TrackerOneAxisHorizontalMounting
object (TrackerOneAxisHorizontalMounting)
type
string Required
Valid values[ "TRACKER_ONE_AXIS_HORIZONTAL" ]
backtracking
boolean Required
rotationLimitEast
number Required
Minimum-180.0
Maximum0.0
Example-50.0
rotationLimitWest
number Required
Minimum0.0
Maximum180.0
Example50.0
TrackerOneAxisInclinedMounting
object (TrackerOneAxisInclinedMounting)
type
string Required
Valid values[ "TRACKER_ONE_AXIS_INCLINED" ]
axisTilt
number Required
Minimum0.0
Maximum90.0
Example30.0
backtracking
boolean Required
rotationLimitEast
number Required
Example-50.0
rotationLimitWest
number Required
Example50.0
TrackerOneAxisVerticalMounting
object (TrackerOneAxisVerticalMounting)
type
string Required
Valid values[ "TRACKER_ONE_AXIS_VERTICAL" ]
tilt
number Required
Minimum0.0
Maximum90.0
Example30.0
azimuthLimitEast
number Required
Minimum-180.0
Maximum0.0
Example-120.0
azimuthLimitWest
number Required
Minimum0.0
Maximum180.0
Example120.0
backtracking
boolean Required
TrackerTwoAxisMounting
object (TrackerTwoAxisMounting)
type
string Required
Valid values[ "TRACKER_TWO_AXIS" ]
backtracking
boolean Required
tiltLimitMin
number Required
Minimum0.0
Maximum90.0
Example10.0
tiltLimitMax
number Required
Minimum0.0
Maximum90.0
Example90.0
azimuthLimitEast
number Required
Example-90.0
azimuthLimitWest
number Required
Example90.0
fileLabel
string
Examplets_pro_site
Responses
200

RequestId retrieved

object
requestId
string
401

Invalid authorization

object

Invalid authorization

error
string
Exampletoken.invalid