Get type matchup chart entry
get_typeGet the defensive profile of a Pokémon type: its weaknesses, resistances, immunities, and Hidden Power IVs. Use for analyzing a type's own matchups.
Instructions
Get the defensive profile of one type: what it is weak to, what it resists, what it is immune to, plus the Hidden Power IVs for that type. Use it for a type's own matchups; for one specific pairing pass attacker and defender to get_type_matchup, and for a Pokémon's combined defensive chart give get_type_matchup the species name instead. Accepts type names case-insensitively; unknown types return an isError. Read-only and offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type name, e.g. "Steel", "Fairy", "Ground". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gen | Yes | Always 0 in the bundled dataset — types are not stamped with the generation they were introduced in. | |
| name | Yes | Type name, e.g. "Steel". | |
| HPivs | Yes | IVs needed to make Hidden Power come out as this type, keyed by stat id; only the stats this type pins down are listed. | |
| immunities | Yes | Attacking types this type takes 0x from, e.g. ["Poison"] for Steel; empty when it has none. | |
| weaknesses | Yes | Attacking types this type takes 2x from, e.g. ["Fire", "Ground"] for Steel; empty when it has none. | |
| damageTaken | Yes | Multiplier this type takes from each attacking type, keyed by attacking type name. Values: 0 (immune), 0.5 (resisted), 1 (neutral), 2 (weak). Keys are "Bug", "Dark", "Dragon", "Electric", "Fairy", "Fighting", "Fire", "Flying", "Ghost", "Grass", "Ground", "Ice", "Normal", "Poison", "Psychic", "Rock", "Steel", "Water"; e.g. {"Fire": 2, "Ground": 2, "Water": 0.5} for Steel. | |
| resistances | Yes | Attacking types this type takes 0.5x from; empty when it has none. | |
| isNonstandard | Yes | "Future" when the type does not exist in the dataset (e.g. Dark in generation 1) and "Past" when it no longer exists; null for types that are standard in that generation. |