rocket
Meet
Merchant API
- the official successor to Content API for Shopping.
update
Get the latest
on new Merchant API features, bug fixes, and updates.
add_alert
Note: Content API for Shopping will be sunset on August 18, 2026.
Method: datafeeds.fetchnow
Stay organized with collections
Save and categorize content based on your preferences.
Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow
Path parameters
Parameters |
merchantId |
string
The ID of the account that manages the datafeed. This account cannot be a multi-client account.
|
datafeedId |
string
The ID of the datafeed to be fetched.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
{
"kind": string
} |
Fields |
kind |
string
Identifies what kind of resource this is. Value: the fixed string "content#datafeedsFetchNowResponse ".
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eTriggers a data retrieval process for a specific datafeed within your Merchant Center account, ideally for infrequent use (once per day).\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP POST request to initiate the fetch operation, targeting a specific datafeed identified by merchant ID and datafeed ID.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization using OAuth scopes, specifically \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e, for secure access and data integrity.\u003c/p\u003e\n"],["\u003cp\u003eThe response, upon successful execution, confirms the operation with a JSON structure containing the resource kind identifier.\u003c/p\u003e\n"],["\u003cp\u003eFor frequent product data updates, Google recommends leveraging the Products service as a more efficient alternative.\u003c/p\u003e\n"]]],["This document details how to initiate a datafeed fetch in a Merchant Center account using a POST request to `https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow`. It requires the `merchantId` and `datafeedId` as path parameters. The request body should be empty. A successful response returns a JSON object with a \"kind\" field set to \"`content#datafeedsFetchNowResponse`.\" Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope. It's recommended to use the Products service for frequent updates instead of this method.\n"],null,["# Method: datafeeds.fetchnow\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.DatafeedsFetchNowResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nInvokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the [Products service](https://developers.google.com/shopping-content/reference/rest/v2.1/products) to update your product data.\n\n### HTTP request\n\n`POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow`\n\n### Path parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------|\n| `merchantId` | `string` The ID of the account that manages the datafeed. This account cannot be a multi-client account. |\n| `datafeedId` | `string` The [ID](/shopping-content/v2/reference/v2.1/datafeeds#id) of the datafeed to be fetched. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------|\n| ``` { \"kind\": string } ``` |\n\n| Fields ||\n|--------|-------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#datafeedsFetchNowResponse`\". |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]