GET api/search/{searchId}/counts Authentication required
Use this method to get the counts produced by a previous search
Request
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
searchId |
Id of the search |
integer |
Required |
Response
Returns the counts produced by a search. If several categories or languages were specified in the search filters, you will also get the detailed count for each
Output : object (See Model)Ouput Sample
{
"total": 1000,
"hasAddress": 987,
"hasPhone": 887,
"hasFax": 543,
"hasMobile": 678,
"hasWebsite": 624,
"hasEmail": 438,
"hasContact": 888,
"hasAdmin": 903,
"hasNationalID": 678,
"hasGeolevel": 253,
"categoriesCounts": [
{
"categoryType": "Infobel",
"category": "017116",
"resultTotal": 987,
"resultAddress": 965,
"resultPhone": 796,
"resultFax": 243,
"resultMobile": 456,
"resultWebsite": 402,
"resultEmail": 386,
"resultContact": 888,
"resultAdmin": 873,
"resultNationalID": 235,
"resultGeolevel": 674
}
],
"regionsCounts": [
{
"region": "Brussels",
"resultTotal": 987,
"resultAddress": 965,
"resultPhone": 796,
"resultFax": 243,
"resultMobile": 456,
"resultWebsite": 402,
"resultEmail": 386,
"resultContact": 888,
"resultAdmin": 873,
"resultNationalID": 235,
"resultGeolevel": 674
}
],
"provincesCounts": [
{
"province": "Brussels",
"resultTotal": 987,
"resultAddress": 965,
"resultPhone": 796,
"resultFax": 243,
"resultMobile": 456,
"resultWebsite": 402,
"resultEmail": 386,
"resultContact": 888,
"resultAdmin": 873,
"resultNationalID": 235,
"resultGeolevel": 674
}
],
"citiesCounts": [
{
"city": "Brussels",
"resultTotal": 987,
"resultAddress": 965,
"resultPhone": 796,
"resultFax": 243,
"resultMobile": 456,
"resultWebsite": 402,
"resultEmail": 386,
"resultContact": 888,
"resultAdmin": 873,
"resultNationalID": 235,
"resultGeolevel": 674
}
],
"geoLevelsCounts": [
{
"geoLevel": 3,
"description": "Street Segment Interpolated",
"resultTotal": 987,
"resultAddress": 965,
"resultPhone": 796,
"resultFax": 243,
"resultMobile": 456,
"resultWebsite": 402,
"resultEmail": 386,
"resultContact": 888,
"resultAdmin": 873,
"resultNationalID": 235,
"resultGeolevel": 674
}
]
}
<SearchCounts xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CategoriesCounts>
<CategoryCounts>
<Category>017116</Category>
<CategoryType>Infobel</CategoryType>
<Description i:nil="true" />
<Language i:nil="true" />
<ResultAddress>965</ResultAddress>
<ResultAdmin>873</ResultAdmin>
<ResultContact>888</ResultContact>
<ResultEmail>386</ResultEmail>
<ResultFax>243</ResultFax>
<ResultGeolevel>674</ResultGeolevel>
<ResultMobile>456</ResultMobile>
<ResultNationalID>235</ResultNationalID>
<ResultPhone>796</ResultPhone>
<ResultTotal>987</ResultTotal>
<ResultWebsite>402</ResultWebsite>
</CategoryCounts>
</CategoriesCounts>
<CitiesCounts>
<CityCounts>
<City>Brussels</City>
<Code i:nil="true" />
<ResultAddress>965</ResultAddress>
<ResultAdmin>873</ResultAdmin>
<ResultContact>888</ResultContact>
<ResultEmail>386</ResultEmail>
<ResultFax>243</ResultFax>
<ResultGeolevel>674</ResultGeolevel>
<ResultMobile>456</ResultMobile>
<ResultNationalID>235</ResultNationalID>
<ResultPhone>796</ResultPhone>
<ResultTotal>987</ResultTotal>
<ResultWebsite>402</ResultWebsite>
</CityCounts>
</CitiesCounts>
<CountriesCounts i:nil="true" />
<CountryCode i:nil="true" />
<CountryName i:nil="true" />
<DataType i:nil="true" />
<GeoLevelsCounts>
<GeoLevelCounts>
<Description>Street Segment Interpolated</Description>
<GeoLevel>3</GeoLevel>
<ResultAddress>965</ResultAddress>
<ResultAdmin>873</ResultAdmin>
<ResultContact>888</ResultContact>
<ResultEmail>386</ResultEmail>
<ResultFax>243</ResultFax>
<ResultGeolevel>674</ResultGeolevel>
<ResultMobile>456</ResultMobile>
<ResultNationalID>235</ResultNationalID>
<ResultPhone>796</ResultPhone>
<ResultTotal>987</ResultTotal>
<ResultWebsite>402</ResultWebsite>
</GeoLevelCounts>
</GeoLevelsCounts>
<HasAddress>987</HasAddress>
<HasAdmin>903</HasAdmin>
<HasContact>888</HasContact>
<HasEmail>438</HasEmail>
<HasFax>543</HasFax>
<HasGeolevel>253</HasGeolevel>
<HasMobile>678</HasMobile>
<HasNationalID>678</HasNationalID>
<HasPhone>887</HasPhone>
<HasWebsite>624</HasWebsite>
<ProvincesCounts>
<ProvinceCounts>
<Code i:nil="true" />
<Province>Brussels</Province>
<ResultAddress>965</ResultAddress>
<ResultAdmin>873</ResultAdmin>
<ResultContact>888</ResultContact>
<ResultEmail>386</ResultEmail>
<ResultFax>243</ResultFax>
<ResultGeolevel>674</ResultGeolevel>
<ResultMobile>456</ResultMobile>
<ResultNationalID>235</ResultNationalID>
<ResultPhone>796</ResultPhone>
<ResultTotal>987</ResultTotal>
<ResultWebsite>402</ResultWebsite>
</ProvinceCounts>
</ProvincesCounts>
<RegionsCounts>
<RegionCounts>
<Code i:nil="true" />
<Region>Brussels</Region>
<ResultAddress>965</ResultAddress>
<ResultAdmin>873</ResultAdmin>
<ResultContact>888</ResultContact>
<ResultEmail>386</ResultEmail>
<ResultFax>243</ResultFax>
<ResultGeolevel>674</ResultGeolevel>
<ResultMobile>456</ResultMobile>
<ResultNationalID>235</ResultNationalID>
<ResultPhone>796</ResultPhone>
<ResultTotal>987</ResultTotal>
<ResultWebsite>402</ResultWebsite>
</RegionCounts>
</RegionsCounts>
<Total>1000</Total>
</SearchCounts>