Statistics
These endpoints provide access to some statistical information basic information about snapshots (and panels).
/api/stats
Returns a list of Stats-Objects describing various descriptive indicators of snapshots.
| Parameter | Description |
|---|---|
|
Optional. The name of a snapshot. Can be specified multiple times. |
|
Optional. The name of a panel. One of 'snapshot' or 'panel' has to be specified. |
$ curl 'http://localhost:8080/api/stats?snapshot=20121227_intermediaries' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 99
Content-Type: application/json
Content-Length: 632
{
"responseHeader" : {
"httpStatus" : null,
"msg" : "",
"query" : "http://localhost:8080/api/stats?snapshot=20121227_intermediaries",
"state" : "OK"
},
"content" : [ {
"importedDomains" : 114,
"importedHtmlDocs" : 274126,
"importedKBytes" : -1,
"indexedDocs" : 223686,
"indexedDomains" : 110,
"seedsActual" : 157,
"seedsCrawled" : 141,
"seedsInitial" : 122,
"seedsNotCrawled" : 16,
"selection" : null,
"snapshot" : "20121227_intermediaries"
} ],
"page" : {
"size" : 2000,
"number" : 0,
"totalElements" : 1,
"totalPages" : 1
},
"links" : { }
}
| Name | Description |
|---|---|
snapshot |
The snapshot. |
selection |
The selection. Might be null, when no Seleciton is present. |
seedsInitial |
The number for seeds which have been used as input for the crawl. |
seedsActual |
The number of seeds which have been used for the crawl. Includes possible redirects and seeds which could not be crawled. |
seedsCrawled and seedsNotCrawled |
Should be self explanotory. |
importedDomains |
The number of seeds which have been actually imported. |
importedHtmlDocs |
The number of imported documents with the mime-type "text/html" |
importedKBytes (currently not computed) |
The complete size of the imported documents. Includes possible duplicated documents. |
indexedSites |
The number of sites which have been indexed. |
indexedDocs |
The number of indexed documents. |
/api/stats/domains
Returns a list of DomainStats-Objects describing descriptive indicators for all seed-domains of a given snapshot.
| Parameter | Description |
|---|---|
|
Optional. The name of a snapshot. Can be specified multiple times. |
|
Optional. The name of a panel. One of 'snapshot' or 'panel' has to be specified. |
$ curl 'http://localhost:8080/api/stats/domains?snapshot=20121227_intermediaries&page=0&size=2' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 99
Content-Type: application/json
Content-Length: 806
{
"responseHeader" : {
"httpStatus" : null,
"msg" : "",
"query" : "http://localhost:8080/api/stats/domains?snapshot=20121227_intermediaries&page=0&size=2",
"state" : "OK"
},
"content" : [ {
"snapshot" : "20121227_intermediaries",
"selection" : null,
"domain" : "www.dfg.de",
"importedHtmlDocs" : 9877,
"importedKBytes" : 0,
"indexedDocs" : 7623
}, {
"snapshot" : "20121227_intermediaries",
"selection" : null,
"domain" : "www.oaq.ch",
"importedHtmlDocs" : 2613,
"importedKBytes" : 0,
"indexedDocs" : 1221
} ],
"page" : {
"size" : 2,
"number" : 0,
"totalElements" : 114,
"totalPages" : 57
},
"links" : {
"next" : "http://localhost:8080/api/stats/domains?snapshot=20121227_intermediaries&page=1&size=2"
}
}