CarsXE

CarsXE Vehicle Data for Snowflake

Get started with the CarsXE Snowflake Native App for comprehensive vehicle data access directly in your Snowflake environment.

Features

Prerequisites

Installation

  1. Install from Snowflake Marketplace

    • Search for "CarsXE"
    • Select the "Vehicle Data from CarsXE"
    • Click "Get" and follow the installation prompts
  2. Open the App

    • Navigate to the installed app in your Snowflake account
    • The setup wizard will launch automatically
  3. Complete Setup (3 Simple Steps)

    The app guides you through each step:

    Step 1: Connect External Access

    • Click "Connect CarsXE EAI ↗"
    • Select or create an External Access Integration for api.carsxe.com

    Step 2: Add Your API Key

    • Enter your CarsXE API key
    • Click "Validate API key" to verify and save
    • Note: The API key is now stored securely using a bind variable in the CORE.CONFIG table to prevent SQL identifier issues.

    Step 3: Start Using the APIs

    • You're ready! Select an endpoint and make your first call

Using the Streamlit UI

  1. Choose an Endpoint from the dropdown menu (e.g., "Specs (VIN specs)")
  2. Enter Required Fields (marked clearly in the form)
  3. Add Optional Parameters if needed (expand "Optional parameters" section)
  4. Click "Call endpoint" to get results

Using SQL Directly

You can call the app fully through SQL, without using the UI, via:

SQL Procedure

CALL CORE.CALL_CARSXE_ENDPOINT(
  path   => '<API_PATH>',
  method => '<HTTP_METHOD>',
  params => '<JSON string of params>'
);

Parameters:

SQL Examples

Important: Before using these SQL examples, you must complete the setup steps in the Streamlit UI app, including configuring the External Access Integration (EAI) and adding your API key. See the Installation section above for details.

Validating API Key

SQL

-- Validate your CarsXE API key 
CALL CORE.VALIDATE_CARSXE_API_KEY('your_api_key_here'); 

Saving API Key

SQL

-- Save CarsXE API key in the secure CORE.CONFIG table 
CALL CORE.SET_CARSXE_API_KEY('your_api_key_here'); 

Note: The API key storage now uses a bind variable internally to avoid SQL compilation errors with identifiers.

Specs by VIN

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/specs',
  'GET',
  '{"vin":"WBAFR7C57CC811956"}'
);

Plate Decoder

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/v2/platedecoder',
  'GET',
  '{"plate":"7XER187","country":"US","state":"CA"}'
);

Market Value

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/v2/marketvalue',
  'GET',
  '{"vin":"WBAFR7C57CC811956"}'
);

Images

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/images',
  'GET',
  '{"make":"toyota","model":"tacoma","year":"2018", "color":"blue","format":"json"}'
);

Plate Image Recognition (image URL)

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/platerecognition',
  'POST',
  '{"upload_url":"https://imagedelivery.net/moyiiSImjJPI_EZVxNMBBw/f49aed53-d736-4370-f3f4-97418841c800/public"}'
);

VIN OCR (image URL)

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/v1/vinocr',
  'POST',
  '{"upload_url":"https://user-images.githubusercontent.com/5663423/30922082-64edb4fa-a3a8-11e7-873e-3fbcdce8ea3a.png"}'
);

Lien And Theft Check

SQL

CALL CORE.CALL_CARSXE_ENDPOINT(
  '/v1/lien-theft',
  'GET',
  '{"vin":"2C3CDXFG1FH762860"}'
);

Internally, each call automatically adds key=<your API key> in the request to CarsXE.

Security & Governance

Limitations

Support