Notebooks on fresh data
Schedule the extractor and every notebook run starts from the latest successful crawl.
Point requests at the latest-run endpoint and your extractor’s rows land in a DataFrame. Use the Import.io Data Extraction REST API when you need a specific run.
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))
print(df.head())import json, os, requests
run_id = "…" # from GET https://api.import.io/crawlruns/
r = requests.get(f"https://api.import.io/crawlruns/{run_id}/json",
params={"_apikey": os.environ["IMPORTIO_API_KEY"]})
rows = [json.loads(line) for line in r.text.splitlines() if line.strip()]
print(len(rows), rows[0])Any public page, rendered, through managed proxies
Rendering, proxy routing, captcha handling, extraction
Latest successful run, CSV or JSON
Latest-run data into a DataFrame in three lines.
Also connects via the REST API.
Schedule the extractor and every notebook run starts from the latest successful crawl.
Clean, join and aggregate web data with the rest of your Python stack.
List past runs through the API and load each one to build a time series.
pip install requests pandas.IMPORTIO_CSV_URL.The CSV starts with a byte-order mark so Excel opens it correctly. utf-8-sig strips it so your first column name comes through clean.
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.
Start extractors, list runs and download results from api.import.io.
Setup 15 minEndpointREST APIFetch extractor results in Node with the built-in fetch.
Setup 5 minEndpointREST APIExtractor results into a tibble with httr2 and readr.
Setup 5 minEndpointREST APIAppend each run into Postgres with pandas and SQLAlchemy.
Setup 10 min