def METHOD_NAME(self):
    recipe_id = None
    api_url = None
    api_token = None
    match = ID_PATTERN.search(self.canonical_url())
    if match:
        recipe_id = match.group(1)
    scripts = self.soup.find_all("script")
    for script in scripts:
        matches = SCRIPT_PATTERN.search(str(script.string))
        if matches:
            data = matches.groupdict()
            host = data["host"].replace("\\", "")
            api_url = f"{host}/recipes/{recipe_id}?brand={data['brand']}&country={data['country']}&product_type=web"
            api_token = f"Bearer {data['token']}"
    if recipe_id is None:
        raise ElementNotFoundInHtml("Recipe ID is unknown.")
    if api_url is None or api_token is None:
        raise ElementNotFoundInHtml("Required script not found.")
    return api_url, api_token