Analytics Hub API
Exchange data and analytics assets securely and efficiently.
Data & analytics#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Exchange data and analytics assets securely and efficiently.
Endpoints 20
organizations.locations.dataExchanges
- GETLists all data exchanges from projects in a given organization and location.
/v1/:organization/dataExchanges?pageSize=0&pageToken=stringLists all data exchanges from projects in a given organization and location.
projects.locations.dataExchanges
- GETLists all data exchanges in a given project and location.
/v1/:parent/dataExchanges?pageSize=0&pageToken=stringLists all data exchanges in a given project and location. - POSTCreates a new data exchange.
/v1/:parent/dataExchanges?dataExchangeId=stringCreates a new data exchange.
projects.locations.subscriptions
- GETGets the details of a Subscription.
/v1/:nameGets the details of a Subscription. - DELETEDeletes a subscription.
/v1/:nameDeletes a subscription. - POSTGets the IAM policy.
/v1/:resource:getIamPolicyGets the IAM policy. - POSTSets the IAM policy.
/v1/:resource:setIamPolicySets the IAM policy. - GETLists all subscriptions in a given project and location.
/v1/:parent/subscriptions?filter=string&pageSize=0&pageToken=stringLists all subscriptions in a given project and location. - POSTRefreshes a Subscription to a Data Exchange
/v1/:name:refreshRefreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it… - POSTRevokes a given subscription.
/v1/:name:revokeRevokes a given subscription.
projects.locations.dataExchanges.queryTemplates
- PATCHUpdates an existing QueryTemplate
/v1/:name?updateMask=stringUpdates an existing QueryTemplate - POSTApproves a query template.
/v1/:name:approveApproves a query template. - GETLists all QueryTemplates in a given project and location.
/v1/:parent/queryTemplates?pageSize=0&pageToken=stringLists all QueryTemplates in a given project and location. - POSTCreates a new QueryTemplate
/v1/:parent/queryTemplates?queryTemplateId=stringCreates a new QueryTemplate - POSTSubmits a query template for approval.
/v1/:name:submitSubmits a query template for approval.
projects.locations.dataExchanges.listings
- GETLists all subscriptions on a given Data Exchange or Listing.
/v1/:resource:listSubscriptions?includeDeletedSubscriptions=true&pageSize=0&pageToken=stringLists all subscriptions on a given Data Exchange or Listing. - POSTSubscribes to a listing
/v1/:name:subscribeSubscribes to a listing. Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a… - POSTReturns the permissions that a caller has.
/v1/:resource:testIamPermissionsReturns the permissions that a caller has. - GETLists all listings in a given project and location.
/v1/:parent/listings?pageSize=0&pageToken=stringLists all listings in a given project and location. - POSTCreates a new listing.
/v1/:parent/listings?listingId=stringCreates a new listing.
API details
- Base URL
https://analyticshub.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 20 operations on 15 pathsPOST 11GET 7PATCH 1DELETE 1
- Main resources
- projects.locations.subscriptions 7projects.locations.dataExchanges.listings 5projects.locations.dataExchanges.queryTemplates 5projects.locations.dataExchanges 2organizations.locations.dataExchanges 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Analytics Hub API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Analytics Hub API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Lists all data exchanges from projects in a given organization and location.” (GET /v1/:organization/dataExchanges?pageSize=0&pageToken=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Analytics Hub API?
Exchange data and analytics assets securely and efficiently. It is listed under Data & analytics and has 20 endpoints.
Who publishes the Analytics Hub API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Analytics Hub API?
Requests go to https://analyticshub.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Analytics Hub API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Analytics Hub API have?
20 operations on 15 paths (11 POST, 7 GET, 1 PATCH, 1 DELETE). The largest groups are projects.locations.subscriptions, projects.locations.dataExchanges.listings, projects.locations.dataExchanges.queryTemplates, projects.locations.dataExchanges.
Is forking the Analytics Hub API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.