google-analytics

Ga Auth Url

Return the Google OAuth URL for GA4 analytics.readonly scope.

Before generating the URL the endpoint checks the user's billing plan to ensure they haven't exceeded their ga_connections.count cap.

get/ga/auth-url

Request

  • Base URL: https://api.xeorank.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.xeorank.com/ga/auth-url
  • Auth: API key in header X-Agent-Key

Query parameters

emailstring required

Signed-in user email

site_idstring required

Site UUID to connect GA4 to

originstring

Frontend origin to return to after auth (e.g. https://xeorank.com)

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.