An API-first service to filter web searches with AI.
query: Your search term (e.g., "AI in medicine").dateFilter: The start date in YYYY-MM-DD format.numResults: (Optional) The maximum number of results to return.Click the link below or construct a similar URL in your browser to see the results. Replace YOUR_APP_URL with your application's actual URL (e.g., http://localhost:9002).
For programmatic use, set the 'Accept' header to 'application/json' to receive a JSON response.
$searchQuery = "AI in search engines"
$filterDate = "2023-01-01"
$numResults = 5
$encodedQuery = [System.Web.HttpUtility]::UrlEncode($searchQuery)
# Replace YOUR_APP_URL with the actual URL of this service
$url = "YOUR_APP_URL/?query=$encodedQuery&dateFilter=$filterDate&numResults=$numResults"
$headers = @{ "Accept" = "application/json" }
$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get
# The filtered results are in $response.filteredResults
$response.filteredResults | ForEach-Object {
[PSCustomObject]@{
Title = $_.title
Url = $_.url
Published = $_.publishDate
Overview = $_.overview
Summary = $_.summary
}
} | Format-Table