# New York hourly weather forecast for the next 9 days

**Use case:** 

Hour-by-hour weather forecast for New York: temperature in C and F, precipitation for the next 1 and 6 hours, wind speed and direction, cloud cover, humidity, pressure and weather symbol, with UTC and local time. Hourly for about 2.5 days, then every 6 hours. Data from MET Norway (CC BY 4.0).

## Input

```json
{
  "cities": [
    "New York, US"
  ],
  "locations": [
    "-33.8688,151.2093",
    {
      "latitude": 64.1466,
      "longitude": -21.9426,
      "label": "Reykjavik harbour"
    }
  ],
  "useCache": true,
  "maxRetries": 3
}
```

## Output

```json
{
  "query": {
    "label": "Input",
    "format": "string"
  },
  "matchedPlace": {
    "label": "Matched place",
    "format": "string"
  },
  "timeUtc": {
    "label": "Time (UTC)",
    "format": "string"
  },
  "localTime": {
    "label": "Local time",
    "format": "string"
  },
  "temperatureC": {
    "label": "°C",
    "format": "number"
  },
  "temperatureF": {
    "label": "°F",
    "format": "number"
  },
  "precipitationMmNext1h": {
    "label": "Rain mm (1 h)",
    "format": "number"
  },
  "precipitationMmNext6h": {
    "label": "Rain mm (6 h)",
    "format": "number"
  },
  "symbolNext1h": {
    "label": "Weather (1 h)",
    "format": "string"
  },
  "symbolNext6h": {
    "label": "Weather (6 h)",
    "format": "string"
  },
  "windSpeedMs": {
    "label": "Wind m/s",
    "format": "number"
  },
  "windSpeedKmh": {
    "label": "Wind km/h",
    "format": "number"
  },
  "windFromCompass": {
    "label": "Wind from",
    "format": "string"
  },
  "cloudCoverPercent": {
    "label": "Cloud %",
    "format": "number"
  },
  "relativeHumidityPercent": {
    "label": "Humidity %",
    "format": "number"
  },
  "pressureHpaSeaLevel": {
    "label": "Pressure hPa",
    "format": "number"
  },
  "attribution": {
    "label": "Source",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Weather Forecast API - Worldwide, Any City or Coordinates](https://apify.com/neverempty/weather-forecast-worldwide.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/weather-forecast-worldwide.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/neverempty/weather-forecast-worldwide.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
