---
title: "Build chart token for one solar plane"
method: GET
path: "/{apikey}/chart/{lat}/{lon}/{dec1}/{az1}/{kwp1}"
tags: ["Chart", "Professional"]
---

# Build chart token for one solar plane

`GET /{apikey}/chart/{lat}/{lon}/{dec1}/{az1}/{kwp1}`

## Request

- Base URL: `https://api.forecast.solar` (the document declares no server; this is the origin it was published from)
- URL: `https://api.forecast.solar/{apikey}/chart/{lat}/{lon}/{dec1}/{az1}/{kwp1}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/forecast/apis/forecast-solar/docs/:apikey/chart/:lat/:lon/:dec1/:az1/:kwp1/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `apikey` string, required
- `lat` number, float, required
- `lon` number, float, required
- `dec1` number, float, required
- `az1` number, float, required
- `kwp1` number, float, required

## Headers

- `X-Delimiter` string
- `X-Separator` string

## Response `200`

OK

- ResponseBuildChartToken: Build chart token
  - `result` DatasetChartToken: Definition of a chart
    - `token` string: Unique chart token
    - `url` string: URL for chart javascript
    - `tag` string: HTML tag for chart javascript
  - `message` MessageOk
    - `code` integer
    - `type` string
    - `text` string

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/forecast/apis/forecast-solar.md) - [All operations](https://skmtc.dev/forecast/apis/forecast-solar/llms.txt) - [OpenAPI document](https://skmtc.dev/forecast/apis/forecast-solar/revisions/2e40b595ffd2?raw)
