replace api with API.