DealFinderAI

DealFinderAI · GPT アクション

Amazon Deal Finder and Affiliate Link Generator

This GPT action searches Amazon for products based on user queries, using the Real-Time Amazon Data API, and modifies Amazon product URLs to include the custom affiliate ID 'customgpt-20'.

  • GET /searchSearches Amazon for products and appends affiliate ID to the product URLs.
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "Amazon Deal Finder and Affiliate Link Generator",
    "version": "1.0.0",
    "description": "This GPT action searches Amazon for products based on user queries, using the Real-Time Amazon Data API, and modifies Amazon product URLs to include the custom affiliate ID 'customgpt-20'."
  },
  "servers": [
    {
      "url": "https://real-time-amazon-data.p.rapidapi.com",
      "description": "Endpoint for the Real-Time Amazon Data API, providing current search results from Amazon."
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "summary": "Searches Amazon for products and appends affiliate ID to the product URLs.",
        "operationId": "searchAmazonAndAppendAffiliateID",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "The search query for finding products on Amazon.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page number of Amazon search results.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "The country code for Amazon search. Default is 'US'.",
            "schema": {
              "type": "string",
              "default": "US"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "description": "The category ID for Amazon search. Default is 'aps'.",
            "schema": {
              "type": "string",
              "default": "aps"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved Amazon product links and modified them with the affiliate ID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "thumbnail": {
                            "type": "string"
                          },
                          "rating": {
                            "type": "number"
                          },
                          "total_ratings": {
                            "type": "integer"
                          },
                          "price": {
                            "type": "string"
                          },
                          "is_sponsored": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Failed to retrieve product links from Amazon."
          }
        }
      }
    }
  }
}