# 什么是项目答案搜索？What is Project Answer Search?

## 终结点Endpoint

``````https://api.labs.cognitive.microsoft.com/answerSearch/v7.0/search?q=what+is+circumference+of+the=earth?&mkt=en-us

``````

## 响应对象Response object

``````BingAPIs-TraceId: AB2E75C998614ADB8EBF5110DF648298
X-MSEdge-ClientID: 1E48FC4F7B8768C80B14F7997A106906
BingAPIs-SessionId: 0504DDD6DAE84861A4842306F8DA7A58
BingAPIs-Market: en-US
X-MSEdge-Ref: Ref A: AB2E75C998614ADB8EBF5110DF648298 Ref B: CO1EDGE0322 Ref C: 2018-04-19T19:57:13Z

JSON Response:

{
"_type": "SearchResponse",
"queryContext": {
"originalQuery": "what is the circumference of earth"
},
"webPages": {
"webSearchUrl": "https://www.bing.com/search?q\u003dwhat+is+the+circumference+of+earth",
"totalEstimatedMatches": 217000,
"value": [
{
"id": "https://www.bingapis.com/api/v7/#WebPages.0",
"name": "Circumference of the Earth - Universe Today",
"url": "https://www.universetoday.com/26461/circumference-of-the-earth/",
"isFamilyFriendly": true,
"displayUrl": "https://www.universetoday.com/26461/circumference-of-the-earth",
"snippet": "The circumference of the Earth in kilometers is 40,075 km, and the circumference of the Earth in miles is 24,901. In other words, if you could drive your car around the equator of the Earth (yes, even over the oceans), youâ€™d put on an extra 40,075 km on the odometer.",
{
}
],
"dateLastCrawled": "2018-04-12T14:13:00.0000000Z",
"language": "en"
},
{
"id": "https://www.bingapis.com/api/v7/#WebPages.1",
"name": "Earth - Wikipedia",
"url": "https://en.wikipedia.org/wiki/Earth",
{
"name": "Earth"
},
{
"name": "Earth"
}
],
"isFamilyFriendly": true,
"displayUrl": "https://en.wikipedia.org/wiki/Earth",
"snippet": "Circumference: 40 075.017 km equatorial (24 901.461 mi) ... Earth is the third planet from the Sun and the only object in the Universe known to harbor life.",
{
"name": "Moon",
"url": "https://en.wikipedia.org/wiki/Moon"
},
{
"name": "Planet",
"url": "https://en.wikipedia.org/wiki/Planet"
},
{
"name": "Quasi-Satellites",
"url": "https://en.wikipedia.org/wiki/Quasi-satellite"
},
{
"name": "World Population",
"url": "https://en.wikipedia.org/wiki/World_population"
},
. . .

]
},
"entities": {
"value": [
{
"id": "https://www.bingapis.com/api/v7/#Entities.0",
"contractualRules": [
{
"targetPropertyName": "description",
"mustBeCloseToContent": true,
"name": "CC-BY-SA",
},
},
{
"targetPropertyName": "description",
"mustBeCloseToContent": true,
"text": "Wikipedia",
"url": "https://en.wikipedia.org/wiki/Earth"
},
{
"targetPropertyName": "image",
"mustBeCloseToContent": true,
"url": "https://en.wikipedia.org/wiki/Earth"
}
],
"webSearchUrl": "https://www.bing.com/entityexplore?q\u003dEarth\u0026filters\u003dsid:%226ddb3372-4801-5567-321e-e8a53bd774a4%22\u0026elv\u003dAXXfrEiqqD9r3GuelwApulpmymQx!ODfuQu*veOQHkvP0!Zbvi5F5tVcMSDJvDEWiQWwrdueYTtIszgj03oFQHykYYLYgq3q5!Sf00QxXGIS",
"name": "Earth",
"image": {
"name": "Earth",
"thumbnailUrl": "https://www.bing.com/th?id\u003dA3ab623665ab412f386c162bd29f0683a\u0026w\u003d110\u0026h\u003d110\u0026c\u003d7\u0026rs\u003d1\u0026qlt\u003d80\u0026cdv\u003d1\u0026pid\u003d16.1",
"provider": [
{
"_type": "Organization",
"url": "https://en.wikipedia.org/wiki/Earth"
}
],
"width": 110,
"height": 110,
"sourceWidth": 799,
"sourceHeight": 800
},
"description": "Earth is the third planet from the Sun and the only object in the Universe known to harbor life. According to radiometric dating and other sources of evidence, Earth formed over 4.5 billion years ago. Earth\u0027s gravity interacts with other objects in space, especially the Sun and the Moon, Earth\u0027s only natural satellite. Earth revolves around the Sun in 365.26 days, a period known as an Earth year. During this time, Earth rotates about its axis about 366.26 times.",
"entityPresentationInfo": {
"entityScenario": "DominantEntity",
"entityTypeHints": [
"Generic"
]
},
"bingId": "6ddb3372-4801-5567-321e-e8a53bd774a4"
}
]
},
"facts": {
"id": "https://www.bingapis.com/api/v7/#Facts",
"contractualRules": [
{
"text": "www.universetoday.com/26461/circumference-of-the-earth/",
"url": "http://www.universetoday.com/26461/circumference-of-the-earth/"
}
],
{
"providerDisplayName": "www.universetoday.com/26461/circumference-of-the-earth/",
"seeMoreUrl": "http://www.universetoday.com/26461/circumference-of-the-earth/"
}
],
"value": [
{
"description": "The circumference of the Earth in kilometers is 40,075 km, and the circumference of the Earth in miles is 24,901. In other words, if you could drive your car around the equator of the Earth (yes, even over the oceans), youâ€™d put on an extra 40,075 km on the odometer.",
"subjectName": ""
}
]
},
"rankingResponse": {
"mainline": {
"items": [
{
"value": {
"id": "https://www.bingapis.com/api/v7/#Facts"
}
},
{
"resultIndex": 0,
"value": {
"id": "https://www.bingapis.com/api/v7/#WebPages.0"
}
},
{
"resultIndex": 1,
"value": {
"id": "https://www.bingapis.com/api/v7/#WebPages.1"
}
},
{
"resultIndex": 2,
"value": {
"id": "https://www.bingapis.com/api/v7/#WebPages.2"
}
},

. . .
]
},
"sidebar": {
"items": [
{
"resultIndex": 0,
"value": {
"id": "https://www.bingapis.com/api/v7/#Entities.0"
}
}
]
}
}
}

``````

## 拒绝服务与限制Denial-of-service versus throttling

``````        "value" : [{
"contractualRules" : [
. . .
{
"targetPropertyName" : "image",
"mustBeCloseToContent" : true,
"url" : "http:\/\/en.wikipedia.org\/wiki\/Space_Needle"
}
],
. . .
"image" : {
"name" : "Space Needle",
"thumbnailUrl" : "https:\/\/www.bing.com\/th?id=A46378861201...",
"provider" : [{
"_type" : "Organization",
"url" : "http:\/\/en.wikipedia.org\/wiki\/Space_Needle"
}],
"width" : 110,
"height" : 110
},
. . .
}]
``````

``````"entities" : {
"value" : [{
. . .
"description" : "Peyton Williams Manning is a former American....",
. . .
"contractualRules" : [{
"targetPropertyName" : "description",
"mustBeCloseToContent" : true,
"text" : "en.wikipedia.org",
},
. . .

``````

LinkAttributionTextAttribution 规则通常用于识别数据提供程序。The LinkAttribution and TextAttribution rules are typically used to identify the provider of the data. `targetPropertyName` 字段识别该规则适用的字段。The `targetPropertyName` field identifies the field that the rule applies to.