Field Forecasts API

API change history

This API offers users the ability to forecast crop development which can help to inform crop management, profitability and food sourcing decisions. The data provided covers the past two weeks to allow the assessment of the current state of crops or grass, and a nine-day forecast. Together they inform the decision-making based on the impact the weather is having on the crop development.

  • Daily temperature data - minimum, maximum and average
  • Daily rainfall (precipitation in mm)
  • Daily humidity
  • Daily wind speed.

Values for whole days are given as 00:00 GMT for the relevant day. Forecasts given are the most recent available for the location; the date-time of model execution is provided for each forecast parameter.

forecasts

Retrieve field forecasts associated to a field identifer.

Try it

Request

Request URL

Request parameters

  • string

Request headers

  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Responses

200 OK

Search location matches a field and an identifier is returned.

Representations

{
  "_links": {
    "ag:api:field-facts": {
      "href": "https://api.agrimetrics.co.uk/field-facts/FIELD_ID"
    },
    "ag:api:field-trends": {
      "href": "https://api.agrimetrics.co.uk/field-trends/FIELD_ID"
    },
    "ag:api:field-forecasts": {
      "href": "https://api.agrimetrics.co.uk/field-forecasts/FIELD_ID"
    },
    "self": {
      "href": "https://api.agrimetrics.co.uk/field-forecasts/FIELD_ID"
    }
  },
  "@context": "https://api.agrimetrics.co.uk/field-forecasts/context",
  "@id": "https://data.agrimetrics.co.uk/fields/FIELD_ID",
  "hasDailyMeanWindSpeed": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/wind-speed",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/metres-per-second",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 5.9,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasDailyMeanRelativeHumidity": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/relative-humidity",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/percentage",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 85.7,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasDailyMeanTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/mean-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 10.1,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasDailyMaximumTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/max-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 12.6,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasDailyMinimumTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/min-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 7.9,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasDailyTotalRainfall": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/rainfall",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/millimetre",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 4.1,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyMeanWindSpeed": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/wind-speed",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/metres-per-second",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 5.9,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyMeanRelativeHumidity": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/relative-humidity",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/percentage",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 85.7,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyMeanTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/mean-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 10.1,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyMaximumTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/max-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 12.6,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyMinimumTemperature": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/min-temperature",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/celsius",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 7.9,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  },
  "hasForecastDailyTotalRainfall": {
    "@type": "Dataseries",
    "hasDimension": "http://data.agrimetrics.co.uk/dimensions/rainfall",
    "hasFrequency": "http://data.agrimetrics.co.uk/frequencies/daily",
    "hasUnit": "http://data.agrimetrics.co.uk/units/millimetre",
    "generatedAtTime": "2018-08-06T19:37:23Z",
    "hasDatapoint": [
      {
        "@type": "Datapoint",
        "value": 4.1,
        "dateTime": "2018-03-28T00:00:00Z"
      }
    ]
  }
}
{
  "type": "object",
  "properties": {
    "_links": {
      "type": "object",
      "description": "HAL links to other Field APIs for this field.",
      "properties": {
        "ag:api:field-facts": {
          "type": "object",
          "description": "Link to Field Fact information for this field.",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri",
              "example": "https://api.agrimetrics.co.uk/field-facts/FIELD_ID"
            }
          }
        },
        "ag:api:field-trends": {
          "type": "object",
          "description": "Link to Field Trends information for this field.",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri",
              "example": "https://api.agrimetrics.co.uk/field-trends/FIELD_ID"
            }
          }
        },
        "ag:api:field-forecasts": {
          "type": "object",
          "description": "Link to Field Forecasts information for this field.",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri",
              "example": "https://api.agrimetrics.co.uk/field-forecasts/FIELD_ID"
            }
          }
        },
        "self": {
          "type": "object",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri",
              "example": "https://api.agrimetrics.co.uk/field-forecasts/FIELD_ID"
            }
          }
        }
      }
    },
    "@context": {
      "type": "string",
      "description": "Field Forecasts JSON-LD context",
      "format": "url",
      "example": "https://api.agrimetrics.co.uk/field-forecasts/context"
    },
    "@id": {
      "type": "string",
      "description": "Unique identifier for this field, assigned by Agrimetrics.",
      "format": "url",
      "example": "https://data.agrimetrics.co.uk/fields/FIELD_ID"
    },
    "hasDailyMeanWindSpeed": {
      "type": "object",
      "description": "Daily values for windspeed, in metres per second, based on hourly observations and averaged over the 24-hour period from 00:00 to 23:59.  Values listed from 16 days ago up to 2 days ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (wind speed).",
          "example": "http://data.agrimetrics.co.uk/dimensions/wind-speed"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (m/s).",
          "example": "http://data.agrimetrics.co.uk/units/metres-per-second"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries.",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily wind speed.",
                "example": 5.9
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasDailyMeanRelativeHumidity": {
      "type": "object",
      "description": "Daily values for screen relative humidity, based on hourly observations and averaged over the 24-hour period from 00:00 to 23:59.  Values listed from 16 days ago up to 2 days ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (screen relative humidity).",
          "example": "http://data.agrimetrics.co.uk/dimensions/relative-humidity"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (percentage).",
          "example": "http://data.agrimetrics.co.uk/units/percentage"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily relative humidity.",
                "example": 85.7
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasDailyMeanTemperature": {
      "type": "object",
      "description": "Daily average of the hourly air temperature observations over the 24-hour period from 00:00 to 23:59.  Values listed from 16 days ago up to 2 days ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (mean temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/mean-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily mean temperature.",
                "example": 10.1
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasDailyMaximumTemperature": {
      "type": "object",
      "description": "Daily maximum of the hourly air temperature observations over the 24-hour period from 00:00 to 23:59.  Values listed from 16 days ago up to 2 days ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (maximum temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/max-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily maximum temperature.",
                "example": 12.6
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasDailyMinimumTemperature": {
      "type": "object",
      "description": "Daily minimum of the hourly air temperature observations over the 24-hour period from 00:00 to 23:59.  Values listed from 16 days ago up to 2 days ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (minimum temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/min-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily minimum temperature.",
                "example": 7.9
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasDailyTotalRainfall": {
      "type": "object",
      "description": "Daily total of quarter-hourly raingauge values over the 24-hour period from 00:00 to 23:59.  These values exist for raingauge sites in England only; where there is no local raingauge site the nearest will be used, up to 60km away.  Values listed from 16 days ago up to 1 day ago.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (rainfall).",
          "example": "http://data.agrimetrics.co.uk/dimensions/rainfall"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (millimetres).",
          "example": "http://data.agrimetrics.co.uk/units/millimetre"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Daily total rainfall.",
                "example": 4.1
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date of the datapoint.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyMeanWindSpeed": {
      "type": "object",
      "description": "Forecast daily values for windspeed, in metres per second, averaged over the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (wind speed).",
          "example": "http://data.agrimetrics.co.uk/dimensions/wind-speed"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (m/s).",
          "example": "http://data.agrimetrics.co.uk/units/metres-per-second"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries.",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast wind speed for the day.",
                "example": 5.9
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyMeanRelativeHumidity": {
      "type": "object",
      "description": "Forecast daily values for relative humidity, averaged over the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (relative humidity).",
          "example": "http://data.agrimetrics.co.uk/dimensions/relative-humidity"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (percentage).",
          "example": "http://data.agrimetrics.co.uk/units/percentage"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast relative humidity for the day.",
                "example": 85.7
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyMeanTemperature": {
      "type": "object",
      "description": "Forecast daily average air temperature, averaged over the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (mean temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/mean-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast mean temperature for the day.",
                "example": 10.1
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyMaximumTemperature": {
      "type": "object",
      "description": "Forecast maximum air temperature in the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (maximum temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/max-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast maximum temperature for the day.",
                "example": 12.6
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyMinimumTemperature": {
      "type": "object",
      "description": "Forecast minimum air temperature in the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (minimum temperature).",
          "example": "http://data.agrimetrics.co.uk/dimensions/min-temperature"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (degrees Celsius).",
          "example": "http://data.agrimetrics.co.uk/units/celsius"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast minimum temperature for the day.",
                "example": 7.9
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    },
    "hasForecastDailyTotalRainfall": {
      "type": "object",
      "description": "Forecast total amount of rainfall in the 24-hour period from 00:00 to 00:00.  Values listed from today up to 9 days ahead.  The values are presented as total millimetres of rainfall, reflecting a combination of the probability of rain and the anticipated heaviness and duration of the rainfall.",
      "properties": {
        "@type": {
          "type": "string",
          "description": "Ontology type.",
          "example": "Dataseries"
        },
        "hasDimension": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries dimension (rainfall).",
          "example": "http://data.agrimetrics.co.uk/dimensions/rainfall"
        },
        "hasFrequency": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries frequency (daily).",
          "example": "http://data.agrimetrics.co.uk/frequencies/daily"
        },
        "hasUnit": {
          "type": "string",
          "format": "uri",
          "description": "Dataseries unit (millimetres).",
          "example": "http://data.agrimetrics.co.uk/units/millimetre"
        },
        "generatedAtTime": {
          "type": "string",
          "format": "date",
          "description": "Date and time that the forecast was computed.",
          "example": "2018-08-06T19:37:23Z"
        },
        "hasDatapoint": {
          "type": "array",
          "description": "All datapoints of the dataseries",
          "items": {
            "type": "object",
            "description": "Datapoint date and value.",
            "properties": {
              "@type": {
                "type": "string",
                "description": "Ontology type.",
                "example": "Datapoint"
              },
              "value": {
                "type": "number",
                "description": "Forecast rainfall for the day.",
                "example": 4.1
              },
              "dateTime": {
                "type": "string",
                "format": "date",
                "description": "Date the forecast is for.",
                "example": "2018-03-28T00:00:00Z"
              }
            }
          }
        }
      }
    }
  }
}

