Vine oembed metadata recovery

From divinevideo/divine-mobile · View interactive version

Vine oembed metadata recovery is an AI agent skill from the GitHub repository divinevideo/divine-mobile. Recover Vine video metadata (author, user ID, title, thumbnail) from vine.co oembed endpoint even though the Vine API and pages are dead. Use when: (1) you have Vine shortcode URLs (vine.co/v/XXXXX) and need to identify the creator, (2) the Vine page only shows a loading spinner, (3) archive-api.vin

How to use this skill

Skill file

Vine oEmbed Metadata Recovery

Problem

Vine.co pages no longer render content — the SPA shell loads but the backend API

(archive-api.vineapp.com) returns 404, so pages just show a loading spinner. However,

the oembed endpoint is still live and returns structured metadata for any valid Vine URL.

Context / Trigger Conditions

Solution

Single Lookup

Query the oembed endpoint:

GET https://vine.co/oembed.json?url=https://vine.co/v/{SHORTCODE}

Response Fields

The oembed response provides:

Extract User ID

The Vine numeric user ID is in the author_url path:

author_url: "https://vine.co/u/1306031740015583232"
→ user_id: 1306031740015583232

Bulk Recovery Pattern

If you have a list of Vine shortcodes (from Wayback CDX crawls, social media embeds, etc.):

import requests
import time

def get_vine_oembed(shortcode):
    url = f"https://vine.co/oembed.json?url=https://vine.co/v/{shortcode}"
    resp = requests.get(url, timeout=10)
    if resp.status_code == 200:
        data = resp.json()
        user_id = data.get("author_url", "").split("/u/")[-1]
        return {
            "shortcode": shortcode,
            "username": data.get("author_name"),
            "user_id": user_id,
            "title": data.get("title"),
            "thumbnail_url": data.get("thumbnail_url"),
        }
    return None

# Rate-limit to be respectful
for shortcode in shortcodes:
    result = get_vine_oembed(shortcode)
    if result:
        print(f"{result['shortcode']} → {result['username']} (ID: {result['user_id']})")
    time.sleep(0.5)

Cross-Reference with Database

Once you have the user ID, look up in the divine.video database:

SELECT * FROM users WHERE id = '1306031740015583232';
SELECT * FROM outreach_contacts WHERE user_id = '1306031740015583232';

Verification

curl -s "https://vine.co/oembed.json?url=https://vine.co/v/iLrDJJWn9e6" | python3 -m json.tool

Should return JSON with author_name, author_url, title, thumbnail_url, etc.

Sources of Vine Shortcodes

Notes

which is why it survived while everything else died

the divine.video database's users and imported_users tables

overwhelm it

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.