Dataify Google Shopping Keywords
Use this skill to create Google Shopping keyword collection tasks through Dataify's builder endpoint.
Required Workflow
- Use the
google_shopping_by-keywordsspider when the user wants to collect product information by keyword. - Check the local Python runtime before calling scripts. Prefer
python; usepython3if that is the available Python command. Require Python 3 or newer. Do not use version-specific Python launcher commands. - Tell the user which parameters are required and what the defaults are. Ask whether any values should be changed.
- Ask whether the user wants to collect multiple parameter sets. If yes, collect multiple
spider_parametersobjects for the same spider ID. If the user already supplied multiple keywords or multiple parameter objects, treat that as a multiple-set request. - Before every real API call, show a Markdown confirmation table with the exact parameters that will be submitted. The table must use these columns:
Parameter,Current value,Default value,Required,Description. - If any dropdown fields are added in the future, show all available dropdown values in Markdown tables with exactly these columns:
Label,Value. This tool currently has no confirmed dropdown fields. - Ask the user whether any value should be changed. Do not call the API until the user explicitly confirms the table.
- Check for the Dataify API token only after parameter confirmation. Prefer a token explicitly provided by the user, then
DATAIFY_API_TOKENfrom the environment. - If no token is available, tell the user:
Missing Dataify API token. Provide a token, or log in/register atDataifyIf you already have one, openDataifyand copy the API TOKEN from the top-right area. - If the user provides a token and
DATAIFY_API_TOKENis not already saved locally, ask whether to save it asDATAIFY_API_TOKEN. Save it only after explicit consent and never echo the token back. - After the API call, report the collection task ID and status. Look for common response fields such as
task_id,taskId,taskIdList,tasks_id,TasksID,id,status,data.task_id,data.id, ordata.status. Then remind the user to view task details in the official dashboard: Dataify
Parameter Preview
Use the preview helper whenever possible:
python scripts/preview_params.py --keyword iphone
For multiple parameter sets, pass the exact JSON array:
python scripts/preview_params.py --parameters-json '[{"keyword":"iphone"},{"keyword":"ipad"}]'
API Call
Use the call helper after confirmation and token handling:
python scripts/google_shopping_keywords.py --keyword iphone
python scripts/google_shopping_keywords.py --parameters-json '[{"keyword":"iphone"},{"keyword":"ipad"}]'
If the token was provided in the conversation instead of the environment, pass it with --token and do not expose it in user-facing output:
python scripts/google_shopping_keywords.py --token "USER_TOKEN" --keyword iphone
Tool
| Mode | Spider ID | Required parameters | Default spider_parameters |
|---|---|---|---|
| keyword | google_shopping_by-keywords | keyword | [{"keyword":"iphone"}] |
Every request also accepts file_name. If omitted, use {{TasksID}}.
The user mentioned a Google country parameter, but the provided API mapping does not include a confirmed request field or default value for it. Do not include a country field in spider_parameters unless the user provides the exact API field name supported by Dataify for this spider.
Fixed Request Fields
Always submit to https://scraperapi.dataify.com/builder?platform=1 with:
| Field | Value |
|---|---|
| spider_name | google.com |
| spider_id | google_shopping_by-keywords |
| spider_parameters | JSON array of one or more parameter objects |
| spider_errors | true |
| file_name | User value, otherwise {{TasksID}} |
Send parameters as form data. Keep spider_parameters as a JSON string inside the form body.
微信扫一扫