Catalog sync
Keep a products table current from supplier or marketplace pages.
Import.io’s documented database integration: read the Import.io extractor’s latest run with pandas and write it to MySQL through SQLAlchemy.
import io, os, requests
import pandas as pd
# "CSV from latest successful run" on the extractor's Integrate tab
csv = requests.get(os.environ["IMPORTIO_CSV_URL"]).content.decode("utf-8-sig")
df = pd.read_csv(io.StringIO(csv))
from sqlalchemy import create_engine
engine = create_engine(os.environ["DATABASE_URL"]) # mysql+pymysql://user:pass@host/db
df.to_sql("competitor_prices", engine, if_exists="append", index=False)Any public page, rendered, through managed proxies
Rendering, proxy routing, captcha handling, extraction
Latest successful run, CSV or JSON
The documented pandas and SQLAlchemy loader.
Also connects via the REST API.
Keep a products table current from supplier or marketplace pages.
Store competitor prices beside your own catalog.
Change the SQLAlchemy URI and the same code writes to another engine.
pip install requests pandas sqlalchemy pymysql.IMPORTIO_CSV_URL and a mysql+pymysql:// connection string.to_sql.Yes. “Writing Import.io Data to a Database using Python” covers MySQL and shows how to swap the URI for other databases.
No. The latest-run CSV, JSON and Google Sheets endpoints return data your extractor already collected, so they don’t count toward your plan. Only the Live Query API runs an extraction per request.
As fresh as your schedule. Run the extractor hourly, daily or weekly and the endpoint always serves the latest successful run.
Pass your API key as the _apikey query parameter. Copy it from account settings at app.import.io.
Yes. The trial and Standard include rate-limited API access. Professional and Advanced include full API access and webhooks.
Append each run into Postgres with pandas and SQLAlchemy.
Setup 10 minEndpointREST APILoad extractor results into SQL Server or Azure SQL.
Setup 10 minEndpointREST APINDJSON rows straight into a collection.
Setup 5 minEndpointREST APILatest-run data into a DataFrame in three lines.
Setup 5 min