Google Analytics provides programmatic access to configuration data
through the Management API.
With the Management API you can query for a user's account, web properties, and views (profiles), determine what account segments the user has configured, even retrieve information about the goals in a configured view (profile).
What To Use
Access the following configuration entities:
Looking for report data? Use the Reporting APIs.