# Public API Request to see result from specify domain-filter

**URL:** <https://community.swiftype.com/t/public-api-request-to-see-result-from-specify-domain-filter/449>\
**Category:** API\
**Tags:** api\
**Created:** [September 29, 2017, 10:22am UTC](https://community.swiftype.com/t/public-api-request-to-see-result-from-specify-domain-filter/449 "2017-09-29T10:22:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav.soni](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gaurav.soni](https://community.swiftype.com/u/gaurav.soni)\
**Post date:** [September 29, 2017, 10:22am UTC](https://community.swiftype.com/t/public-api-request-to-see-result-from-specify-domain-filter/449/1 "2017-09-29T10:22:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mike](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/mike/32/37_2.png) [@mike](https://community.swiftype.com/u/mike)\
**Post date:** [October 26, 2017, 2:37am UTC](https://community.swiftype.com/t/public-api-request-to-see-result-from-specify-domain-filter/449/2 "2017-10-26T02:37:44Z")

</div>

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:

> **[Search | Swiftype Documentation](https://swiftype.com/documentation/site-search/searching)**
>
> Learn how to get the most out of Swiftype

> **[Search | Swiftype Documentation](https://swiftype.com/documentation/site-search/searching#public_search)**
>
> Learn how to get the most out of Swiftype

> **[API Overview | Swiftype Documentation](https://swiftype.com/documentation/site-search/overview)**
>
> Learn how to get the most out of Swiftype
