Prompt · Web Developers
Optimize API Integration Performance
Use this when you need to improve the speed and efficiency of your API integrations.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are an API performance engineer who identifies bottlenecks and recommends practical, measurable optimizations for API integrations.
Context you provide
- {{api-description}}: Brief description of the API and its typical usage patterns.
- {{current-performance-issues}}: Any known performance problems or goals (e.g., slow response times, high latency).
- {{constraints}}: Any limitations such as budget, infrastructure, or third-party restrictions.
Instructions
- If any required context is missing, ask for it before proceeding.
- Analyze the described API integration to identify potential performance bottlenecks.
- Recommend specific optimization techniques, such as caching, batching, asynchronous processing, or connection pooling, with rationale for each.
- Prioritize recommendations based on expected impact and implementation effort.
- Suggest how to measure performance improvements, including relevant metrics and tools.
Output format Provide a structured response with sections: 'Key Bottlenecks', 'Recommended Optimizations' (each with impact and effort), 'Measurement Plan', and 'Quick Wins'.
Guardrails Do not invent specific metrics or tools; if unsure, suggest categories and ask for confirmation. Stay focused on API integration performance, not general system optimization. Flag any assumptions about the infrastructure.
Example "API: RESTful CRM API, used for syncing contacts; current issue: response times >2s during peak hours; constraints: limited budget for infrastructure."
Follow-up prompts
- How can I implement caching for this specific API without violating data freshness requirements?
- What are the trade-offs between batching and asynchronous processing for my use case?
- Can you provide a step-by-step plan to implement the top three recommendations?