Public API Request to see result from specify domain-filter

We have added domain-filter in our webpage.

<meta class="swiftype" name="domain-filter" data-type="string" content="Doc1" />
<meta class="swiftype" name="domain-filter" data-type="string" content="Doc2" />

How can I use Public API request to get results from just Doc1?

Can someone give a sample?

Thanks,
Gaurav Soni

Hey Gaurav,

Sorry for the delay! The additional syntax for passing a filter option when making a public request will be like so:

filters[DOCUMENT_TYPE][]=VALUE

Crawler-based engines have a default document type value of page, so your request might look like:

https://search-api.swiftype.com/api/v1/public/engines/search.json?q=QUERY&engine_key=YOUR_ENGINE_KEY&filters[page][domain-filter]=Doc1

For additional detail, you can reference the following documentation links: