    <a target="_blank" href="?userId=18233080" style="color:blue">custom</a><br><br>

    <?php

    function getPixivUserArt($userId) {
        $apiUrl = "https://www.pixiv.net/ajax/user/{$userId}/profile/all?useid={$userId}";

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $apiUrl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        $response = curl_exec($ch);
        curl_close($ch);

        $data = json_decode($response, true);

        if (isset($data['body']['illusts'])) {
            $artworks = $data['body']['illusts'];

            foreach ($artworks as $artId => $art) {
                $artLink = "https://www.pixiv.net/artworks/{$artId}";

                echo "Link: <a target=_blank href=\"{$artLink}\">{$artLink}</a><br>\n";
            }
        } else {
            echo "No artworks found for the given user.";
        }
    }

    // Usage example
    $userId = isset($_GET['userId']) ? $_GET['userId'] : '75406576';
    getPixivUserArt($userId);
    ?>

</body>
</html>