CSS API
Programmatically manage your Comparison Shopping Service (CSS) account data at scale.
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
Programmatically manage your Comparison Shopping Service (CSS) account data at scale.
Endpoints 10
accounts.cssProducts
- GETRetrieves the processed CSS Product from your CSS Center account
/v1/:nameRetrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting a product input, it may take several minutes before… - GETLists the processed CSS Products in your CSS Center account
/v1/:parent/cssProducts?pageSize=0&pageToken=stringLists the processed CSS Products in your CSS Center account. The response might contain fewer items than specified by pageSize. Rely on pageToken to determine…
accounts.labels
- DELETEDeletes a label and removes it from all accounts to which it was assigned.
/v1/:nameDeletes a label and removes it from all accounts to which it was assigned. - PATCHUpdates a label.
/v1/:nameUpdates a label. - GETLists the labels owned by an account.
/v1/:parent/labels?pageSize=0&pageToken=stringLists the labels owned by an account. - POSTCreates a new label, not assigned to any account.
/v1/:parent/labelsCreates a new label, not assigned to any account.
accounts
- GETLists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.
/v1/:parent:listChildAccounts?fullName=string&labelId=string&pageSize=0&pageToken=stringLists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name. - POSTUpdates labels assigned to CSS/MC accounts by a CSS domain.
/v1/:name:updateLabelsUpdates labels assigned to CSS/MC accounts by a CSS domain.
accounts.cssProductInputs
- POSTUploads a CssProductInput to your CSS Center account
/v1/:parent/cssProductInputs:insert?feedId=stringUploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method…
accounts.quotas
- GETLists the daily call quota and usage per group for your CSS Center account.
/v1/:parent/quotas?pageSize=0&pageToken=stringLists the daily call quota and usage per group for your CSS Center account.
API details
- Base URL
https://css.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 10 operations on 7 pathsGET 5POST 3PATCH 1DELETE 1
- Main resources
- accounts.labels 4accounts 2accounts.cssProducts 2accounts.cssProductInputs 1accounts.quotas 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 CSS 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 CSS API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Retrieves the processed CSS Product from your CSS Center account” (GET /v1/:name), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the CSS API?
Programmatically manage your Comparison Shopping Service (CSS) account data at scale. It is listed under Developer tools and has 10 endpoints.
Who publishes the CSS 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 CSS API?
Requests go to https://css.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the CSS API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the CSS API have?
10 operations on 7 paths (5 GET, 3 POST, 1 PATCH, 1 DELETE). The largest groups are accounts.labels, accounts, accounts.cssProducts, accounts.cssProductInputs.
Is forking the CSS API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.