某音获取商品原数据 API接口,tiktok采集

某音(Douyin,国际版名为TikTok)是一个短视频分享平台,由于其庞大的用户基数和广泛的影响力,很多商家和开发者都希望能够从中获取商品和用户的原始数据以进行各种分析或业务操作。然而,直接获取某音或TikTok的原始数据API接口并非易事,因为这涉及到平台的隐私政策、数据安全和商业利益等多方面的问题。

首先,某音和TikTok都有严格的隐私政策和数据使用规定,不允许未经授权的第三方应用或平台直接访问其用户数据或商品数据。这是为了保护用户的隐私权和确保平台数据的安全。

其次,即使平台提供了API接口,通常也需要进行申请和审核,获得授权后才能使用。这种授权通常基于业务需求、技术能力、信誉等因素进行考量,并不是所有申请者都能获得。

对于TikTok采集,由于它主要面向海外市场,其数据获取和使用规定可能与某音有所不同。但同样地,未经授权的采集行为可能违反平台的隐私政策和数据使用规定,并可能导致法律风险。

因此,如果你希望获取某音或TikTok的商品或用户数据,建议你先了解平台的隐私政策和数据使用规定,并尝试通过官方渠道申请API接口或数据合作。同时,你也可以考虑使用合规的第三方数据分析工具或服务,这些工具或服务可能已经获得了平台的授权,并提供了合规的数据获取和分析功能。 

请求URL:o0b.cn/imike 获取API测试账号。 

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数:num_iid=3514453298386183303

参数说明:num_iid:抖音商品ID

响应参数

Version: Date:

名称类型必须示例值描述

item

item[]0获取某音app上原数据

 

 响应示例

