Multi Search

The Multi Search API enables multiple searches to be performed in one API call. The parameters for each search are documented in the Search API.

Example API Call

curl -XGET http://a3pi.active.com/v2/multisearch?query_1=[query=running%2526category=event]&query_2=[query=cycling&category=races]

Sample Response

{
    "query_1": {
          "results": [
              {
                  "assetStatus": {
                      "assetStatusId": "2",
                      "assetStatusName": "VISIBLE",
                      "isSearchable": "true",
                      "isDeleted": "false",
                      "createdDate": "2012-05-09T09:18:06",
                      "modifiedDate": "2012-05-09T09:18:06"
                  },
              ...
    },
    "query_2": {
          "results": [
              ...
    }
}

Parameters

query_{your unique query name}
Required string - The Search API parameters for this individual query. The format for the value is the parameters for the query surrounded by square brackets. The parameters of the query are separated by the double url encoded value for the ampersand which is %2526. The resultset returned with be a JSON object containing the results for all of the queries specified. The results can be accessed by the query parameter name as the key.

query_my_query=[query=running%2526category=event%2526]