/api/v1/searchSearch: count a filter set
Counts and a summary for a filter set. It never returns rows. Returns a search_id you can page through afterwards, so you size a segment before spending download credits on it.
Body fields
| Field | Type | Meaning |
|---|---|---|
| filters | array | The filter expression. See the operator table below. |
| search | string | Global substring search across six columns. ANDs onto the whole expression. |
| sort | array | Up to 8 keys: [{"col": "products", "dir": "desc"}] |
Request
curl -X POST https://go.myleadfox.com/api/v1/search \
-H 'Authorization: Bearer mlf_live_YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{
"filters": [
{ "kind": "dropdown", "col": "country", "values": ["US"] }
]
}'200 response
{
"search_id": "de11cac33c3da5df",
"search_url": "/grid/de11cac33c3da5df",
"total": 1281396,
"pages": 12814,
"page_size": 100,
"filters": [
{ "kind": "dropdown", "col": "country", "values": ["US"] }
],
"search": null,
"sort": [],
"global_search": false,
"credits": {
"search_remaining": 4999,
"download_remaining": 200000,
"enrich_remaining": 500,
"charged": 1,
"charged_unit": "searches"
}
}