public static function byId(
        Client $client,
        int $id
    ): self {
        $posts = self::search($client, ['id:' . $id], 1, 1);

        if (count($posts) === 0) {
            throw new PostNotFoundException(sprintf(
                'Post with ID %d not found',
                $id
            ));
        }

        return $posts[0];
    }