Retrieve summary statistics on the metadata for each program, as well as the current site.
GET
/discovery/programs
const url = 'https://your-candig-domain/query/discovery/programs';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-candig-domain/query/discovery/programsRetrieve summary statistics on the metadata for each program, as well as the current site.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Summary statistics
Media typeapplication/json
Discovery programs
object
site
Whole-site summary statistics
object
programs
Per-program summary statistics
array
Examplegenerated
{ "site": {}, "programs": [ "example" ]}Unspecified server error encountered
Media typeapplication/json
object
query
required
Error object container
object
error
required
Name/type of the error that occurred
string
message
required
Message explaining why the error occurred
string
Example
{ "query": { "error": "ServerError", "message": "An unspecified server error occurred" }}