{
	"item": {
		"appoint_num": 0,
		"assoc_ids": "",
		"biz_kind": 0,
		"biz_type": 4,
		"buy_record_switch": 0,
		"category_id": 20179,
		"check_status": 3,
		"company_name": "黄岛区古蒂歌服饰店",
		"cos_ratio": 0,
		"credit_score": {
			"gap_logistics": 1,
			"gap_product": 1,
			"gap_shop": 1,
			"logistics": 5,
			"product": 4.85,
			"shop": 4.96
		},
		"current_time": 1649724674,
		"delivery_delay_desc": "",
		"description": "<p><img src=\"https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/330154d06bd7acfbc9fe46744a84f295www750-987\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/00ad2cafeffa2a85f3ef914fe1e17d35www1098-616\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/5910e6bf5d211c448fa269d67b7b22bccbc7e01bwww750-1038\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/ef7c2487660576bb1e35e0f675a7d5ee89566e7ewww750-971\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/f3ba562f0e4762641049268a558a243d68d0f4d9www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/9130ca6f53486030a306f48f44923e8796e59ca9www750-1105\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/a3bf398e3439fe5c42c6cec8c3b2d008523a6f99www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/25f773b7a62d0b789d015198261c3aac0224d676www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/216c81f4115d9866134976c4e55b79d1cdfcfbdbwww750-955\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/c819abbf998aa58443c6e383fe8da9a9d7a25afewww750-834\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/82c9518b7438a5d30fb58efa1d872e3b50fa4a2ewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/78c6e8944f3d936654accf6059e6f5adwww800-800\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/40c2fc84c9e265b8a9897b8b77ce7764f347d00fwww750-952\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/79b4eecb3924bc01d2143270ebf015fdb2d0127fwww750-960\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/502e0ebbb534d4bcbdbca0ce158ee0ef917d9d1fwww750-1014\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/7c3272bbd8ae080d91636773df0c0bc8bc2c5b1cwww750-1038\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/2f9805ac9215f89da063aa3da473b06fa0591780www750-1080\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/2713d6e8adf3fe59c0fd3d2c15829e924f63a46ewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/b7331dd00e686a261912a54af4ae3f2b61311082www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/682379cd908fc0ee170b6ab914e9df374651c44bwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/c1bc79f0eec46b8d6dc0c363dadc2f013d32f4a7www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/3fc35a21ed6161836e78f18a0c506112dc6c19d2www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/3c5d22702e1cd2de45c9ec3671c4154fe33e5ebewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/b4d1d18942ec15e5f64f6f5aadf9b467cd92e21bwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/87a96eccbacf3b3a20d99266f2d4b801f2352fa5www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/7db68c13bfd5ed2b1d27e85248ba85f60a9d24d2www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/75a8aa104430fc1227019d3b38f7a83e2f451e0bwww750-1136\" style=\"max-width: 100%;\"/></p>",
		"detail_config": null,
		"detail_delay_desc": "48小时内发货",
		"discount": 0,
		"discount_price": 7200,
		"dsrInfo": {
			"default": 0,
			"gap_logistics": 0,
			"gap_product": 0,
			"gap_shop": 0,
			"logistics": 0,
			"merchant_id": 0,
			"product": 0,
			"shop": 0
		},
		"end_time": 2145888000,
		"ep_extra_info": null,
		"ep_user_info": null,
		"extra": {
			"category_detail": {
				"first_cid": 20005,
				"first_cname": "女装",
				"fourth_cid": 0,
				"fourth_cname": "",
				"is_leaf": true,
				"second_cid": 20179,
				"second_cname": "衬衫",
				"third_cid": 0,
				"third_cname": ""
			},
			"class_quality": "",
			"is_publish": 1,
			"quality_list": [
				{
					"quality_attachments": [],
					"quality_key": "3457058945162709852",
					"quality_name": "质检报告"
				},
				{
					"quality_attachments": [],
					"quality_key": "6924586049331085575",
					"quality_name": "人物肖像授权资质"
				},
				{
					"quality_attachments": [],
					"quality_key": "6945746852176363820",
					"quality_name": "赠品资质"
				},
				{
					"quality_attachments": [],
					"quality_key": "6946075234516599076",
					"quality_name": "老字号认证证书"
				},
				{
					"quality_attachments": [],
					"quality_key": "3457058919409648559",
					"quality_name": "报关单"
				},
				{
					"quality_attachments": [],
					"quality_key": "3457058936748903145",
					"quality_name": "委托进口协议"
				}
			],
			"quality_report": "",
			"spec_seq_info": {
				"child_spec_seq": [
					"颜色分类",
					"尺码"
				],
				"spec_values_seq": [
					[
						"米杏色",
						"灰蓝色",
						"卡其色",
						"珍珠白"
					],
					[
						"S 建议100斤内穿",
						"M 建议100-113斤",
						"L 建议110-123斤",
						"XL 建议120-133斤",
						"2XL 建议130-158斤穿"
					]
				]
			},
			"stone": {
				"remark": ""
			}
		},
		"first_cid": 5,
		"freight": {
			"calculate_type": 2,
			"columns": [
				{
					"add_num": 1,
					"add_num_price": 100,
					"add_weight": 0,
					"add_weight_price": 0,
					"address": {
						"54": [],
						"65": []
					},
					"first_num": 1,
					"first_num_price": 1000,
					"first_weight": 0,
					"first_weight_price": 0,
					"is_default": 0,
					"is_limited": false,
					"is_over_free": false,
					"over_amount": 0,
					"over_num": 0,
					"over_weight": 0,
					"province": [
						65,
						54
					],
					"province_name": [
						"新疆维吾尔自治区",
						"西藏自治区"
					],
					"rule_id": 2
				},
				{
					"add_num": 0,
					"add_num_price": 0,
					"add_weight": 0,
					"add_weight_price": 0,
					"address": {
						"11": [],
						"13": [],
						"14": [],
						"15": [],
						"21": [],
						"22": [],
						"23": [
							230600,
							230100,
							230400,
							231100,
							230800,
							230300,
							231000,
							230200,
							230900,
							231200,
							230500,
							230700
						],
						"31": [],
						"32": [],
						"33": [],
						"34": [],
						"35": [],
						"36": [],
						"37": [],
						"41": [
							410700,
							411700
						],
						"42": [],
						"43": [],
						"44": [],
						"45": [],
						"46": [],
						"50": [],
						"51": [],
						"52": [],
						"53": [],
						"61": [],
						"62": [],
						"63": [],
						"64": []
					},
					"first_num": 0,
					"first_num_price": 0,
					"first_weight": 0,
					"first_weight_price": 0,
					"is_default": 0,
					"is_limited": false,
					"is_over_free": true,
					"over_amount": 1000,
					"over_num": 0,
					"over_weight": 0,
					"province": [
						50,
						14,
						52,
						44,
						64,
						15,
						23,
						230600,
						230100,
						230400,
						231100,
						230800,
						230300,
						231000,
						230200,
						230900,
						231200,
						230500,
						230700,
						62,
						37,
						53,
						11,
						43,
						35,
						36,
						41,
						410700,
						411700,
						21,
						32,
						22,
						45,
						42,
						46,
						33,
						13,
						61,
						63,
						34,
						51,
						31
					],
					"province_name": [
						"重庆市",
						"山西省",
						"贵州省",
						"广东省",
						"宁夏回族自治区",
						"内蒙古自治区",
						"黑龙江省",
						"大庆市",
						"哈尔滨市",
						"鹤岗市",
						"黑河市",
						"佳木斯市",
						"鸡西市",
						"牡丹江市",
						"齐齐哈尔市",
						"七台河市",
						"绥化市",
						"双鸭山市",
						"伊春市",
						"甘肃省",
						"山东省",
						"云南省",
						"北京市",
						"湖南省",
						"福建省",
						"江西省",
						"河南省",
						"新乡市",
						"驻马店市",
						"辽宁省",
						"江苏省",
						"吉林省",
						"广西壮族自治区",
						"湖北省",
						"海南省",
						"浙江省",
						"河北省",
						"陕西省",
						"青海省",
						"安徽省",
						"四川省",
						"上海市"
					],
					"rule_id": 3
				},
				{
					"add_num": 0,
					"add_num_price": 0,
					"add_weight": 0,
					"add_weight_price": 0,
					"address": {
						"71": [],
						"81": [],
						"82": []
					},
					"first_num": 0,
					"first_num_price": 0,
					"first_weight": 0,
					"first_weight_price": 0,
					"is_default": 0,
					"is_limited": true,
					"is_over_free": false,
					"over_amount": 0,
					"over_num": 0,
					"over_weight": 0,
					"province": [
						81,
						71,
						82
					],
					"province_name": [
						"香港特别行政区",
						"台湾省",
						"澳门特别行政区"
					],
					"rule_id": 4
				}
			],
			"default": {
				"add_num": 1,
				"add_num_price": 0,
				"add_weight": 0,
				"add_weight_price": 0,
				"calculate_type": 2,
				"first_num": 1,
				"first_num_price": 0,
				"first_weight": 0,
				"first_weight_price": 0,
				"is_default": 1,
				"is_limited": false,
				"rule_id": 1,
				"template_id": 896776
			},
			"fixed_amount": 0,
			"product_province": 44,
			"product_province_name": "广东省",
			"rule_type": 0
		},
		"freight_id": 896776,
		"group_id": "0",
		"img": "https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876",
		"img_list": [
			"https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876",
			"https://p6-aio.ecombdimg.com/obj/temai/f6543c94a2c3c724fd57a8c61d6e79ec7bb846f5www800-800",
			"https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800",
			"https://p6-aio.ecombdimg.com/obj/temai/104f75934f295b6395ec792ad755eed8b10f543dwww800-800",
			"https://p6-aio.ecombdimg.com/obj/temai/3d65927c478ab58d06ecc31e6f541d2099e2429cwww800-800"
		],
		"img_style_switch": 0,
		"industry": null,
		"ins_product": {
			"returnfreight2020v1": 0
		},
		"is_alliance": 0,
		"is_educational": false,
		"is_hide_sales": false,
		"is_pledge_cash": 1,
		"limit_time_desc": "",
		"market_price": 7200,
		"mobile": "13710277900",
		"name": "【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女春装新款 高档磨毛衬衫 ",
		"need_checkout": false,
		"need_code": 0,
		"need_logistic": true,
		"need_share": 1,
		"out_product_id": "0",
		"pay_type": 1,
		"presell_delay": 5,
		"presell_end_time": 0,
		"presell_type": 0,
		"product_format": {
			"上市年份季节": "2022",
			"品牌": "Gudige/古蒂歌",
			"图案": "纯色",
			"成分含量": "95%以上",
			"服装款式细节": "口袋,纽扣",
			"服装版型": "宽松",
			"衣长": "常规款",
			"衣门襟": "单排多扣",
			"袖型": "常规",
			"袖长": "长袖",
			"货号": "251",
			"面料材质": "聚酯纤维",
			"面料材质成分含量": "95%以上",
			"领型": "POLO领",
			"风格": "通勤"
		},
		"product_id": "3514453298386183303",
		"product_tag": {
			"service_tag": [
				"pay_for_bad",
				"support_7days_refund",
				"customer_protection",
				"shop_qualification",
				"platform_announcement"
			],
			"tag_infos": null
		},
		"product_type": 0,
		"recommend_remark": "",
		"report_id__for_event": 1098996,
		"saved": 0,
		"second_cid": 48,
		"second_mobile": "",
		"sell_num": "1.3万+",
		"shop_id": "sXahcZg",
		"shop_logo": "https://p3-aio.ecombdimg.com/obj/temai/1611656872ab5f2645a9f6cf20810db68844e3e3f5cf248f0f",
		"shop_name": "古蒂歌精品女装店",
		"shop_tel": "13710277900",
		"show_buyers": 1,
		"show_comments": 1,
		"show_place": 0,
		"sku_delay_desc": "",
		"sku_max_price": 7200,
		"sku_min_price": 7200,
		"sku_presell_delay_desc": "",
		"spec_id": 1716041646595087,
		"spec_info": [
			{
				"list": [
					{
						"id": "1716041646595119",
						"name": "米杏色"
					},
					{
						"id": "1716041646595135",
						"name": "灰蓝色"
					},
					{
						"id": "1716041646596108",
						"name": "卡其色"
					},
					{
						"id": "1716041646596124",
						"name": "珍珠白"
					}
				],
				"name": "颜色分类"
			},
			{
				"list": [
					{
						"id": "1716041646596156",
						"name": "S 建议100斤内穿"
					},
					{
						"id": "1716151478027315",
						"name": "M 建议100-113斤"
					},
					{
						"id": "1716151478028291",
						"name": "L 建议110-123斤"
					},
					{
						"id": "1716151478028307",
						"name": "XL 建议120-133斤"
					},
					{
						"id": "1716151478028323",
						"name": "2XL 建议130-158斤穿"
					}
				],
				"name": "尺码"
			}
		],
		"start_time": 0,
		"status": 0,
		"supply_status": 0,
		"third_cid": 423,
		"user_limit": 0,
		"usp": "",
		"v_type": 41,
		"weight": "0.00",
	},
	"secache": "6773136882f2e5605a7a74e5f9874d1d",
	"secache_time": 1649724674,
	"secache_date": "2022-04-12 08:51:14",
	"error": "",
	"reason": "",
	"error_code": "0000",
	"cache": 1,
	"api_info": "today:0 max:11000",
	"execution_time": "0.042",
	"server_time": "Beijing/2022-04-13 16:55:39",
	"client_ip": "106.6.34.146",
	"call_args": {
		"num_iid": "3514453298386183303"
	},
	"api_type": "douyin",
	"translate_language": "zh-CN",
	"translate_engine": "google_new",
	"server_memory": "0.82MB",
	"request_id": "gw-1.6256900b565d8",
	"last_id": "880735853"
}

