{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "Google Maps",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/google-maps/autocomplete",
      "/apis/v1/google-maps/geocode-address-with-query",
      "/apis/v1/google-maps/geocode-location",
      "/apis/v1/google-maps/geocode-place",
      "/apis/v1/google-maps/geocoding-api",
      "/apis/v1/google-maps/get-time-zone",
      "/apis/v1/google-maps/get2d-tile",
      "/apis/v1/google-maps/get3d-tiles-root",
      "/apis/v1/google-maps/place-photo",
      "/apis/v1/google-maps/text-search"
    ],
    "x-aisa-document": {
      "facts_hash": "3b5a2acec503471a11eb19f2556b4dd51989d71bc63d22f67f55218e55b002ef",
      "generator_version": "3",
      "protocol_version": "1",
      "schema_version": "1",
      "composer_version": "27",
      "response_pending": [
        {
          "operation_id": "google-maps.place-photo",
          "path": "/apis/v1/google-maps/place-photo",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        {
          "operation_id": "google-maps.text-search",
          "path": "/apis/v1/google-maps/text-search",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        }
      ],
      "document_hash": "sha256:3ab86078724defed4c1f31a5a8fc9b5fdc1d3dbe4e09f0cc92f225a176e3e660"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "google-maps",
    "x-aisa-catalogs": {
      "google-maps": {
        "title": "Google Maps",
        "description": "",
        "x-aisa-document": {
          "facts_hash": "3b5a2acec503471a11eb19f2556b4dd51989d71bc63d22f67f55218e55b002ef",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        },
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        }
      }
    }
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "paths": {
    "/apis/v1/google-maps/place-photo": {
      "post": {
        "description": "<!-- aisa-pricing:start -->\n当前未提供请求参考价格；请使用接口支持的报价功能确认费用。 声明的单位费率：每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "operationId": "google-maps.place-photo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "maxheight": {
                    "default": 400,
                    "enum": [
                      400
                    ],
                    "maximum": 9223372036854775807,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxwidth": {
                    "default": 400,
                    "enum": [
                      400
                    ],
                    "maximum": 9223372036854775807,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "photo_reference": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "pattern": "^places/[A-Za-z0-9_-]+/photos/[A-Za-z0-9_-]+$",
                    "type": "string"
                  }
                },
                "required": [
                  "photo_reference"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "成功响应"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get Place Photo",
        "tags": [
          "Google Maps"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": false,
          "mpp_methods": [],
          "x402": false
        },
        "x-aisa-category": "data",
        "x-aisa-pricing": {
          "cost_contract": "response_units",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "estimate_source": "unavailable",
          "estimate_unavailable_reason": "reference_request_unavailable",
          "evidence_source": "response_body",
          "maximum_units": 10000000,
          "unit": "provider_credit",
          "unit_rate_usd": 1e-06
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-response-passthrough": true,
        "x-aisa-response-upstream-origin-sha256": "1c29f9f43adcd28c24873d500346e963a557cb3819ba15ea46cbbe38c3c6f4cc",
        "x-aisa-response-upstream-path-sha256": "88fe637beab867e285c088d60d6cc3b3a3bd3823dcabb84f087145eed24b8944",
        "x-aisa-revision": {
          "customer_pricing_ref": "541c4271fcd0",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "737abc347c9e"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-catalog-id": "google-maps",
        "x-aisa-runtime-operation": {
          "operation_id": "google-maps.place-photo",
          "method": "POST",
          "path": "/apis/v1/google-maps/place-photo"
        },
        "x-aisa-response-pending": {
          "operation_id": "google-maps.place-photo",
          "path": "/apis/v1/google-maps/place-photo",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/google-maps/google-maps-place-photo"
      }
    },
    "/apis/v1/google-maps/text-search": {
      "post": {
        "description": "<!-- aisa-pricing:start -->\n按用量计费；默认请求预估费用：$0.0103 USD（不是固定价格）。 声明的单位费率：每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "operationId": "google-maps.text-search",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "fieldMask": "places.displayName,places.formattedAddress",
                    "maxResultCount": 1,
                    "textQuery": "nike"
                  }
                },
                "minimal": {
                  "value": {
                    "textQuery": "nike"
                  }
                }
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "fieldMask": {
                    "default": "places.displayName,places.formattedAddress",
                    "enum": [
                      "places.displayName,places.formattedAddress"
                    ],
                    "type": "string"
                  },
                  "maxResultCount": {
                    "default": 1,
                    "enum": [
                      1
                    ],
                    "maximum": 9223372036854775807,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "textQuery": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "textQuery"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "成功响应"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Text Search",
        "tags": [
          "Google Maps"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": false,
          "mpp_methods": [],
          "x402": false
        },
        "x-aisa-category": "data",
        "x-aisa-pricing": {
          "cost_contract": "response_units",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.0103,
          "estimate_source": "profile_seed",
          "evidence_source": "response_body",
          "maximum_units": 10000000,
          "unit": "provider_credit",
          "unit_rate_usd": 1e-06
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-response-passthrough": true,
        "x-aisa-response-upstream-origin-sha256": "1c29f9f43adcd28c24873d500346e963a557cb3819ba15ea46cbbe38c3c6f4cc",
        "x-aisa-response-upstream-path-sha256": "88fe637beab867e285c088d60d6cc3b3a3bd3823dcabb84f087145eed24b8944",
        "x-aisa-revision": {
          "customer_pricing_ref": "541c4271fcd0",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "6d4062747126"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-catalog-id": "google-maps",
        "x-aisa-runtime-operation": {
          "operation_id": "google-maps.text-search",
          "method": "POST",
          "path": "/apis/v1/google-maps/text-search"
        },
        "x-aisa-response-pending": {
          "operation_id": "google-maps.text-search",
          "path": "/apis/v1/google-maps/text-search",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/google-maps/text-search \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"fieldMask\": \"places.displayName,places.formattedAddress\",\n  \"maxResultCount\": 1,\n  \"textQuery\": \"nike\"\n}'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/google-maps/google-maps-text-search"
      }
    }
  }
}
