# Weather Singapore Data Extraction API Example

**Use case:** 

A ready-to-run example that returns a daily forecast for one city, scoped to Singapore, with normalized fields on each returned row.

## Input

```json
{
  "location": "Singapore",
  "days": 14,
  "start_date": "",
  "end_date": ""
}
```

## Output

```json
{
  "date": {
    "label": "Date",
    "format": "string"
  },
  "weather": {
    "label": "Weather",
    "format": "string"
  },
  "temperature_max": {
    "label": "Temperature Max",
    "format": "number"
  },
  "temperature_min": {
    "label": "Temperature Min",
    "format": "number"
  },
  "temperature_mean": {
    "label": "Temperature Mean",
    "format": "number"
  },
  "apparent_temperature_max": {
    "label": "Feels Like Max",
    "format": "number"
  },
  "apparent_temperature_min": {
    "label": "Feels Like Min",
    "format": "number"
  },
  "wind_speed_max": {
    "label": "Wind Speed Max",
    "format": "number"
  },
  "wind_gusts_max": {
    "label": "Wind Gusts Max",
    "format": "number"
  },
  "wind_direction_dominant": {
    "label": "Wind Direction",
    "format": "number"
  },
  "wind_direction_label": {
    "label": "Wind Direction Label",
    "format": "string"
  },
  "precipitation_sum": {
    "label": "Precipitation Sum",
    "format": "number"
  },
  "precipitation_probability_max": {
    "label": "Precipitation Probability",
    "format": "number"
  },
  "rain_sum": {
    "label": "Rain Sum",
    "format": "number"
  },
  "snowfall_sum": {
    "label": "Snowfall Sum",
    "format": "number"
  },
  "precipitation_hours": {
    "label": "Precipitation Hours",
    "format": "number"
  },
  "uv_index_max": {
    "label": "UV Index Max",
    "format": "number"
  },
  "sunrise": {
    "label": "Sunrise",
    "format": "string"
  },
  "sunset": {
    "label": "Sunset",
    "format": "string"
  },
  "daylight_hours": {
    "label": "Daylight Hours",
    "format": "number"
  },
  "sunshine_hours": {
    "label": "Sunshine Hours",
    "format": "number"
  },
  "location": {
    "label": "Location",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "region": {
    "label": "Region",
    "format": "string"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "timezone": {
    "label": "Timezone",
    "format": "string"
  },
  "mode": {
    "label": "Mode",
    "format": "string"
  },
  "start_date": {
    "label": "Start Date",
    "format": "string"
  },
  "end_date": {
    "label": "End Date",
    "format": "string"
  },
  "temperature_unit": {
    "label": "Temperature Unit",
    "format": "string"
  },
  "wind_speed_unit": {
    "label": "Wind Speed Unit",
    "format": "string"
  },
  "current_temperature": {
    "label": "Current Temperature",
    "format": "number"
  },
  "current_apparent_temperature": {
    "label": "Feels Like Now",
    "format": "number"
  },
  "current_humidity": {
    "label": "Humidity",
    "format": "number"
  },
  "current_weather": {
    "label": "Current Weather",
    "format": "string"
  },
  "current_cloud_cover": {
    "label": "Current Cloud Cover",
    "format": "number"
  },
  "current_pressure": {
    "label": "Current Pressure",
    "format": "number"
  },
  "current_visibility_km": {
    "label": "Current Visibility (km)",
    "format": "number"
  },
  "current_uv_index": {
    "label": "Current UV Index",
    "format": "number"
  },
  "current_wind_speed": {
    "label": "Current Wind Speed",
    "format": "number"
  },
  "current_wind_direction": {
    "label": "Current Wind Direction",
    "format": "number"
  },
  "current_wind_direction_label": {
    "label": "Current Wind Direction Label",
    "format": "string"
  },
  "current_wind_gusts": {
    "label": "Current Wind Gusts",
    "format": "number"
  },
  "current_is_day": {
    "label": "Is Day",
    "format": "boolean"
  },
  "current_precipitation": {
    "label": "Current Precipitation",
    "format": "number"
  },
  "air_quality_note": {
    "label": "Air Quality Note",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "hourly_forecast": {
    "label": "Hourly Forecast",
    "format": "array"
  },
  "air_quality_current": {
    "label": "Current Air Quality",
    "format": "object"
  },
  "air_quality_hourly": {
    "label": "Hourly Air Quality",
    "format": "array"
  },
  "processor": {
    "label": "Processor",
    "format": "string"
  },
  "processed_at": {
    "label": "Processed At",
    "format": "string"
  }
}
```

## About this Actor

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


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

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

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
