Methods
build() → {Filter}
- Source:
Returns:
- Type
- Filter
category(c) → {this}
Limit the results to posts originating from sites categorized as one (or more) of the following.
Return posts from sites categorized as sports or games related: (site_category:sports OR site_category:games)
Parameters:
Name | Type | Description |
---|---|---|
c |
String | Array |
- Source:
Returns:
- Type
- this
country(c) → {this}
Webhose.io uses heuristics to determine the country origin of a site, by taking into account the site's IP, TLD and language.
Many times the country origin isn't conclusive so it isn't set, therefor filtering by country may result in much less data than when filtering by language.
Return posts from sites from Hong Kong: thread.country:HK
To get the full country code list, visit countrycode.org.
Parameters:
Name | Type | Description |
---|---|---|
c |
String |
- Source:
Returns:
- Type
- this
domainRank(d, {@link) → {this}
A rank that specifies how popular a domain is (by monthly traffic)
Search for posts from the top 1,000 sites: domain_rank:<1000
Parameters:
Name | Type | Description |
---|---|---|
d |
Number | |
{@link |
COMPARATOR} |
- Source:
Returns:
- Type
- this
full(f) → {this}
Filter sites based on the domain and optionally by their sub-domain
Return posts from Yahoo answers: site_full:answers.yahoo.com
Parameters:
Name | Type | Description |
---|---|---|
f |
String |
- Source:
Returns:
- Type
- this
site(s) → {SiteFilterBuilder}
Formats specific site query
Parameters:
Name | Type | Description |
---|---|---|
s |
String | Array | Limit the results to a specific site or sites |
- Source:
Returns:
this
- Type
- SiteFilterBuilder
suffix(s) → {this}
Limit the results to a specific site suffix
Return posts from sites where their top level domain (TLD) ends with .fr:
Parameters:
Name | Type | Description |
---|---|---|
s |
String |
- Source:
Returns:
- Type
- this
type(t) → {this}
What type of sites to search in (the default is any). Available Types:
news
blogs
discussions
Only news: site_type:news
News & Blogs: (site_type:news OR site_type:blogs)
Parameters:
Name | Type | Description |
---|---|---|
t |
String | Array | formats type |
- Source:
Returns:
- Type
- this