---
name: "xpay-weather-get-weather-bydatetimerange"
description: "Get weather information for a specified city between start and end dates."
version: "1.0.0"
price: "$0.01/call"
provider: "Weather"
---

# Get Weather ByDateTimeRange

Get weather information for a specified city between start and end dates.

**Provider:** Weather
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to get weather information for a specified city between start and end dates.. This is part of the Weather provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 7+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("weather/get_weather_byDateTimeRange")`
2. **`xpay_run`** — Execute: `xpay_run("weather/get_weather_byDateTimeRange", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end_date` | string | Yes | End date in format YYYY-MM-DD , please follow ISO 8601 format |
| `city` | string | Yes | The name of the city to fetch weather information for, PLEASE NOTE English name only, if the parameter city isn't English please translate to English before invoking this function. |
| `start_date` | string | Yes | Start date in format YYYY-MM-DD, please follow ISO 8601 format |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Weather (all tools)](https://xpay.tools/skills/weather/SKILL.md) — 8 tools
- [Get Current Weather](https://xpay.tools/skills/weather/get-current-weather/SKILL.md) — $0.01/call
- [Get Weather Details](https://xpay.tools/skills/weather/get-weather-details/SKILL.md) — $0.01/call
- [Get Current Datetime](https://xpay.tools/skills/weather/get-current-datetime/SKILL.md) — $0.01/call
- [Get Timezone Info](https://xpay.tools/skills/weather/get-timezone-info/SKILL.md) — $0.01/call
- [Convert Time](https://xpay.tools/skills/weather/convert-time/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/weather/get-weather-bydatetimerange/
- Provider: https://xpay.tools/weather/
- All tools: https://xpay.tools/explore
