Use API to get the path to PG