{"schemaVersion":1,"resourceType":"connector","slug":"cars","name":"Cars & vehicle safety","catalog":"cars","description":"EPA fuel economy, NHTSA VIN decoding, recalls, complaints and crash ratings for US vehicles","language":"Python","categories":["civic"],"repository":"https://github.com/Query-farm/vgi-cars","license":"0BSD","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.2.0","publishedAt":"2026-11-25T19:42:18Z","url":"https://github.com/Query-farm/vgi-cars/releases/tag/v0.2.0"},"links":{"html":"https://query.farm/products/orchard/connectors/cars/","llms":"https://query.farm/products/orchard/connectors/cars/llms.txt","markdown":"https://query.farm/products/orchard/connectors/cars/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/cars.json","objects":"https://query.farm/products/orchard/api/v1/connectors/cars/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=cars&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'cars' AS cars (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-cars@v0.2.0 vgi-cars-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'cars' AS cars (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-cars:0.2.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'cars' AS cars (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-cars@v0.2.0 vgi-cars-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'cars' AS cars (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-cars:0.2.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-cars","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=cars","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'cars' AS cars (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-cars@v0.2.0 vgi-cars-worker'\n);","attachOptions":[{"name":"cache_dir","type":"VARCHAR","description":"Directory for the cached EPA vehicles.csv.zip (about 2 MB). Default: the per-user cache directory, e.g. ~/Library/Caches/vgi-cars or ~/.cache/vgi-cars.","required":false,"default":null},{"name":"max_age_days","type":"BIGINT","description":"Re-check fueleconomy.gov for a newer bulk file once the cached copy is this many days old.","required":false,"default":"7"},{"name":"offline","type":"BOOLEAN","description":"Never download the EPA file; use the cached copy only (fails if there is none).","required":false,"default":"false"},{"name":"epa_vehicles_url","type":"VARCHAR","description":"URL of the EPA bulk file vehicles.csv.zip; override to use a mirror.","required":false,"default":"https://www.fueleconomy.gov/feg/epadata/vehicles.csv.zip"},{"name":"vpic_base_url","type":"VARCHAR","description":"Base URL of the NHTSA vPIC API (VIN decoding, makes, models).","required":false,"default":"https://vpic.nhtsa.dot.gov/api"},{"name":"nhtsa_base_url","type":"VARCHAR","description":"Base URL of api.nhtsa.gov (recalls, complaints, safety ratings).","required":false,"default":"https://api.nhtsa.gov"}],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Compare the fuel economy of every 2024 Toyota Tundra configuration","sql":"SELECT model, drive, cylinders, city_mpg, highway_mpg, combined_mpg FROM cars.main.vehicles(year := 2024, make := 'toyota', model := 'tundra') ORDER BY combined_mpg DESC, model","requiresCredentials":null,"note":null,"objects":[{"name":"cars.main.vehicles","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/cars/#obj-main-vehicles","markdown":"https://query.farm/products/orchard/connectors/cars/objects/table_function.bWFpbg.dmVoaWNsZXM.md","json":"https://query.farm/products/orchard/api/v1/connectors/cars/objects/table_function.bWFpbg.dmVoaWNsZXM.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:12:39+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.2.0","sample":{"columns":["model","drive","cylinders","city_mpg","highway_mpg","combined_mpg"],"types":["VARCHAR","VARCHAR","INTEGER","INTEGER","INTEGER","INTEGER"],"rows":[["Tundra 2WD","Rear-Wheel Drive",6,20,24,22],["Tundra 2WD","Rear-Wheel Drive",6,20,24,22],["Tundra 2WD","Rear-Wheel Drive",6,18,23,20],["Tundra 2WD","Rear-Wheel Drive",6,18,23,20],["Tundra 2WD","Rear-Wheel Drive",6,18,23,20]],"more":true}},"artifact":null},"objects":{"total":10,"index":"https://query.farm/products/orchard/api/v1/connectors/cars/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=cars&q={query}"},"agentTasks":["Using the cars worker, find the highest EPA combined MPG of any 2024 Toyota Tundra configuration. Save it as a temporary table tundra_best with one row and one column best_mpg.","How many 2019 Tesla Model 3 configurations does the EPA list, and what is the longest electric range among them? Save a temporary table tesla_2019 with one row and columns configurations and longest_range_miles.","What make, model and model year is VIN 1HGCM82633A004352? Save a temporary table vin_answer with one row and columns make, model and model_year.","How many NHTSA recall campaigns for the 2003 Honda Accord involve air bags? Save the number as a temporary table airbag_recalls with one row and one column recalls.","What overall NCAP star rating did NHTSA give the 2020 Honda Accord? Save it as a temporary table accord_rating with one row and one column stars.","How many owner complaints to NHTSA about the 2003 Honda Accord report a fire? Save the number as a temporary table fire_complaints with one row and one column complaints.","Decode these VINs and report each one's model year: 1HGCM82633A004352, 5YJ3E1EA7KF317000, 1FTFW1ET5DFC10312. Save a temporary table fleet_years with columns vin and model_year.","How many makes are registered with NHTSA vPIC as passenger-car makes? Save the number as a temporary table car_makes with one row and one column makes."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-cars","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":1,"passed":1,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-cars@v0.2.0 vgi-cars-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:10:45+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}