Blog SEO Skill Builder

Blog SEO Skill Builder · GPT-Aktionen

SEO and Data Analysis API

API for analyzing page speed, trends, sentiments, syntax, entities, and text classification.

  • GET /runpagespeed/Run Page Speed
  • GET /trends/{keyword}Get Trends
  • POST /datalab/searchDatalab Search
  • POST /analyze/sentimentAnalyze Sentiment
  • POST /analyze/syntaxAnalyze Syntax
  • POST /analyze/entitiesAnalyze Entities
  • POST /classify/textClassify Text
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "SEO and Data Analysis API",
    "description": "API for analyzing page speed, trends, sentiments, syntax, entities, and text classification.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://blogseo-412907.du.r.appspot.com",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/runpagespeed/": {
      "get": {
        "operationId": "runPageSpeed",
        "summary": "Run Page Speed",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "URL to run the page speed test on",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/trends/{keyword}": {
      "get": {
        "operationId": "getTrends",
        "summary": "Get Trends",
        "parameters": [
          {
            "name": "keyword",
            "in": "path",
            "required": true,
            "description": "Keyword to get trends for",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/datalab/search": {
      "post": {
        "operationId": "datalabSearch",
        "summary": "Datalab Search",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "required": true,
            "description": "Start date in YYYY-MM-DD format",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": true,
            "description": "End date in YYYY-MM-DD format",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "timeUnit",
            "in": "query",
            "description": "Time unit (date, week, month)",
            "schema": {
              "type": "string",
              "default": "month"
            }
          },
          {
            "name": "keywords",
            "in": "query",
            "required": true,
            "description": "List of keywords (up to 6)",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/analyze/sentiment": {
      "post": {
        "operationId": "analyzeSentiment",
        "summary": "Analyze Sentiment",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/analyze/syntax": {
      "post": {
        "operationId": "analyzeSyntax",
        "summary": "Analyze Syntax",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/analyze/entities": {
      "post": {
        "operationId": "analyzeEntities",
        "summary": "Analyze Entities",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/classify/text": {
      "post": {
        "operationId": "classifyText",
        "summary": "Classify Text",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ValidationError": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            }
          }
        }
      },
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "loc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    }
  }
}