异常示例

{
  "error": "item-not-found",
  "reason": "商品没找到",
  "error_code": "2000",
  "success": 0,
  "cache": 0,
  "api_info": "today:0 max:10000",
  "execution_time": 0.081,
  "server_time": "Beijing/2020-06-10 23:44:00",
  "call_args": [],
  "api_type": "douyin",
  "request_id": "1ee0ffc041242"}

 错误码解释

状态代码(error_code)状态信息详细描述是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误

请注意,任何未经授权的数据采集和使用行为都可能导致法律风险和道德问题,请务必遵守相关法律法规和平台规定。

  • 28
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Python 是一种广泛使用的编程语言,拥有强大的数据采集能力。要实现对 TikTok数据采集,可以使用 Python 编写脚本来完成。 首先,我们需要安装所需的 Python 库。其中,requests 是一个用于发送网络请求的库,而beautifulsoup4 则是一个用于解析 HTML 和 XML 的库。 接下来,我们可以使用 requests 发送网络请求,访问 TikTok 的网页。通过查看 TikTok 网页的源代码,我们可以找到我们感兴趣的数据所在的位置。一般来说,这些数据会被包含在 HTML 标签中,我们可以使用 beautifulsoup4 来解析这些标签,并提取出我们想要的数据。 例如,如果我们想要采集 TikTok 的视频标题,我们可以使用 CSS 选择器来获取这些元素,并使用 beautifulsoup4 的方法来提取出它们的文本内容。 如果我们想要采集发布者的信息,我们可以查找相关的 HTML 元素,并提取出发布者的名称、粉丝数等信息。 此外,如果我们需要采集大量的数据,可以通过循环来遍历多个页面,并将提取的数据保存到文件中,以备进一步分析和使用。 需要注意的是,对于进行网页数据采集,我们应该遵守相关网站的使用政策和法律法规,并确保我们的采集行为合法合规,以避免侵犯他人的权益。 总的来说,Python 是一种非常适合进行数据采集的编程语言,结合各种库的使用,我们可以方便地采集 TikTok 上的各种数据

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值