debug_env_vars
Debug tool to check environment variables and current token status.
Returns:
dict: Environment variable and token information
get_status_of_job
Get the status of a job from the PriceAPI service.
Args:
job_id (str): The job ID to check status for
token (str | None): Optional PriceAPI token. If not provided, falls back to
URL parameters or PRICEAPI_TOKEN environment variable.
Returns:
dict: Job status information
get_job_results
Get the results of a finished PriceAPI job to be processed by the user.
Args:
job_id (str): The job ID to get results for
token (str | None): Optional PriceAPI token. If not provided, falls back to
URL parameters or PRICEAPI_TOKEN environment variable.
Returns:
dict: Job results data
create_job
Create a new PriceAPI job for data collection.
Args:
source (str): Data source (amazon, ebay, google_shopping, etc.)
country (str): Country code (us, uk, de, etc.)
topic (str): Search topic or product identifier
key (str): Search key or ASIN
max_pages (int): Maximum pages to scrape (default: 1)
token (str | None): Optional PriceAPI token. If not provided, falls back to
URL parameters or PRICEAPI_TOKEN environment variable.
Returns:
dict: Job creation result
list_jobs
List all jobs for the current API token.
Args:
token (str | None): Optional PriceAPI token. If not provided, falls back to
URL parameters or PRICEAPI_TOKEN environment variable.
limit (int): Maximum number of jobs to return (default: 50)
offset (int): Number of jobs to skip (default: 0)
Returns:
dict: List of jobs
wait_for_job_completion
Wait for a job to complete and return results.
Args:
job_id (str): The job ID to wait for
token (str | None): Optional PriceAPI token. If not provided, falls back to
URL parameters or PRICEAPI_TOKEN environment variable.
max_wait_time (int): Maximum time to wait in seconds (default: 300)
check_interval (int): Time between status checks in seconds (default: 10)
Returns:
dict: Job completion result