彩云小助手

彩云小助手 · Ações GPT

Caiyun Weather API

Provides detailed weather information including real-time data, alerts, and forecasts.

  • GET /tFhmrmnJEgCL2Dfa/{coordinates}/weatherGet weather information

    Retrieves weather data for a specified location including alerts, real-time data, and forecasts.

Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "Caiyun Weather API",
    "description": "Provides detailed weather information including real-time data, alerts, and forecasts.",
    "version": "v2.6"
  },
  "servers": [
    {
      "url": "https://api.caiyunapp.com/v2.6"
    }
  ],
  "paths": {
    "/tFhmrmnJEgCL2Dfa/{coordinates}/weather": {
      "get": {
        "summary": "Get weather information",
        "description": "Retrieves weather data for a specified location including alerts, real-time data, and forecasts.",
        "operationId": "getWeather",
        "parameters": [
          {
            "name": "coordinates",
            "in": "path",
            "required": true,
            "description": "The longitude and latitude of the location.",
            "schema": {
              "type": "string",
              "example": "116.3176,39.9760"
            }
          },
          {
            "name": "alert",
            "in": "query",
            "description": "Include weather alerts in the response.",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "dailysteps",
            "in": "query",
            "description": "Number of daily forecast steps to return.",
            "schema": {
              "type": "integer",
              "example": 1
            }
          },
          {
            "name": "hourlysteps",
            "in": "query",
            "description": "Number of hourly forecast steps to return.",
            "schema": {
              "type": "integer",
              "example": 24
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeatherResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "WeatherResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "ok"
          },
          "api_version": {
            "type": "string",
            "example": "v2.6"
          },
          "api_status": {
            "type": "string",
            "example": "alpha"
          },
          "lang": {
            "type": "string",
            "example": "zh_CN"
          },
          "unit": {
            "type": "string",
            "example": "metric"
          },
          "tzshift": {
            "type": "integer",
            "example": 28800
          },
          "timezone": {
            "type": "string",
            "example": "Asia/Shanghai"
          },
          "server_time": {
            "type": "integer",
            "example": 1702545268
          },
          "location": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "example": [
              39.976,
              116.3176
            ]
          },
          "result": {
            "type": "object"
          },
          "primary": {
            "type": "integer",
            "example": 0
          },
          "forecast_keypoint": {
            "type": "string",
            "example": "渐渐开始下小雪,出门记得带伞哦"
          }
        }
      }
    }
  }
}

Baidu Map Geocoding API

Provides geocoding services for addresses in China using Baidu Maps API.

  • GET /geocoding/v3/getGeocodingData

    Retrieve geocoding data for a specific address

Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "Baidu Map Geocoding API",
    "description": "Provides geocoding services for addresses in China using Baidu Maps API.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.map.baidu.com"
    }
  ],
  "paths": {
    "/geocoding/v3/": {
      "get": {
        "description": "Retrieve geocoding data for a specific address",
        "operationId": "getGeocodingData",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Address to geocode",
            "schema": {
              "type": "string",
              "example": "北京市海淀区上地十街10号"
            }
          },
          {
            "name": "output",
            "in": "query",
            "required": true,
            "description": "Output format of the response, typically JSON",
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            }
          },
          {
            "name": "ak",
            "in": "query",
            "required": true,
            "description": "Access key for using the Baidu Maps API",
            "schema": {
              "type": "string",
              "enum": [
                "xu1lRrhEP12XvbZrzGdPfTGucOFLXaDG"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "description": "Status code of the response"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "object",
                          "properties": {
                            "lng": {
                              "type": "number",
                              "format": "double",
                              "description": "Longitude of the address"
                            },
                            "lat": {
                              "type": "number",
                              "format": "double",
                              "description": "Latitude of the address"
                            }
                          }
                        },
                        "precise": {
                          "type": "integer",
                          "description": "Indicates the precision of the result"
                        },
                        "confidence": {
                          "type": "integer",
                          "description": "Confidence level of the result"
                        },
                        "comprehension": {
                          "type": "integer",
                          "description": "Comprehension level of the address processing"
                        },
                        "level": {
                          "type": "string",
                          "description": "Level of the address provided"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}