import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "producthunt.product", "input": { "url": "chatgpt" }}''')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": "producthunt.product", "input": { "url": "chatgpt" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Response
{ "name": "ChatGPT by OpenAI", "android_url": "https://www.producthunt.com/r/PUZV4DPNCWSPRP", "categories_count": 3, "description": "An LLM to get instant answers, find creative inspiration, and learn something new. Free to use. Easy to try. Just ask and ChatGPT can help …", "followers_count": 12384, "founder_reviews_count": 521, "id": "526756", "ios_url": "https://www.producthunt.com/r/6e5d3e8b3c85a5", "other_reviews_count": 227, "posts_count": 29, "review_summary_ai": "Reviewers largely see ChatGPT as a daily workbench for brainstorming, writing, research, coding, debugging, and turning rough ideas into us…", "reviews_count": 748, "reviews_rating": 4.86, "slug": "chatgpt", "tagline": "Get answers. Find inspiration. Be more productive.", "twitter_url": "https://x.com/openai", "url": "https://www.producthunt.com/products/chatgpt", "website_clean_url": "openai.com/chatgpt", "website_url": "https://openai.com/chatgpt", "first_launch": { "id": "369375", "scheduled_at": "2022-12-02T00:01:00-08:00" }, "latest_launch": { "name": "Ads in ChatGPT", "id": "1140101", "scheduled_at": "2026-05-06T00:01:00-07:00", "slug": "ads-in-chatgpt", "state": "default", "tagline": "Create, manage, and measure your ChatGPT ad campaigns", "url": "https://www.producthunt.com/posts/ads-in-chatgpt" }, "alternatives": [ { "name": "Claude by Anthropic", "id": "576351", "reviews_count": 1039, "reviews_rating": 4.96, "slug": "claude", "tagline": "A family of foundational AI models", "url": "https://www.producthunt.com/products/claude" }, { "name": "Claude for Desktop", "id": "675314", "reviews_count": 23, "reviews_rating": 4.87, "slug": "claude-for-desktop", "tagline": "Desktop AI partner. Fast, focused, & designed for deep work", "url": "https://www.producthunt.com/products/claude-for-desktop" } ], "awards": [ { "category": "Product of the Year", "id": "1265117", "rank": 1, "type": "golden_kitty", "year": 2022 } ], "categories": [ { "name": "LLMs", "id": "126", "path": "/categories/llms", "slug": "llms" }, { "name": "AI Chatbots", "id": "127", "path": "/categories/ai-chatbots", "slug": "ai-chatbots" } ], "pro_con_tags": [ { "tag": "versatile tool" }, { "tag": "fast performance" } ], "rating_distribution": [ { "count": 660, "stars": 5 }, { "count": 77, "stars": 4 } ], "screenshots": [ "https://ph-files.imgix.net/836a36f4-6187-49d3-a661-bfefe6527a1c.svg?auto=format&fit=crop", "https://ph-files.imgix.net/c5bc4c45-9d39-44f5-8ad9-fa10c043c29f.svg?auto=format&fit=crop" ]}