List Saved Searches
curl --request GET \
--url https://app.govly.com/api/enterprise/opportunities/saved_searches \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.govly.com/api/enterprise/opportunities/saved_searches"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.govly.com/api/enterprise/opportunities/saved_searches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.govly.com/api/enterprise/opportunities/saved_searches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.govly.com/api/enterprise/opportunities/saved_searches"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.govly.com/api/enterprise/opportunities/saved_searches")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govly.com/api/enterprise/opportunities/saved_searches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"active": true,
"createdAt": "<string>",
"createdByEmail": "<string>",
"lastMatchedAt": "<string>",
"matchCount": 123,
"name": "<string>",
"query": {
"sortDirection": "<string>",
"feeds": [
{}
],
"query": "<string>",
"status": [
{}
],
"buyerIds": [
{}
],
"recordType": [
{}
],
"excludeIgnored": [
{}
],
"dateRangeParam": "<string>",
"buyerMatchById": true,
"includeSubBuyers": true,
"predictions": true,
"searchType": "<string>",
"searchFields": {}
},
"updatedAt": "<string>"
}
],
"meta": {
"currentPage": 123,
"per": 123,
"total": 123,
"totalPages": 123
}
}Saved Searches
List Saved Searches
Returns a paginated list of saved opportunity searches for your organization
GET
/
api
/
enterprise
/
opportunities
/
saved_searches
List Saved Searches
curl --request GET \
--url https://app.govly.com/api/enterprise/opportunities/saved_searches \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.govly.com/api/enterprise/opportunities/saved_searches"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.govly.com/api/enterprise/opportunities/saved_searches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.govly.com/api/enterprise/opportunities/saved_searches",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.govly.com/api/enterprise/opportunities/saved_searches"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.govly.com/api/enterprise/opportunities/saved_searches")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govly.com/api/enterprise/opportunities/saved_searches")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"active": true,
"createdAt": "<string>",
"createdByEmail": "<string>",
"lastMatchedAt": "<string>",
"matchCount": 123,
"name": "<string>",
"query": {
"sortDirection": "<string>",
"feeds": [
{}
],
"query": "<string>",
"status": [
{}
],
"buyerIds": [
{}
],
"recordType": [
{}
],
"excludeIgnored": [
{}
],
"dateRangeParam": "<string>",
"buyerMatchById": true,
"includeSubBuyers": true,
"predictions": true,
"searchType": "<string>",
"searchFields": {}
},
"updatedAt": "<string>"
}
],
"meta": {
"currentPage": 123,
"per": 123,
"total": 123,
"totalPages": 123
}
}Request
integer
default:1
Page number for pagination
integer
default:50
Number of results per page
Response
array
Array of saved search objects
Show Saved Search Object
Show Saved Search Object
string
Unique identifier for the saved search
boolean
Whether the saved search is currently active
string
ISO 8601 timestamp when the saved search was created
string
Email of the user who created the saved search
string
ISO 8601 timestamp when the saved search last found a matching opportunity
integer
Number of opportunities matching the saved search
string
Name of the saved search
object
Search criteria configuration
Show Query Object
Show Query Object
string
Field to sort results by
array
List of contract vehicle feeds to search
string
Search query string
array
List of opportunity statuses to include
array
List of buyer IDs to filter by
array
Types of records to include
string
Direction to sort results (
asc or desc)array
List of opportunity IDs to exclude
string
Field to use for date filtering
boolean
Whether to match buyers by ID
boolean
Whether to include sub-organizations of matched buyers
boolean
Whether to include AI-predicted opportunities
string
Type of search to perform
object
Configuration for field-specific search options
string
ISO 8601 timestamp when the saved search was last updated
Was this page helpful?
⌘I