Methods and systems for application program interface call management
Abstract
Disclosed are systems and methods for application program interface (API) call management. For example a method may include obtaining API call information for one or more API endpoints, the API call information including a number of API calls to the one or more API endpoints; obtaining resource utilization (RU) information, the RU information including project RU information for one or more projects; analyzing the API call information and the RU information to obtain API cost information, the API cost information including cost per API call for the one or more API endpoints; and managing subsequent API calls to the one or more API endpoints based on the cost per API call.
Claims
exact text as granted — not AI-modified1 .- 20 . (canceled)
21 . A method for application program interface (API) call management, comprising:
obtaining API call information for one or more API endpoints, wherein the API call information includes a number of API calls to the one or more API endpoints; obtaining project resource utilization (RU) information for one or more projects; determining a number of API calls to each of the one or more API endpoints; determining a cost per API call for each of the one or more API endpoints corresponding to the one or more projects by dividing a cost for each of the one or more projects by the number of API calls to each of the API endpoints corresponding to the one or more projects; receiving an API call request from a first project of the one or more projects, the API call request indicating an API call to an API endpoint; retrieving a cost per API call for the API endpoint; determining whether a budget of the first project is sufficient for the cost per API call; and upon determining the budget of the first project is sufficient for the cost per API call, permitting the API call of the API call request; or upon determining the budget of the first project is not sufficient for the cost per API call, declining the API call of the API call request.
22 . The method of claim 21 , further comprising:
determining a cost per API call for each of the one or more API endpoints not corresponding to the one or more projects by obtaining pricing rules from service(s) associated with the API endpoints not corresponding to the one or more projects.
23 . The method of claim 21 , wherein the obtaining the API call information for the one or more API endpoints includes:
analyzing API call requests to determine requesting projects and API endpoints for the API call requests; and updating a data structure to include the requesting projects in association with the API endpoints.
24 . The method of claim 23 , the API call information for the one or more API endpoints is obtained based on:
a function executing on a gateway, the function tracking incoming API call requests as the incoming API call requests are processed by the gateway; or analyzing router logs of the gateway.
25 . The method of claim 21 , wherein the project RU information includes one or more of data storage usage information, network data usage information, or cost information.
26 . The method of claim 25 , wherein obtaining project resource utilization (RU) information for one or more projects includes:
automatically transmitting a request to a cloud service for budget, cost, computes, and/or storage for projects of the one or more projects; receiving a response from the cloud service, the response including the budget, cost, computes, and/or storage for the projects of the one or more projects; and processing the budget, cost, computes, and/or storage for the projects of the one or more projects into an amount of resource units.
27 . The method of claim 26 , wherein the obtaining the RU information further includes:
obtaining physical cost information for a physical infrastructure associated with the projects of the one or more projects; obtaining human resource cost information for human resources associated with the projects of the one or more projects; processing the physical cost information and the human resource cost information for the projects of the one or more projects into a second amount of resource units; and combining the amount of resource units and the second amount of resource units for the projects of the one or more projects to obtain a cost for each of the projects of the one or more projects.
28 . The method of claim 21 , further comprising:
upon determining the budget of the first project is sufficient for the cost per API call, determining whether the API call request includes a priority request; and upon determining the API call request includes a priority request, performing a priority process.
29 . The method of claim 21 , further comprising:
upon determining the budget of the first project is sufficient for the cost per API call, determining whether the API call request includes a priority request; upon determining the API call request does not include a priority request, determining whether the API call request includes a conditional request; and upon determining the API call request includes the conditional request, holding the API call request until a condition of the conditional request is met.
30 . The method of claim 28 , wherein the priority process includes:
parsing the API call request to extract a bid; obtaining other bids for other API call requests; comparing the bid and the other bids to sort the bid and other bids in an ordered list; and permitting the API calls associated with the API call request and other API call requests in order of the ordered list.
31 . The method of claim 27 , wherein determining a number of API calls to each of the one or more API endpoints includes:
retrieving data from a data structure; and processing the data to determine the number of API calls to each of the one or more API endpoints.
32 . A method for application program interface (API) call management, comprising:
obtaining API call information for one or more API endpoints, wherein the API call information includes a number of API calls to the one or more API endpoints; obtaining project resource utilization (RU) information for one or more projects; determining a cost per API call for each of the one or more API endpoints corresponding to the one or more projects by dividing a cost for each of the one or more projects by the number of API calls to each of the API endpoints corresponding to the one or more projects; receiving an API call request from a first project of the one or more projects, the API call request indicating an API call to an API endpoint; retrieving a cost per API call for the API endpoint; determining whether a budget of the first project is sufficient for the cost per API call; and upon determining the budget of the first project is not sufficient for the cost per API call, declining the API call of the API call request; or upon determining the budget of the first project is sufficient for the cost per API call:
permitting the API call of the API call request;
determining whether the API call request includes a priority request; and
upon determining the API call request includes a priority request, performing a priority process; or
upon determining the API call request does not include a priority request, determining whether the API call request includes a conditional quest.
33 . The method of claim 32 , further comprising:
determining a cost per API call for each of the one or more API endpoints not corresponding to the one or more projects by obtaining pricing rules from service(s) associated with the API endpoints not corresponding to the one or more projects.
34 . The method of claim 32 , wherein the obtaining the API call information for the one or more API endpoints includes:
analyzing API call requests to determine requesting projects and API endpoints for the API call requests; and updating a data structure to include the requesting projects in association with the API endpoints.
35 . The method of claim 32 , wherein the project RU information includes one or more of data storage usage information, network data usage information, or cost information.
36 . The method of claim 35 , wherein obtaining project resource utilization (RU) information for one or more projects includes:
automatically transmitting a request to a cloud service for budget, cost, computes, and/or storage for projects of the one or more projects; receiving a response from the cloud service, the response including the budget, cost, computes, and/or storage for the projects of the one or more projects; and processing the budget, cost, computes, and/or storage for the projects of the one or more projects into an amount of resource units.
37 . The method of claim 36 , wherein the obtaining the RU information further includes:
obtaining physical cost information for a physical infrastructure associated with the projects of the one or more projects; obtaining human resource cost information for human resources associated with the projects of the one or more projects; processing the physical cost information and the human resource cost information for the projects of the one or more projects into a second amount of resource units; and combining the amount of resource units and the second amount of resource units for the projects of the one or more projects to obtain a cost for each of the projects of the one or more projects, wherein determining a number of API calls to each of the one or more API endpoints includes:
retrieving data from a data structure; and
processing the data to determine the number of API calls to each of the one or more API endpoints.
38 . The method of claim 32 , wherein the priority process includes:
parsing the API call request to extract a bid; obtaining other bids for other API call requests; comparing the bid and the other bids to sort the bid and other bids in an ordered list; and permitting the API calls associated with the API call request and other API call requests in order of the ordered list.
39 . The method of claim 32 , further comprising:
upon determining the API call request includes the conditional request, holding the API call request until a condition of the conditional request is met.
40 . A system for application program interface (API) call management, the system comprising:
a memory storing instructions; and a processor executing the instructions to perform a process including:
obtaining API call information for one or more API endpoints;
obtaining project resource utilization (RU) information for one or more projects;
determining a number of API calls to each of the one or more API endpoints;
determining a cost per API call for each of the one or more API endpoints corresponding to the one or more projects by dividing a cost for each of the one or more projects by the number of API calls to each of the API endpoints corresponding to the one or more projects;
receiving an API call request from a first project of the one or more projects, the API call request indicating an API call to an API endpoint;
retrieving a cost per API call for the API endpoint;
determining whether a budget of the first project is sufficient for the cost per API call; and
upon determining the budget of the first project is sufficient for the cost per API call, permitting the API call of the API call request.Join the waitlist — get patent alerts
Track US2022276908A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.