Frizz Index
The Frizz Index provides indices indicating likelihood that a person will experience frizzy hair based on weather conditions.
The Forecast Indices API is sourced from the TWC® Forecast system.
Overview
- Domain Portfolio: Forecast
- Domain: Lifestyle - Indices
- Usage Classification: Standard
- Geography: Global
- Attribution Required: n/a
- Attribution Requirements: n/a
HTTP Headers and Data Lifetime - Caching and Expiration
For details on appropriate header values as well as caching and expiration definitions, please see The Weather Company® Data | API Common Usage Guide.
URL Construction
Atomic API URL Examples: | |
---|---|
Frizz - Daypart API | |
Request by Geocode (Latitude & Longitude): Required Parameters: geocode, language, format https://api.weather.com/v2/indices/frizz/daypart/<duration>?geocode=33.74,-84.39&language=en-US&format=<json>&apiKey=yourApiKey |
|
https://api.weather.com/v2/indices/frizz/daypart/3day?geocode=33.74,-84.39&language=en-US&format=json&apiKey=yourApiKey https://api.weather.com/v2/indices/frizz/daypart/5day?geocode=33.74,-84.39&language=en-US&format=json&apiKey=yourApiKey https://api.weather.com/v2/indices/frizz/daypart/7day?geocode=33.74,-84.39&language=en-US&format=json&apiKey=yourApiKey https://api.weather.com/v2/indices/frizz/daypart/10day?geocode=33.74,-84.39&language=en-US&format=json&apiKey=yourApiKey https://api.weather.com/v2/indices/frizz/daypart/15day?geocode=33.74,-84.39&language=en-US&format=json&apiKey=yourApiKey |
v2idxFrizzDaypart15 |
Request by Postal Code: Required Parameters: postalCode, countryCode, language, format https://api.weather.com/v2/indices/frizz/daypart/<duration>?postalCode=94608&countryCode=US&format=<json>&language=en-US&apiKey=yourApiKey |
|
https://api.weather.com/v2/indices/frizz/daypart/15day?postalCode=94608&countryCode=US&format=json&language=en-US&apiKey=yourApiKey |
Data Elements & Definitions
API Name | Field Name | Description | Type | Range | Sample | Nulls Allowed | Usage |
---|---|---|---|---|---|---|---|
Repeating Elements: Unique to Forecast | |||||||
fcstValid | Time forecast is valid ... start of the forecast period, always 7am local time. | [epoch] | 1369306800 | N | Display As Provided | ||
fcstValidLocal | Time forecast is valid ... start of the forecast period, always 7am local time. | [ISO] | 2013-05-23T07:00:00-0400 | N | Display As Provided | ||
Repeating Elements: Common Per Time Segment | |||||||
num | Daypart Segment (12hour) - Sequential daypart number, where 1 = daytime of Day 0 | [integer] | 21 | N | Display As Provided | ||
dayInd | Day / Night Indicator | [string] | D, N | D | N | Display As Provided | |
daypartName | Name of 12hr daypart, not including day names in first 48hrs | [string] | Tomorrow | N | Display As Provided | ||
Atomic Indices | |||||||
Frizz Index | frizzCategory | Descriptive text of Frizz Index | [string] | High Concern | N | Display As Provided | |
frizzIndex |
Index indicating likelihood that a person will experience frizzy hair based on weather conditions. 0-2=Minimal Concern, 3-4=Low Concern, 5-6=Moderate Concern, 7-8=High Concern, 9-10=Very High Concern |
[integer] | 0-10 | 8 | M | Display As Provided |
JSON Sample
JSON Sample - Daypart
{ "metadata": {}, "frizzIndex12hour": { "fcstValid": [], "fcstValidLocal": [], "dayInd": [], "num": [], "daypartName": [], "frizzIndex": [], "frizzCategory": [] } } |
{//JSON payload}, {//JSON payload}, {//JSON payload}, {//JSON payload}, {//JSON payload}, {//JSON payload}, {//JSON payload}, |