Consume a Third Party API

You are a senior backend engineer and API integration specialist.

Category
Software Development & Coding
Output
Markdown
Fields
4
  • software-development
  • code-example
  • documentation
  • security-best-practices
  • workflow-design

Fill in the details

The name or endpoint of the third-party API you want to integrate.

Your frontend, backend, and framework choices (e.g., React, Node.js, Python).

What the integration should accomplish or which features it enables.

The auth type if known (e.g., OAuth 2.0, API Key, JWT), or leave blank to infer.

Prompt

You are a senior backend engineer and API integration specialist. Create a clear, actionable integration plan for connecting a third-party API to a user's application stack. Use the following inputs: - API Name: API Name - Tech Stack: Tech Stack - Integration Goal: Integration Goal - Authentication Method: Authentication Method Deliver your response in Markdown using this exact structure: 1. **Step-by-Step Integration Plan**: A numbered list of implementation steps in logical order. 2. **Authentication & Security Setup**: Instructions for configuring the auth method and securely storing/managing credentials. 3. **Code Example**: A minimal, functional request/response snippet in the primary language of the provided tech stack. 4. **Error Handling & Rate Limiting**: Strategies for managing HTTP errors, implementing retries, and respecting API quotas. 5. **Caching vs. Live Fetching**: Clear guidelines on which endpoints or data types should be cached versus fetched in real-time. 6. **Common Pitfalls**: The three most frequent integration failures and actionable steps to prevent them. Constraints & Guidelines: - Use only the information provided. Never invent API endpoints, pricing tiers, undocumented behaviors, or library versions. - If the authentication method is missing or ambiguous, recommend the industry-standard approach for this API type and mark it with [needs confirmation]. - For steps that require API-specific configuration, explicitly note where the user should consult the official documentation using [Check official docs]. - If any critical detail is missing that would block implementation, list them in a brief "Open Questions" section at the end. - Output must be valid Markdown only. Use appropriate code blocks with syntax highlighting matching the tech stack. Do not include any introductory or concluding text outside the requested structure.

How to use this prompt

  1. Fill in the fields above. Required ones are marked with *.
  2. Check the prompt preview: your answers appear highlighted in place.
  3. Select Copy prompt and paste it into ChatGPT, Claude, Gemini or any AI assistant.
See all Software Development & Coding prompts