用于 Dataify Amazon 全球产品采集构建任务,当用户说或请求“Amazon 全球产品详情采集工具”或“Amazon 全球产品采集”时触发。
Submit Amazon global product collection jobs through Dataify Builder and continue through final-result retrieval. After submission, continue monitoring the returned task_id and return the final result by default.
This skill covers four Amazon global product collection modes:
ModeUse forBuilder spider_id``product-urlCollect global Amazon product details by product URL.amazon_global-product_by-url``category-urlCollect global Amazon product details from a category URL.amazon_global-product_by-category-url``keywordCollect global Amazon product details from a keyword search.amazon_global-product_by-keywords``keyword-brandCollect global Amazon product details from a keyword and brand filter.amazon_global-product_by-keywords-brand
Input: a product keyword and Amazon domain.
bash
python3 scripts/submit_amazon_global_product.py keyword --keyword "coffee" --domain "https://www.amazon.com"
The command waits up to 10 minutes and prints the final JSON result. Add --no-wait only for submission-only behavior.
If DATAIFY_API_TOKEN is missing, log in or register at https://dashboard.dataify.com/login?utm_source=skill. New accounts get 50 free credits, enough for about 6,000 trial results, valid for 7 days, and only successful requests are billed.
Use DATAIFY_API_TOKEN as the long-term saved token name.
DATAIFY_API_TOKEN is saved locally, use it.API TOKEN in user-facing instructions. Prefer the environment variable name DATAIFY_API_TOKEN for saved local use.PowerShell examples for saving the token for the current session:
powershell
$env:DATAIFY_API_TOKEN = "YOUR_DATAIFY_API_TOKEN"
For a persistent user-level variable on Windows:
powershell
[Environment]::SetEnvironmentVariable("DATAIFY_API_TOKEN", "YOUR_DATAIFY_API_TOKEN", "User")
product-url, category-url, keyword, or keyword-brand.data.task_id from the Builder response.
If the user has already provided some values, show those values in place of the defaults and only ask whether the remaining/defaulted values should be changed.For detailed mode schemas and advanced fields, read references/modes-and-parameters.md only when needed.
Use form fields rather than hand-built URL-encoded strings.
POSTBearer DATAIFY_API_TOKENapplication/x-www-form-urlencodedspider_name=amazon.comspider_errors=truespider_id must match the chosen mode.spider_parameters must be a JSON string, not a raw object.file_name defaults to {{TasksID}} and can be changed by the user.file_name as the Builder form field, not as a downloaded output name.Builder URL by mode:
ModeURLproduct-url``https://scraperapi.dataify.com/builder``category-url``https://scraperapi.dataify.com/builder?platform=1``keyword``https://scraperapi.dataify.com/builder?platform=1``keyword-brand``https://scraperapi.dataify.com/builder?platform=1
For stable execution, prefer scripts/submit_amazon_global_product.py with Python 3.6 or newer instead of rewriting the Builder flow. The script writes and reads UTF-8 text.
powershell
python3 ".\scripts\submit_amazon_global_product.py" product-url
python3 ".\scripts\submit_amazon_global_product.py" category-url --url "https://www.amazon.com/s?i=luggage-intl-ship" --maximum 5 --sort-by "Best Sellers" --get-sponsored true
python3 ".\scripts\submit_amazon_global_product.py" keyword --keyword "coffee" --domain "https://www.amazon.com"
python3 ".\scripts\submit_amazon_global_product.py" keyword-brand --keyword "shirts" --brands "Adidas" --page-turning 2
If python3 is not available, use the local Python 3 command for that machine, such as python. The script checks the runtime version and tells the user to use Python 3.6 or newer if the active interpreter is too old.
To override the saved environment token or default file name for one run:
powershell
python3 ".\scripts\submit_amazon_global_product.py" keyword --keyword "coffee" --file-name "amazon-global-coffee"
The script prints a JSON summary with task_id, submitted parameters and message.
Missing Dataify API TOKEN means DATAIFY_API_TOKEN is not set in the environment. Tell the user to get an API TOKEN from Dataify.
URL cannot be empty means no usable URL was provided.
Keyword cannot be empty means no usable keyword was provided.
Brands cannot be empty means no usable brand value was provided.
Domain cannot be empty means no usable domain was provided.
Maximum must be greater than or equal to 0 means the requested maximum count is invalid.
Page turning must be greater than or equal to 0 means the requested page count is invalid.
Lowest price must be greater than or equal to 0 means the requested lowest price is invalid.
Highest price must be greater than or equal to 0 means the requested highest price is invalid.
Highest price cannot be less than lowest price means the price range must be corrected before submission.
Unsupported sort_by means the category sort option must be one of the accepted display values or submitted values.
get_sponsored must be true or false means the sponsored option must be corrected before submission.
File name cannot be empty means no usable file_name was provided.
Necessary parameters is empty! usually means the Builder request was not submitted as form fields, spider_parameters was not a JSON string, or the object is missing required mode parameters.
Missing task_id usually means the authorization header, token, spider_name, or spider_id is wrong.
The default deliverable is the collected result, not only a task_id.
Submit the Builder task once and capture its task_id.
Immediately continue with $dataify-task-operations and monitor the same task ID.
--timeout 1800 for media downloads or clearly high-volume, multi-page, or multi-input collections.When the task succeeds, download and return the final JSON result. Summarize large payloads while preserving access to the raw result.
If monitoring times out or is interrupted, return the task ID and a resume command. Do not resubmit the paid task.
Stop after submission only when the user explicitly asks for submission only, a task ID, or --no-wait behavior.
export for macOS/Linux shells, $env: for Windows PowerShell, or set for Windows Command Prompt). Show other platforms or persistent setup only when detection is ambiguous or the user asks.DATAIFY_API_TOKEN is present; never print its value. If verification succeeds, continue the original task without asking the user to repeat it..env unless the execution path explicitly loads it, and ensure .env is ignored by version control.