Analyse Web Page
POST/v2/analyze
Analyse the content of a webpage by using the url property of the request.
Request
- application/json
Body
required
html
object
The html fragment or html page to analyze.
The html fragment to analyze.
The html page to analyze, either fragment or page should be present
The url of the page to analyze.
Possible values: [CHROME, PLAIN_HTTP, CHROME, PLAIN_HTTP]
The client which the analysis should use to extract the content, by default chrome is used.
Possible values: >= 2 characters and <= 2 characters
The content language, 2 letters code, e.g. 'en'.
A textual fragment.
An array of item IDs to exclude from the analysis results.
The scope of the analysis, one of 'local', 'network', 'cloud-only', 'network-only' or 'all'.
Filter out results that don't have at least the specified number of occurrences. By default 1.
When returning an interpolated HTML results, matches should have the 'wl-link' class. By default 'no'.
Responses
- 200
- 401
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
entities
object
A map of entity URI to the respective entity.
property name*
Entity
Entity
The entity URI.
Confidence score representing the entity match level.
The main schema type for the current entity.
The list of schema types which the entity can be classified to.
The title of the entity.
The description about the entity.
The list of entity image URIs.
The list of entity sameas URIs.
properties
object
The entity properties.
The latitude.
The longitude.
annotations
object
A map of annotation id to the respective annotation.
property name*
Annotation
Object representing single annotation.
An unique id.
The starting posistion of annotation in content (zero-indexed & non negative ).
The ending posistion of annotation in content (zero-indexed & non negative ).
The annotated text.
entityMatches
object[]
The list of entities which the annotation matches.
Confidence score for the current entity.
The entity URI.
images
object[]
A list of images.
The title of the image.
The image URI.
A list of languages.
topics
object[]
A list of topics.
The topic title.
The topic description.
The topic URI.
The topic confidence score.
A list of image URIs.
A list of sameas URIs.
The text supplied for analysis.
{
"entities": {},
"annotations": {},
"images": [
{
"label": "string",
"url": "string"
}
],
"languages": [
"string"
],
"topics": [
{
"label": "string",
"description": "string",
"uri": "string",
"confidence": 0,
"images": [
"string"
],
"sameAs": [
"string"
]
}
],
"content": "string"
}
Authentication Failure
Server Error