---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.2
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/reference/GetForecast.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/reference/GetForecast.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# GetForecast
Returns the generated forecast for impressions, clicks and expenses by its ID.

{% note alert %}

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions 4 and 5, see the [Migration guide](https://yandex.com/dev/direct/doc/migration/concepts/methods.md).

{% endnote %}


The [GetForecast (Live)](https://yandex.com/dev/direct/doc/dg-v4/en/live/GetForecast.md) version also exists for this method.

For information about using the report, see the section [Подбор ставок](https://yandex.com/dev/direct/doc/dg-v4/en/concepts/choice-rates.md).


## Input data {#input}

The input data structure in JSON is shown below.

```javascript
{
   "method": "GetForecast",
   "param": (int)
}
```

The `param` parameter specifies the ID that was obtained from the response to the [CreateNewForecast](https://yandex.com/dev/direct/doc/dg-v4/en/reference/CreateNewForecast.md) method. You can also get the ID using the [GetForecastList](https://yandex.com/dev/direct/doc/dg-v4/en/reference/GetForecastList.md) method.


## Output data {#output}

The output data structure in JSON is shown below.

```javascript
{
   "data": {
      /* GetForecastInfo */
      "Phrases": [
         {  /* BannerPhraseInfo */
            "Phrase": (string),
            "IsRubric": (string),
            "Min": (float),
            "Max": (float),
            "PremiumMin": (float),
            "PremiumMax": (float),
            "Shows": (int),
            "Clicks": (int),
            "FirstPlaceClicks": (int),
            "PremiumClicks": (int),
            "CTR": (float),
            "FirstPlaceCTR": (float),
            "PremiumCTR": (float)
         }
         ...
      ],
      "Common": {
         /* ForecastCommonInfo */
         "Geo": (string),
         "Min": (float),
         "Max": (float),
         "PremiumMin": (float)
         "Shows": (int),
         "Clicks": (int),
         "FirstPlaceClicks": (int),
         "PremiumClicks": (int),
      }
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
||

||
**<sub >GetForecastInfo object</sub>**
||
||
`Phrases`
|
Array of `BannerPhraseInfo` objects. Each object contains a forecast for a single keyword that was specified when generating the report ([CreateNewForecast](https://yandex.com/dev/direct/doc/dg-v4/en/reference/CreateNewForecast.md) method).
||
||
`Common`
|
The `ForecastCommonInfo` object with a cumulative forecast for all keywords.
||

||
**<sub >BannerPhraseInfo object</sub>**
||
||
`Phrase`
|
The keyword phrase that the forecast was generated for.
||
||
`IsRubric`
|
Whether the keyword is a Yandex Catalog category. Always contains the value No.
||
||
`Min`
|
Weighted average CPC, in Yandex units, for the lower block at the time when the forecast was made.
||
||
`Max`
|
Weighted average CPC, in Yandex units, for the top position in the lower block at the time when the forecast was made.
||
||
`PremiumMin`
|
Weighted average CPC, in Yandex units, for Premium Placement at the time when the forecast was made.
||
||
`PremiumMax`
|
Weighted average CPC, in Yandex units, for the top position in Premium Placement at the time when the forecast was made.
||
||
`Shows`
|
Possible number of impressions for this keyword over the past month.
||
||
`Clicks`
|
Possible number of clicks on an ad in the lower block (other than the top position) over the past month.
||
||
`FirstPlaceClicks`
|
Possible number of clicks on an ad in the top position in the lower block over the past month.
||
||
`PremiumClicks`
|
Possible number of clicks on an ad in Premium Placement over the past month.
||
||
`CTR`
|
CTR when displayed in the lower block, as a percentage. Calculated using the formula:

`Clicks/Shows * 100`
||
||
`FirstPlaceCTR`
|
CTR when displayed in the top position in the lower block. Calculated using the formula:

`FirstPlaceClicks/Shows * 100`
||
||
`PremiumCTR`
|
CTR when displayed in Premium Placement. Calculated using the formula:

`PremiumClicks/Shows * 100`
||

||
**<sub >ForecastCommonInfo object</sub>**
||
||
`Geo`
|
List of regions shown when generating a report ([CreateNewForecast](https://yandex.com/dev/direct/doc/dg-v4/en/reference/CreateNewForecast.md) method).
||
||
`Min`
|
Cost of clicks in Yandex units when displayed in the lower block (other than the top position) for all specified keywords combined.
||
||
`Max`
|
Cost of clicks in Yandex units when displayed in the top position in the lower block for all specified keywords combined.
||
||
`PremiumMin`
|
Cost of clicks in Yandex units when displayed in Premium Placement for all specified keywords combined.
||
||
`Shows`
|
Possible number of impressions for all keywords combined.
||
||
`Clicks`
|
Possible number of clicks in the lower block (other than the top position) for all specified keywords combined.
||
||
`FirstPlaceClicks`
|
Possible number of clicks in the top position in the lower block for all specified keywords combined.
||
||
`PremiumClicks`
|
Possible number of clicks in Premium Placement for all specified keywords combined.
||
|#

