curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "threads.profile", "input": { "handle": "instagram", "limit": 5 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "threads.profile", "input": { "handle": "instagram", "limit": 5 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "threads.profile", "input": { "handle": "instagram", "limit": 5 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Response
{ "name": "Instagram", "title": "Instagram (@instagram) • Threads, Say more", "followers": 38100000, "canonical_url": "https://www.threads.com/@instagram", "description": "38.1M Followers • 1.5K Threads • Discover what's new on Instagram 🔎✨. See the latest conversations with @instagram.", "followers_approximate": true, "followers_available": true, "following": 0, "following_approximate": false, "following_available": false, "has_more": false, "request_url": "https://www.threads.com/@instagram", "threads_count": 1500, "threads_count_approximate": true, "threads_count_available": true, "profile_content": { "meta_keys": [ "al:android:app_name", "apple-itunes-app" ] }, "recent_threads": [ { "type": "thread", "url": "https://www.threads.com/@instagram/post/DgImXXIFp0g", "content": { "caption": "Muse can now help you get more out of your Instagram saves. Here are a few ways to use it:\n\n🗂️ Organize your saves into collections\n\n🔍 Find …", "like_count": 440, "media_type": 1, "quote_count": 5, "reply_count": 36, "repost_count": 21, "taken_at_unix": 1795544908 } } ]}