integration web and api