# Temperature Blanket Pattern by ZIP Code and Year (`standardwork/temperature-blanket-pattern`) Actor

Day-by-day temperature blanket pattern for any U.S. ZIP or weather station and year, with a yarn color for every day.

- **URL**: https://apify.com/standardwork/temperature-blanket-pattern.md
- **Developed by:** [Standard Work Co.](https://apify.com/standardwork) (community)
- **Categories:** For creators, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Temperature Blanket Pattern by ZIP Code and Year

**Informational only. Not for navigation, safety, emergency, financial, medical, or legal decisions. Check the official source before you rely on it.**

### What it does

A temperature blanket is a knit or crochet project with one row per day, colored by that day's temperature. This tool fills in the whole pattern for you: enter a ZIP code (or a weather station) and a year, and get one row per day with the high, low, and average temperature, the color band, a suggested color name, and a hex color.

Good for birth-year blankets, wedding-year blankets, memorial blankets, and this year's blanket (current year returns days through yesterday).

### How to use it (no code)

1. Click **Try for free** or **Start**.
2. Type a ZIP code, for example `43215`, and a year, for example `2025`.
3. Pick which temperature sets the color: daily high (most common), low, or average.
4. Optional: set where the first band starts, how many degrees per color, and how many colors.
5. Click **Start**. Export to Excel, CSV, or JSON and print it as your row-by-row pattern.

### Example input

```json
{"zip": "43215", "year": 2025, "metric": "high", "bandStartF": 20, "bandWidthF": 10, "colors": 10}
```

### Output fields

Same fields in the same order on every row; missing values are null.
date, dayOfYear, weekday, stationName, stationId, stationState, stationLat, stationLon, distanceMiles, highF, lowF, averageF, blanketTempF, metric, band, bandLabel, colorName, colorHex, note, disclaimer, credit, sourceUrl, retrievedAt (ISO 8601 with offset), retrievedAtLocal (U.S. Central), qcStatus (ok or flagged), qcNotes, error.

### Default colors (coldest to warmest)

Navy, Royal blue, Sky blue, Aqua, Sage green, Grass green, Mustard, Orange, Red, Burgundy, Plum, Charcoal. With the defaults (start 20 F, 10 degrees per color, 10 colors): below 20 F, 20 to 29, 30 to 39, and so on up to 90 F and up. Swap in your own yarn for each band.

### Limits

- Uses the nearest station that reported at least 95% of days that year (searching about 40 miles, then about 100 miles). Days the station missed are kept, left blank, and flagged so you can fill them in.
- Station readings are preliminary and can be revised. Recent days may change.
- Large rural ZIP code areas use the center point of the ZIP area, which can be far from town (for example 99701 in Alaska). The row shows the station and its distance; use a station id for an exact station.
- U.S. stations only.

### Disclaimer

Informational only. Not for navigation, safety, emergency, financial, medical, or legal decisions. Check the official source before you rely on it.

This is an independent tool by Standard Work Co. It is not affiliated with, endorsed by, or sponsored by any government agency named here. Agency names are used only to say where the data comes from.
The data comes from public government sources and is passed through as published, only reformatted. Government data can be preliminary, late, missing, revised, or wrong, and this tool can fail too. This output is not an official government record.
Provided "as is" with no warranty of any kind, including accuracy, completeness, or timeliness. You are responsible for checking the official source before acting on anything here. Liability is limited as stated in the Apify Standard Actor Contract for this tool.

Weather data are preliminary and can change after quality control.

### Data sources and credits

- Daily temperatures and station list: Applied Climate Information System (RCC-ACIS, data.rcc-acis.org), daily station observations.
- ZIP code points: U.S. Census Bureau 2024 Gazetteer ZIP Code Tabulation Areas, public domain.

# Actor input Schema

## `zip` (type: `string`):

5-digit U.S. ZIP code. The nearest weather station that reported at least 95% of days that year is used. Leave blank to use the station id below. Default 43215 (Columbus, OH).

## `stationId` (type: `string`):

Optional station id instead of a ZIP, for example USW00014821 (Columbus, OH airport) or an airport code like CMH.

## `year` (type: `integer`):

Blanket year. The current year returns days through yesterday. Default: last year.

## `metric` (type: `string`):

Which daily temperature picks the color: the high, the low, or the average.

## `bandStartF` (type: `integer`):

Days colder than this get the first color. Default 20.

## `bandWidthF` (type: `integer`):

Width of each color band in degrees F. Default 10.

## `colors` (type: `integer`):

How many colors (3 to 12). The last color covers everything warmer. Default 10.

## Actor input object example

```json
{
  "zip": "43215",
  "metric": "high",
  "bandStartF": 20,
  "bandWidthF": 10,
  "colors": 10
}
```

# Actor output Schema

## `results` (type: `string`):

All rows in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "zip": "43215"
};

// Run the Actor and wait for it to finish
const run = await client.actor("standardwork/temperature-blanket-pattern").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "zip": "43215" }

# Run the Actor and wait for it to finish
run = client.actor("standardwork/temperature-blanket-pattern").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "zip": "43215"
}' |
apify call standardwork/temperature-blanket-pattern --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,standardwork/temperature-blanket-pattern"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7ZdvFHOM4e9awadYd/builds/bEvmQtk8i2OwxIoNb/openapi.json
