Yes there is Option API to store site global data.
You can store some global values using add_option()
then can retrive values as get_option()
Example:
add_option( 'option_name', 'option_value', 'deprecated', 'yes' );
//OR
update_option('option_name', 'option_value', 'yes');
//Get the value
$your_data = get_option('option_name', 'option_default_value');
echo $your_data;