Enable the Merchant API in your Cloud project to get started.
Here's how to use the Merchant API:
Use client libraries
The Merchant API is made of multiple sub-APIs.
Each sub-API has code samples and client libraries to help you get started.
If you already use the Content API for Shopping, see Content API for Shopping compatibility.
Send requests
Send requests to URLs in the following format:
https://merchantapi.googleapis.com/{sub-API}/{version}/{resource name}/{service}:{method}…
Where {resource name}
is the
name
of the resource
your call impacts.
For example, here's how to delete regional inventory with gRPC:
https://merchantapi.googleapis.com/inventories/v1beta/{resource name}/regionalInventories:delete
Here's how to delete regional inventory with REST:
DELETE https://merchantapi.googleapis.com/inventories/v1beta/{resource name}/regionalInventories
See the Merchant API reference documentation for more details on specific services.
Use gRPC or REST
The Merchant API supports gRPC and REST. Here are the two ways to make Merchant API calls:
gRPC (recommended) | REST |
---|---|
|
|
Get help
For information about getting support, see Get help with Merchant API.
Give feedback
The beta period gives us an opportunity to collect and address your feedback before the general availability release. To provide feedback, submit one of the following:
- API features: Submit the feedback form
- Documentation: Use the in-page thumb ratings and Send feedback button.
- Samples and libraries: Use the New issue button on GitHub.
To provide general feedback after implementing each task, use the feedback form.