public static Optional<String> getCookieValue(CookieJar jar, String key) {
        return jar.loadForRequest(HttpUrl.get(IGConstants.BASE_API_URL)).stream()
                .filter(cookie -> cookie.name().equals(key)).map(Cookie::value).findAny();
    }
Converts an Instagram shortcode to a numeric ID.

@param code The shortcode.
@return The numeric ID.
@throws IllegalArgumentException If bad parameters are provided.
src/main/java/com/github/instagram4j/instagram4j/utils/IGUtils.java