Random Pokémon

Generate random Pokémon data

Overview

This node generates a specified number of random Pokémon data entries. It is useful when you want to quickly obtain random Pokémon information for testing, educational purposes, or fun integrations without needing to query an external API. For example, you could use this node to generate random Pokémon profiles for a game prototype or to create randomized datasets for analysis.

Properties

Name Meaning
Number of Pokémon How many random Pokémon to generate?

Output

The output is an array of JSON objects, each representing a Pokémon. Each object contains the full data of one Pokémon as found in the bundled Pokémon dataset. The output array is sorted by the Pokémon's ID in ascending order.

Example output structure (simplified):

[
  {
    "json": {
      "id": 1,
      "name": "Bulbasaur",
      "type": ["Grass", "Poison"],
      "baseStats": { "hp": 45, "attack": 49, ... },
      ...
    }
  },
  {
    "json": {
      "id": 4,
      "name": "Charmander",
      "type": ["Fire"],
      "baseStats": { "hp": 39, "attack": 52, ... },
      ...
    }
  }
]

No binary data is produced by this node.

Dependencies

  • The node uses a local JSON file containing Pokémon data (pokemonData.json), which is bundled with the node.
  • No external API calls or credentials are required.

Troubleshooting

  • Issue: Requesting more Pokémon than available in the dataset may result in fewer results than expected.
    • Solution: Ensure the "Number of Pokémon" property does not exceed the total number of Pokémon in the dataset.
  • Issue: Unexpected empty output.
    • Solution: Verify that the input number is a positive integer and that the node is correctly connected in the workflow.

Links and References

Discussion