Skip to content

[Important!!] No longer unable to video.info() because not retrive photo information and experiencing increased invalid responses with video.info() #1234

@Tsuyoshisaito601

Description

@Tsuyoshisaito601

The video.info() function is no longer able to retrieve photo creation and engagement information. Until approximately April 7, 2025, it was possible to extract information for photos by normalizing photo URLs to video URLs using the following code:

python

def convert_to_video_url(self, url: str) -> str:
    """Converts photo URL to video URL"""
    try:
        # Extract username and ID from URL
        pattern = r'@([^/]+)/(?:photo|video)/(\d+)'
        match = re.search(pattern, url)
        if match:
            username, content_id = match.groups()
            # Always return URL in video format
            return f'https://www.tiktok.com/@{username}/video/{content_id}'
        return url
    except Exception as e:
        self.logger.warning(f"Error during URL conversion: {url}\nError: {str(e)}")
        return url

However, recently attempts to extract photo information frequently return blank results. I examined the HTML code and found that the UNIVERSAL_DATA_FOR_REHYDRATION no longer contains detailed information for photos. Additionally, SIGI_STATE does not appear to be included in any videos.
Since the photo information retrieval stopped working, the video.info() function itself now returns "invalid response" after just a few requests, suggesting significant changes across the TikTok platform.
Could you please investigate the cause and suggest any possible solutions or workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions