单词释义
其他 官方文档
单词释义,支持中英文,数据来源有道
基本说明:
接口地址:https://dict.youdao.com/jsonapi
返回格式:json
请求方式:get
请求示例:https://dict.youdao.com/jsonapi?q=性
请求参数说明:
名称 类型 必填 说明
q string 选填 关键字
返回参数说明:
名称 类型 说明
- - 见json
JSON返回示例:
{
	"web_trans": {
		"web-translation": [{
			"@same": "true",
			"key": "性",
			"trans": [{
				"summary": {
					"line": ["关 键 词 :聚 四 氟 乙 烯 ;聚 乙 烯 醇 成 膜 载 体 ;平 板 膜 ;<b>性</b> 能 [gap=8913]ywords :poly (tetrafluoroethylene) ; PVA membrane carrier ; flatsheet membrane ; <b>property</b>"]
				},
				"value": "property",
				"support": 228,
				"url": ""
			}, {
				"summary": {
					"line": ["人体许多表型、对药物的敏感<b>性</b>或疾病的易感<b>性</b>差异等都可能与<b>SNP</b>相关,已有人将<b>SNP</b>称为第三代遗传标..."]
				},
				"value": "SNP",
				"support": 94,
				"url": ""
			}, {
				"summary": {
					"line": ["关 键 词 : 非 织 造 布 ;圣 麻 纤 维 ;<b>性</b> 能 ;应 用 [gap=6885]Keywords:Nonwovens; Shengma fiber; <b>Performance</b>; App lication"]
				},
				"value": "Performance",
				"support": 80,
				"url": ""
			}]
		}, {
			"key": "理性",
			"trans": [{
				"value": "rationality"
			}, {
				"value": "reason; rationality;Vernunft"
			}, {
				"value": "reason; rationality"
			}, {
				"cls": {
					"cl": ["社科"]
				},
				"value": "Reason"
			}]
		}, {
			"key": "属性",
			"trans": [{
				"value": "property"
			}, {
				"value": "attribute; property; character"
			}, {
				"value": "Attributes"
			}, {
				"value": "properties"
			}]
		}, {
			"key": "整体性",
			"trans": [{
				"value": "wholeness; entirety; totality; integrity"
			}, {
				"value": "development activities in different areas well-planned and properly implemented"
			}, {
				"value": "wholeness; entirety; totality; integrity; totalité"
			}, {
				"cls": {
					"cl": ["科技"]
				},
				"value": "integrity"
			}]
		}, {
			"key": "科学性",
			"trans": [{
				"value": "scientific character; scientificity"
			}, {
				"value": "scientific nature"
			}, {
				"value": "to work in a more scientific way"
			}]
		}, {
			"key": "创造性",
			"trans": [{
				"value": "creativity and innovation"
			}, {
				"value": "creativity"
			}, {
				"cls": {
					"cl": ["科技"]
				},
				"value": "Creativity"
			}, {
				"value": "creative"
			}]
		}, {
			"key": "男性",
			"trans": [{
				"value": "Male"
			}, {
				"value": "man"
			}, {
				"value": "Men"
			}, {
				"value": "androman"
			}]
		}, {
			"key": "独创性",
			"trans": [{
				"value": "originality;originalität"
			}, {
				"value": "originality"
			}, {
				"cls": {
					"cl": ["社科"]
				},
				"value": "originality"
			}, {
				"value": "ingenuity"
			}]
		}, {
			"key": "合法性",
			"trans": [{
				"value": "Legitimacy"
			}, {
				"value": "legality; legitimacy; rightfulness"
			}, {
				"cls": {
					"cl": ["法"]
				},
				"value": "Legality"
			}, {
				"cls": {
					"cl": ["法"]
				},
				"value": "validity"
			}]
		}, {
			"key": "知性",
			"trans": [{
				"value": "understanding; intellect; cognition; Verstand"
			}, {
				"value": "understanding; intellect; cognition"
			}, {
				"value": "Intellectuality"
			}, {
				"value": "Verstand"
			}]
		}]
	},
	"blng_sents_part": {
		"sentence-count": 6,
		"sentence-pair": [{
			"sentence": "性与死离奇相关。",
			"sentence-translation-speech": "Sex+and+death+are+strange+bedfellows.&le=eng",
			"sentence-eng": "<b>性</b>与死离奇相关。",
			"sentence-translation": "Sex and death are strange bedfellows.",
			"speech-size": "10kb",
			"aligned-words": {
				"src": {
					"chars": [{
						"@s": "1",
						"@e": "2",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "0"
					}, {
						"@s": "2",
						"@e": "3",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "1"
					}, {
						"@s": "3",
						"@e": "4",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "2"
					}, {
						"@s": "4",
						"@e": "6",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}]
				},
				"tran": {
					"chars": [{
						"@s": "1",
						"@e": "4",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "0"
					}, {
						"@s": "5",
						"@e": "8",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "1"
					}, {
						"@s": "9",
						"@e": "14",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "2"
					}, {
						"@s": "15",
						"@e": "37",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}]
				}
			},
			"source": "《柯林斯英汉双解大词典》",
			"url": "http://《柯林斯英汉双解大词典》/"
		}, {
			"sentence": "这是社交性的拜访,还是业务性的?",
			"sentence-translation-speech": "Is+this+a+social+visit+%2C+or+is+it+business%3F&le=eng",
			"sentence-eng": "这是社交<b>性</b>的拜访,还是业务<b>性</b>的?",
			"sentence-translation": "Is this a social visit , or is it business?",
			"speech-size": "11kb",
			"aligned-words": {
				"src": {
					"chars": [{
						"@s": "1",
						"@e": "2",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "0"
					}, {
						"@s": "2",
						"@e": "3",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "1"
					}, {
						"@s": "3",
						"@e": "5",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "2"
					}, {
						"@s": "7",
						"@e": "9",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}, {
						"@s": "10",
						"@e": "12",
						"aligns": {
							"sc": [{
								"@id": "4"
							}],
							"tc": [{
								"@id": "4"
							}]
						},
						"@id": "4"
					}, {
						"@s": "12",
						"@e": "15",
						"aligns": {
							"sc": [{
								"@id": "5"
							}],
							"tc": [{
								"@id": "5"
							}]
						},
						"@id": "5"
					}]
				},
				"tran": {
					"chars": [{
						"@s": "1",
						"@e": "3",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "0"
					}, {
						"@s": "4",
						"@e": "8",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "1"
					}, {
						"@s": "11",
						"@e": "17",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "2"
					}, {
						"@s": "18",
						"@e": "23",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}, {
						"@s": "26",
						"@e": "31",
						"aligns": {
							"sc": [{
								"@id": "4"
							}],
							"tc": [{
								"@id": "4"
							}]
						},
						"@id": "4"
					}, {
						"@s": "32",
						"@e": "43",
						"aligns": {
							"sc": [{
								"@id": "5"
							}],
							"tc": [{
								"@id": "5"
							}]
						},
						"@id": "5"
					}]
				}
			},
			"source": "《牛津词典》",
			"url": "http://《牛津词典》/"
		}, {
			"sentence": "举行的会议有地方性的,有全国性的。",
			"sentence-translation-speech": "Meetings+were+held+locally+and+nationally.&le=eng",
			"sentence-eng": "举行的会议有地方<b>性</b>的,有全国<b>性</b>的。",
			"sentence-translation": "Meetings were held locally and nationally.",
			"speech-size": "11kb",
			"aligned-words": {
				"src": {
					"chars": [{
						"@s": "1",
						"@e": "3",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "0"
					}, {
						"@s": "4",
						"@e": "6",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "1"
					}, {
						"@s": "6",
						"@e": "7",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "2"
					}, {
						"@s": "7",
						"@e": "10",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}, {
						"@s": "12",
						"@e": "16",
						"aligns": {
							"sc": [{
								"@id": "4"
							}],
							"tc": [{
								"@id": "4"
							}]
						},
						"@id": "4"
					}]
				},
				"tran": {
					"chars": [{
						"@s": "1",
						"@e": "9",
						"aligns": {
							"sc": [{
								"@id": "1"
							}],
							"tc": [{
								"@id": "0"
							}]
						},
						"@id": "0"
					}, {
						"@s": "10",
						"@e": "14",
						"aligns": {
							"sc": [{
								"@id": "2"
							}],
							"tc": [{
								"@id": "1"
							}]
						},
						"@id": "1"
					}, {
						"@s": "15",
						"@e": "19",
						"aligns": {
							"sc": [{
								"@id": "0"
							}],
							"tc": [{
								"@id": "2"
							}]
						},
						"@id": "2"
					}, {
						"@s": "20",
						"@e": "27",
						"aligns": {
							"sc": [{
								"@id": "3"
							}],
							"tc": [{
								"@id": "3"
							}]
						},
						"@id": "3"
					}, {
						"@s": "32",
						"@e": "42",
						"aligns": {
							"sc": [{
								"@id": "4"
							}],
							"tc": [{
								"@id": "4"
							}]
						},
						"@id": "4"
					}]
				}
			},
			"source": "《牛津词典》",
			"url": "http://《牛津词典》/"
		}],
		"more": "blng_sents",
		"trs-classify": [{
			"proportion": "100%",
			"tr": "全部"
		}, {
			"proportion": "76.8%",
			"tr": "gender"
		}, {
			"proportion": "23.2%",
			"tr": "sex"
		}]
	},
	"ce": {
		"source": {
			"name": "有道词典",
			"url": "http://dict.youdao.com"
		},
		"word": [{
			"trs": [{
				"tr": [{
					"l": {
						"pos": "n.",
						"i": ["", {
							"#text": "sex",
							"@action": "link",
							"@href": "app:ds:sex"
						}],
						"#tran": "性;性别;性行为;色情;引起…的性欲;区别…的性别;"
					}
				}]
			}],
			"phone": "xìng",
			"return-phrase": {
				"l": {
					"i": "性"
				}
			}
		}]
	},
	"wuguanghua": {
		"dataList": [{
			"trs": [{
				"pos": "名",
				"tr": {
					"en": "nature; character; disposition",
					"cn": "性格"
				},
				"sents": [{
					"en": "inherent character; nature",
					"cn": "本性"
				}, {
					"en": "natural instincts; nature",
					"cn": "天性"
				}]
			}, {
				"pos": "名",
				"tr": {
					"en": "property; quality",
					"cn": "性能;性质"
				},
				"sents": [{
					"en": "alcoholic strength",
					"cn": "酒性"
				}, {
					"en": "medicinal properties",
					"cn": "药性"
				}]
			}, {
				"pos": "名",
				"tr": {
					"en": "sex",
					"cn": "性别"
				},
				"sents": [{
					"en": "the male [female] sex",
					"cn": "男[女]性"
				}, {
					"en": "the sexual impulse",
					"cn": "性冲动"
				}, {
					"en": "sex education",
					"cn": "性教育"
				}]
			}, {
				"pos": "名",
				"tr": {
					"subject": "{语}",
					"en": "gender",
					"cn": "名词以及代词、形容词的类别"
				},
				"sents": [{
					"en": "the masculine [feminine, neuter] gender",
					"cn": "阳[阴,中]性"
				}]
			}, {
				"pos": "名",
				"tr": {
					"en": "a surname",
					"cn": "姓氏"
				},
				"sents": [{
					"en": "Xing Kang",
					"cn": "性康"
				}]
			}, {
				"rhetoric": "[后缀",
				"tr": {
					"cn": "]表示性质、范围或方式"
				},
				"sents": [{
					"en": "necessity",
					"cn": "必要性"
				}, {
					"en": "complexity",
					"cn": "复杂性"
				}, {
					"en": "class nature [character]",
					"cn": "阶级性"
				}, {
					"en": "possibility",
					"cn": "可能性"
				}, {
					"en": "flexibility",
					"cn": "灵活性"
				}, {
					"en": "social nature",
					"cn": "社会性"
				}, {
					"en": "correctness",
					"cn": "正确性"
				}]
			}],
			"phone": "[xìng]"
		}],
		"source": {
			"name": "《吴光华汉英大辞典》"
		},
		"word": "性"
	},
	"ce_new": {
		"source": {
			"name": "新汉英大辞典"
		},
		"word": [{
			"trs": [{
				"pos": "名词",
				"tr": [{
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "inherent character; nature;"
								}
							},
							"n": {
								"l": {
									"i": "本性"
								}
							}
						}
					}, {
						"i": {
							"f": {
								"l": {
									"i": "natural instincts; nature"
								}
							},
							"n": {
								"l": {
									"i": "天性"
								}
							}
						}
					}],
					"l": {
						"i": ["(性格) nature; character; disposition:"]
					}
				}, {
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "alcoholic strength;"
								}
							},
							"n": {
								"l": {
									"i": "酒性"
								}
							}
						}
					}, {
						"i": {
							"f": {
								"l": {
									"i": "medicinal properties"
								}
							},
							"n": {
								"l": {
									"i": "药性"
								}
							}
						}
					}],
					"l": {
						"i": ["(性能; 性质) property; quality:"]
					}
				}, {
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "the male [female] sex;"
								}
							},
							"n": {
								"l": {
									"i": "男[女]性"
								}
							}
						}
					}, {
						"i": {
							"f": {
								"l": {
									"i": "the sexual impulse;"
								}
							},
							"n": {
								"l": {
									"i": "性冲动"
								}
							}
						}
					}],
					"l": {
						"i": ["(性别) sex:"]
					}
				}, {
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "the masculine [feminine, neuter] gender"
								}
							},
							"n": {
								"l": {
									"i": "阳 [阴, 中]性"
								}
							}
						}
					}],
					"l": {
						"i": ["{语} (名词以及代词、 形容词的类别) gender:"]
					}
				}, {
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "Xing Kang"
								}
							},
							"n": {
								"l": {
									"i": "性康"
								}
							}
						}
					}],
					"l": {
						"i": ["(姓氏) a surname:"]
					}
				}, {
					"exam": [{
						"i": {
							"f": {
								"l": {
									"i": "necessity;"
								}
							},
							"n": {
								"l": {
									"i": "必要性"
								}
							}
						}
					}, {
						"i": {
							"f": {
								"l": {
									"i": "complexity;"
								}
							},
							"n": {
								"l": {
									"i": "复杂性"
								}
							}
						}
					}],
					"l": {
						"i": ["[后缀] (表示性质、范围或方式):"]
					}
				}]
			}],
			"phone": "xìng",
			"return-phrase": {
				"l": {
					"i": ["性"]
				}
			}
		}]
	},
	"simple": {
		"query": "性",
		"word": [{
			"phone": "xìng",
			"return-phrase": "性"
		}]
	},
	"media_sents_part": {
		"query": "性",
		"sent": [{
			"@mediatype": "video",
			"snippets": {
				"snippet": [{
					"sourceUrl": "http://v.163.com/special/introductiontotheoryofliterature/",
					"streamUrl": "movie=http://dict.youdao.com/purevideo?docid=8603488348192045232&auto=true",
					"swf": "http://shared.ydstatic.com/dict/4.0/simplayer.swf",
					"imageUrl": "http://dict.youdao.com/pureimage?docid=8603488348192045232",
					"name": "耶鲁公开课",
					"source": "文学理论导论课程节选"
				}]
			},
			"chn": "我们都知道李斯特创作的《崔斯坦和伊索德》中“,文学中的死亡瞬间由<b>性</b>管控。<br>",
			"eng": "We all know about \"Liebestod\" in \"Tristan and Isolde,\" the moments of death in literature which obviously are sexually charged.<br>"
		}, {
			"@mediatype": "video",
			"snippets": {
				"snippet": [{
					"sourceUrl": "http://v.163.com/special/introductiontotheoryofliterature/",
					"streamUrl": "movie=http://dict.youdao.com/purevideo?docid=-7776652367891286001&auto=true",
					"swf": "http://shared.ydstatic.com/dict/4.0/simplayer.swf",
					"imageUrl": "http://dict.youdao.com/pureimage?docid=-7776652367891286001",
					"name": "耶鲁公开课",
					"source": "文学理论导论课程节选"
				}]
			},
			"chn": "说到支配<b>性</b>,我们就必须认识到支配并不是不变的。<br>",
			"eng": "Now as soon as we start talking about things like the dominant, we are also aware of the evanescence of dominance.<br>"
		}, {
			"@mediatype": "video",
			"snippets": {
				"snippet": [{
					"sourceUrl": "http://v.163.com/special/milton/",
					"streamUrl": "movie=http://dict.youdao.com/purevideo?docid=-3703444047875550079&auto=true",
					"swf": "http://shared.ydstatic.com/dict/4.0/simplayer.swf",
					"imageUrl": "http://dict.youdao.com/pureimage?docid=-3703444047875550079",
					"name": "耶鲁公开课",
					"source": "弥尔顿课程节选"
				}]
			},
			"chn": "在戏剧中,莎士比亚似乎更代表着一种诱惑,而不是乱<b>性</b>或类似的<b>性</b>关系。<br>",
			"eng": "Shakespeare in the theater seemed to represent a temptation greater even than promiscuous sex or perhaps akin to sex.<br>"
		}]
	},
	"input": "性",
	"baike": {
		"summarys": [{
			"summary": "是指该事物区别于其它事物的内在结构、特质、需要及其与其它事物发生联系的模式。",
			"image": "http://oimagec8.ydstatic.com/image?url=http://c.hiphotos.baidu.com/baike/w%3D268/sign=19bbeaa02ddda3cc0be4bf2639e83905/e1fe9925bc315c60662518d08eb1cb1349547758.jpg&product=dictwiki&w=150",
			"key": "性"
		}],
		"source": {
			"name": "百度百科",
			"url": ""
		}
	},
	"meta": {
		"input": "性",
		"guessLanguage": "zh",
		"isHasSimpleDict": "1",
		"le": "en",
		"lang": "eng",
		"dicts": ["web_trans", "blng_sents_part", "ce", "baike", "meta", "wuguanghua", "ce_new", "simple", "media_sents_part", "newhh"]
	},
	"le": "en",
	"lang": "eng",
	"newhh": {
		"dataList": [{
			"pinyin": "xìng",
			"sense": [{
				"examples": ["人<self>性</self>。"],
				"def": ["人的本性"],
				"cat": "名词"
			}, {
				"examples": ["<self>性</self>急", "秉<self>性</self>", "任<self>性</self>。"],
				"def": ["性情;脾气"],
				"cat": "名词"
			}, {
				"examples": ["药<self>性</self>", "词<self>性</self>。"],
				"def": ["事物的性质、特征"],
				"cat": "名词"
			}, {
				"examples": ["纪律<self>性</self>", "创造<self>性</self>", "特殊<self>性</self>", "弹<self>性</self>。"],
				"def": ["词的后缀。附在某些名词性、动词性、形容词性成分之后,构成抽象名词或区别词等,表示事物的性质、性能、范围或方式等"]
			}, {
				"examples": ["男<self>性</self>", "女<self>性</self>", "雄<self>性</self>。"],
				"def": ["性别"],
				"cat": "名词"
			}, {
				"examples": ["<self>性</self>腺", "<self>性</self>行为。"],
				"def": ["与生殖、性欲有关的"],
				"cat": "名词"
			}, {
				"def": ["一种语法范畴,通过一定的语法形式表示名词、代词、形容词的类别。如俄语名词有阴性、阳性、中性三类。"],
				"cat": "名词"
			}],
			"word": "性"
		}],
		"source": {
			"name": "《现代汉语规范词典》"
		},
		"word": "性"
	}
}
服务级错误码参照
错误码 说明
- -
完整教学代码示例
<?php
/**
 * Created by PhpStorm.
 * User: FZS
 * Time: 2021/09/01 00:38
 */
class freeApi
{
    private $apiUrl;

    public function __construct()
    {
        $this->apiUrl = 'https://dict.youdao.com/jsonapi?q=性';
    }

    /**
     * 获取结果
     * @return array
     */
    public function getResult()
    {
        return file_get_contents($this->apiUrl);
    }
}
package main

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
)

const (
	APIURL   = "https://dict.youdao.com/jsonapi?q=性"
)

func main() {
	queryUrl := fmt.Sprintf("%s",APIURL)
	resp, err := http.Get(queryUrl)
	if err != nil {
		log.Println(err)
		return
	}

	defer resp.Body.Close()

	body, err := ioutil.ReadAll(resp.Body)

	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(string(body))
}