Skip to main content

try_api

Function try_api 

Source
pub async fn try_api(
    domain: &str,
    urls: &[String],
    client: &HttpClient,
) -> Option<Vec<ApiRecord>>
Expand description

Try to fetch data from a known public API for the given domain.

Returns Some(records) if the domain has a known API and data was fetched. Returns None for unknown domains (silent skip).