Retrieve summary statistics on the metadata for each program, as well as the current site.
GET
/discovery/programs
const url = 'https://raw.githubusercontent.com/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://raw.githubusercontent.com/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 type application/json
Discovery programs
object
site
Whole-site summary statistics
object
programs
Per-program summary statistics
array
Example generated
{ "site": {}, "programs": [ "example" ]}Unspecified server error encountered
Media type application/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" }}