400 Bad Request

Missing id parameter.

Representations

{
  "statusCode": 0.0,
  "message": "string"
}
{
  "type": "object",
  "properties": {
    "statusCode": {
      "type": "number",
      "description": "HTTP error code"
    },
    "message": {
      "type": "string",
      "description": "Developer friendly error message"
    }
  }
}

404 Not Found

No field with given identifier were found.

Representations

{
  "statusCode": 0.0,
  "message": "string"
}
{
  "type": "object",
  "properties": {
    "statusCode": {
      "type": "number",
      "description": "HTTP error code"
    },
    "message": {
      "type": "string",
      "description": "Developer friendly error message"
    }
  }
}

Code samples

@ECHO OFF

curl -v -X GET "https://api.agrimetrics.co.uk/field-forecasts/{id}"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            var uri = "https://api.agrimetrics.co.uk/field-forecasts/{id}?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.agrimetrics.co.uk/field-forecasts/{id}");


            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://api.agrimetrics.co.uk/field-forecasts/{id}?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.agrimetrics.co.uk/field-forecasts/{id}";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.agrimetrics.co.uk/field-forecasts/{id}');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('api.agrimetrics.co.uk')
    conn.request("GET", "/field-forecasts/{id}?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('api.agrimetrics.co.uk')
    conn.request("GET", "/field-forecasts/{id}?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.agrimetrics.co.uk/field-forecasts/{id}')


request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body