Site Filtering
Note
Filtering is a simple match of the string. Wildcards, regular expressions etc. are not available. Both query parameters may be used together (e.g. ?titleLike=adzerk&urlLike=.com)
Caution
Some special characters need to be urlencoded to be used in the query parameter. For example:
- %23
% - %25
& - %26
Filtering Parameters
titleLike
Type: string
Filters the stream of sites based on the Title. This is a simple match - if the string provided in the query parameter is present anywhere in a site's Title, that site will be returned in the results. Example: ?titleLike=adzerk
urlLike
Type: string
Filters the stream of sites based on the Url. This is a simple match - if the string provided in the query parameter is present anywhere in a site's Url, that site will be returned in the results. Example: ?urlLike=adzerk.com
API Examples
Return all sites
curl -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" -N "https://api.kevel.co/v1/fast/site"
Filter based on title & URL
curl -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" -N "https://api.kevel.co/v1/fast/site?titleLike=site&urlLike=.com"
Sample JSON Response
{
"Id": 1234,
"Title": "A Site Name",
"IsDeleted": false,
"PublisherAccountId": 1234,
"NetworkMargin":null,
"Url": "http://www.example.com"
}
{
"Id": 1235,
"Title": "Another Site Name",
"IsDeleted": false,
"PublisherAccountId": 1234,
"NetworkMargin":null,
"Url": "http://www.example2.com"
}