<?php
$limit = 150;
$pokemonUrl = 'https://p...content-available-to-author-only...i.co/api/v2/pokemon/';

$ch = curl_init($pokemonUrl);

    // curl_setopt($ch, CURLOPT_URL, $pokemonUrl . $i);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($ch);
    echo curl_getinfo($ch, CURLINFO_HEADER_IN);
curl_close($ch);
    $pokemonData = json_decode($response, true);
    echo $response;
// for ($i = 1; $i <= $limit; $i++) {
// 	echo "gota";
//     echo $pokemonData['results'][$i]['name'] . ' - ' . $pokemonData['results'][$i]['url'] . PHP_EOL;
// }

?>
