Link Reader

Link Reader · GPT アクション

Link Reader

A plugin capable of searching and reading link content, featuring a search interface similar to Google. It can access and return content from links, supporting platforms like YouTube, PDF, PPT, Google Drive, and more.

  • GET /api/getGet the content of any url, including web page URL, PDF, PPT, image, word, pages, numbers, excel and any other document URLs, google drive, google docs, google spreadsheet, youtube links, etc.
  • GET /api/searchSearch Google and fetch JSON data
元の API スキーマ
{
  "openapi": "3.0.1",
  "info": {
    "title": "Link Reader",
    "description": "A plugin capable of searching and reading link content, featuring a search interface similar to Google. It can access and return content from links, supporting platforms like YouTube, PDF, PPT, Google Drive, and more.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://actions.sider.ai/search"
    }
  ],
  "paths": {
    "/api/get": {
      "get": {
        "operationId": "getContent",
        "summary": "Get the content of any url, including web page URL,  PDF,  PPT, image, word, pages, numbers, excel and any other document URLs, google drive, google docs, google spreadsheet, youtube links, etc.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "The url to get the content from",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getContentResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "operationId": "apiSearch",
        "summary": "Search Google and fetch JSON data",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The query you want to search."
          },
          {
            "name": "gl",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The country to use for the Google search (e.g., us for the United States, uk for United Kingdom, or fr for France)."
          },
          {
            "name": "hl",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The language to use for the Google search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French)."
          },
          {
            "name": "tbm",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The \"tbm\" parameter enables you to define your preferred search type, including regular Google Search (no tbm parameter), image search (\"isch\"), or news search (\"nws\")."
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The result offset. It skips the given number of results. It's used for pagination."
          },
          {
            "name": "num",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The maximum number of results to return. (e.g., 10 (minimum) returns 10 results)."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiSearchResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "getContentResponse": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The content of the url"
          },
          "statusCode": {
            "type": "integer",
            "description": "The status code of the request"
          },
          "statusText": {
            "type": "string",
            "description": "The status text of the request"
          },
          "headers": {
            "type": "object",
            "properties": {
              "content-type": {
                "type": "string",
                "description": "The content type of the request"
              },
              "content-length": {
                "type": "integer",
                "description": "The content length of the request"
              },
              "date": {
                "type": "string",
                "description": "The date of the request"
              },
              "server": {
                "type": "string",
                "description": "The server of the request"
              },
              "last-modified": {
                "type": "string",
                "description": "The last modified date of the request"
              }
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "og:title": {
                "type": "string",
                "description": "The title of the url"
              },
              "og:description": {
                "type": "string",
                "description": "The description of the url"
              },
              "og:image": {
                "type": "string",
                "description": "The main image of the url"
              },
              "og:type": {
                "type": "string",
                "description": "The type of the url"
              }
            }
          }
        }
      },
      "apiSearchResponse": {
        "type": "object",
        "properties": {
          "answer_box": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "description": "The title of the answer box"
              },
              "link": {
                "type": "string",
                "description": "The link of the answer box"
              },
              "snippet": {
                "type": "string",
                "description": "The snippet of the answer box"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The image links of the answer box"
                }
              }
            }
          },
          "knowledge_graph": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "description": "The title of the knowledge graph"
              },
              "type": {
                "type": "string",
                "description": "The type of entity in the knowledge graph"
              },
              "kgmid": {
                "type": "string",
                "description": "The unique identifier of the entity in the knowledge graph"
              },
              "description": {
                "type": "string",
                "description": "The description of the entity in the knowledge graph"
              },
              "source": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the source"
                  },
                  "link": {
                    "type": "string",
                    "description": "The link to the source"
                  }
                }
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The image links of the knowledge graph entity"
                }
              }
            }
          },
          "organic_results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "The title of the organic result"
                },
                "link": {
                  "type": "string",
                  "description": "The link to the organic result"
                },
                "snippet": {
                  "type": "string",
                  "description": "The snippet of the organic result"
                },
                "source": {
                  "type": "string",
                  "description": "The source of the organic result"
                },
                "images": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The image links of the organic result"
                  }
                }
              }
            }
          },
          "video_results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "The title of the video result"
                },
                "link": {
                  "type": "string",
                  "description": "The link to the video result"
                },
                "snippet": {
                  "type": "string",
                  "description": "The snippet of the video result"
                },
                "thumbnail": {
                  "type": "string",
                  "description": "The link to the thumbnail of the video result"
                },
                "source": {
                  "type": "string",
                  "description": "The source of the video result"
                }
              }
            }
          },
          "news_results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "The title of the news result"
                },
                "link": {
                  "type": "string",
                  "description": "The link to the news result"
                },
                "date": {
                  "type": "string",
                  "format": "date-time",
                  "description": "The publication date of the news result"
                },
                "snippet": {
                  "type": "string",
                  "description": "The snippet of the news result"
                },
                "category": {
                  "type": "string",
                  "description": "The category of the news result"
                },
                "thumbnail": {
                  "type": "string",
                  "description": "The link to the thumbnail of the news result"
                },
                "source": {
                  "type": "string",
                  "description": "The source of the news result"
                }
              }
            }
          },
          "images_results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "The title of the image result"
                },
                "original": {
                  "type": "string",
                  "description": "The original source url of the image"
                },
                "link": {
                  "type": "string",
                  "description": "The link to the result page"
                }
              }
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "current": {
                "type": "integer",
                "description": "The current page number"
              },
              "next": {
                "type": "string",
                "description": "The query parameters for the next page"
              }
            }
          }
        }
      }
    }
  }
}