Getting the status of all crawler

The WEB crawler index web sites -- based on wildcards patterns for exclusion and inclusion.

Use this API to obtain the status of all crawler.

Requirement: OpenSearchServer v1.5

Call parameters

URL: /services/rest/index/*/crawler/web/run

Method: GET

Header (optional returned type):

  • Accept: application/json
  • Accept: application/xml

URL parameters:

  • index_name : it's the '*' symbol in the url. it's for have the status of all index.

    Success response

    The status has been returned.

HTTP code:

Content success(application/json):

"successful": true,
"info": "All the client's status",
"details": {
"Dvorak": "STARTED",
"ds": "STOPPING",
"test": "STOPPED"

**Content error(application/json):** { "successful": false, "info": "Don't have any index", }

Error response

The request failed. The reason is provided in the content.

HTTP code:

Sample call

Using CURL:

curl -XGET http://localhost:8080/services/rest/index/*/crawler/web/run

Using jQuery:

type: "GET",
dataType: "json",
url: "http://localhost:8080/services/rest/index/*/crawler/web/run"
}).done(function (data) {

View/edit on GitHub