Skip to content

DanielFarahani/corelogic_pyclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corelogic API Python client

Overview

This is a Python client for the CoreLogic API.
Makes interfacing with the API much easier.

I haven't seen any clients/ wrappers for Python, so this is a start.

install

pip3 install corelogic-pyclient
OR
pip install corelogic-pyclient

Usage

  1. create an account on developer.corelogic for a API credentials
  2. add Client ID and Secret to enviroment variable

bash script to run everytime

#E.g. create setup.sh (Then chmod +x setup.sh)
#!/bin/bash
client_id='<Your Client_id>'
secret='<Your secret_code>'

OR manual process

#or export in the terminal
export client_id='<Your Client_id>'
export secret='<Your secret_code>'
  1. Import
>>> import corelogic.property as prop
>>> details = prop.Details()
>>> details.property_attributes(<property_id>)
{'beds': 2, 'baths': 1, ...}

>>> suggestions = prop.Suggest()
>>> suggestions.suggest_properties('1 ahern place monash')

Endpoints

The structure of the package is similar to the Postman collection provided by CoreLogic.
You can import class/folder of the API separately and use the endpoint through the methods.

  • Suggestion
  • Search
  • Property Detail
  • Automatic Valuation model (AVM)

Tasks

Pull requests and collaboration is greatly welcomed!

  • build out the endpoints of interest
  • Refactor to better form factor
  • Complete Health check
  • Complete Tests

Goals

  • Given the API is $ per request scheme it would be good to cache
  • reduce the API endpoints from the website to minimal set as there is alot of overlap in response data
  • Better error handling
  • Look for API version updates
  • Better messaging for the response payload