Instagram Contact Scraper
收藏Instagram Contact Scraper API 数据集概述
基本信息
- API名称: Instagram Contact Scraper
- 类别: Social
- 提供商: Fabio Spoto
- 订阅者数量: 1
- 流行度: 8.5
- 服务等级: 100%
- 延迟: 1842ms
- 测试通过率: 100%
定价计划
- BASIC: $0.00 / 月
- PRO: $20.00 / 月
- ULTRA: $200.00 / 月
功能概述
Instagram Contact Scraper API 允许从 Instagram 个人资料中快速、轻松地提取联系信息。只需提供 Instagram 用户名或个人资料 URL,即可接收结构化的联系数据,包括电子邮件地址、电话号码和网站链接。
主要特性
- 从 Instagram 个人资料中提取电子邮件地址
- 获取带有国家/地区代码的电话号码
- 获取外部网站 URL
- 支持用户名和完整个人资料 URL
- 快速可靠的数据提取
- 简单的 REST API 接口
使用场景
- 潜在客户生成和联系人发现
- 商业智能和市场研究
- CRM 数据丰富
- 社交媒体联系人管理
- 营销和推广活动
API 文档
端点
健康检查
检查 API 是否在线且可访问。
- 端点:
GET /health - 成功响应 (200): json { "status": "online", "service": "Instagram Contact Scraper API", "timestamp": "2024-01-15T10:30:00.123456", "version": "1.0.0" }
抓取联系信息
使用用户名或个人资料 URL 从 Instagram 个人资料中抓取联系信息。
-
端点:
POST /scrape -
请求体: json { "username_or_url": "realestateglobal" }
-
成功响应 (200): json { "status": "success", "data": { "username": "realestateglobal", "email": "contact@example.com", "phone_number": "+1234567890", "website": "https://example.com" } }
-
错误响应 (400): json { "error": "Missing required field", "message": "Field username_or_url is required" }
-
错误响应 (404): json { "error": "Profile not found", "message": "Instagram profile not found or invalid" }
-
错误响应 (500): json { "error": "Internal server error", "status": "failed" }
使用示例
cURL
bash curl -X POST http://localhost:5002/scrape -H "Content-Type: application/json" -d {"username_or_url": "realestateglobal"}
Python
python import requests
url = "http://localhost:5002/scrape" payload = { "username_or_url": "realestateglobal" }
response = requests.post(url, json=payload) data = response.json()
if data.get("status") == "success": contact_info = data["data"] print(f"Username: {contact_info[username]}") print(f"Email: {contact_info[email]}") print(f"Phone: {contact_info[phone_number]}") print(f"Website: {contact_info[website]}")
JavaScript
javascript const response = await fetch(http://localhost:5002/scrape, { method: POST, headers: { Content-Type: application/json, }, body: JSON.stringify({ username_or_url: realestateglobal }) });
const data = await response.json();
if (data.status === success) { const contactInfo = data.data; console.log(Username:, contactInfo.username); console.log(Email:, contactInfo.email); console.log(Phone:, contactInfo.phone_number); console.log(Website:, contactInfo.website); }
响应字段
健康检查响应
status: API 状态 ("online")service: 服务名称timestamp: ISO 8601 时间戳version: API 版本
抓取响应
status: 请求状态 ("success"或"failed")data: 联系信息对象,包含:username: Instagram 用户名email: 联系电子邮件地址(可能为null)phone_number: 联系电话号码(可能为null)website: 外部网站 URL(可能为null)
错误处理
- 400 Bad Request: 缺少或无效的请求参数
- 404 Not Found: Instagram 个人资料未找到或无效
- 500 Internal Server Error: 抓取过程中服务器错误
请求参数
username_or_url: Instagram 用户名(例如 "realestateglobal")或完整的 Instagram 个人资料 URL(例如 "https://www.instagram.com/realestateglobal/")



