{
  "components": {
    "callbacks": {},
    "examples": {},
    "headers": {},
    "links": {},
    "parameters": {},
    "pathItems": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {},
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "BytePlus SearchInfinity (AI Web Search + Fetch)",
    "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-catalogs": {
      "byteplus-search": {
        "description": "",
        "title": "BytePlus SearchInfinity (AI Web Search + Fetch)",
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        },
        "x-aisa-document": {
          "facts_hash": "c6938a2b68dcd4140f77b783866eb27d207badfaf1ccb92415f8f016896bad6f",
          "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-configured-paths": [
      "/apis/v1/byteplus/fetch",
      "/apis/v1/byteplus/web-search"
    ],
    "x-aisa-document": {
      "composer_version": "31",
      "document_hash": "sha256:60d1a2ff70f29b577bc42f2e0db1f229c1847714866113fb3a035fc2dde850e2",
      "facts_hash": "c6938a2b68dcd4140f77b783866eb27d207badfaf1ccb92415f8f016896bad6f",
      "generator_version": "3",
      "protocol_version": "1",
      "response_pending": [],
      "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-provider": "byteplus-search"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/byteplus/fetch": {
      "post": {
        "description": "Fetch a single URL and return clean, structured page content — title, body text, and publish time. `Url` is required. The response wraps `ResponseMetadata.RequestId` and a `Result` object with the parsed content. Use it to extract full page content for URLs you already have, typically pairing it with `post_byteplus_web_search` results.  failed requests are not charged.",
        "operationId": "post_byteplus_fetch",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "basic": {
                  "summary": "Fetch a page",
                  "value": {
                    "Url": "https://example.com"
                  }
                }
              },
              "schema": {
                "properties": {
                  "Url": {
                    "description": "The URL to fetch. Required.",
                    "example": "https://example.com",
                    "type": "string"
                  }
                },
                "required": [
                  "Url"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Live gateway 200 response",
                    "value": {
                      "ResponseMetadata": {
                        "Action": "",
                        "Region": "",
                        "RequestId": "20260904155514D7EA140BFD77348BC3FC",
                        "Service": "",
                        "Version": ""
                      },
                      "Result": {
                        "Data": {
                          "ContentText": "This domain is for use in documentation examples without needing permission. Avoid use in operations.\nLearn more",
                          "PublishTime": 0,
                          "StatusCode": 200,
                          "Title": "Example Domain",
                          "Url": "https://example.com"
                        },
                        "LogId": "20260904155514D7EA140BFD77348BC3FC"
                      }
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "ResponseMetadata": {
                      "description": "Upstream request metadata.",
                      "properties": {
                        "Action": {
                          "type": "string"
                        },
                        "Region": {
                          "type": "string"
                        },
                        "RequestId": {
                          "description": "Unique identifier for this request.",
                          "type": "string"
                        },
                        "Service": {
                          "type": "string"
                        },
                        "Version": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "Result": {
                      "description": "Fetch result payload.",
                      "properties": {
                        "Data": {
                          "description": "Structured page content.",
                          "properties": {
                            "ContentText": {
                              "description": "Clean body text extracted from the page.",
                              "type": "string"
                            },
                            "PublishTime": {
                              "description": "Detected publish time as Unix seconds (0 if unknown).",
                              "type": "integer"
                            },
                            "StatusCode": {
                              "description": "HTTP status code of the fetched page.",
                              "type": "integer"
                            },
                            "Title": {
                              "description": "Page title.",
                              "type": "string"
                            },
                            "Url": {
                              "description": "The fetched URL.",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "LogId": {
                          "description": "Upstream log id (equals ResponseMetadata.RequestId).",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Fetch completed successfully. `Result` holds the structured page content."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "BytePlus Fetch",
        "tags": [
          "byteplus"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "POST"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "byteplus-search",
        "x-aisa-category": "search",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/search/post_byteplus-fetch",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.0008,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:4d783e21f4c2d1591554a3d5171cf636931a0b646dc725ccf0e62c6bc8c0d104",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:8c1e87b57aedc3a44c19c4502f743843c6dbb02a9c62f4fd814a617e8ade0ed0",
            "converter": "scripts/import_existing_contracts.py@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:6abd39280a9f351ec4d7d7cf8edb2124fe283a6922d839e72bf7ab3b4c0f9cd7",
            "refresh_policy": "manual",
            "review_period_days": 30,
            "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/byteplus-search.json"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4928e9c54c0e",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "c0d2608b0fad"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "post_byteplus_fetch",
          "path": "/apis/v1/byteplus/fetch"
        },
        "x-aisa-source": {
          "content_hash": "sha256:8c1e87b57aedc3a44c19c4502f743843c6dbb02a9c62f4fd814a617e8ade0ed0",
          "converter": "scripts/import_existing_contracts.py@1",
          "fetched_at": "2026-09-29T21:25:55+08:00",
          "kind": "manual",
          "owner": "AIsa-team/docs",
          "path_space": "public",
          "policy_revision": "sha256:6abd39280a9f351ec4d7d7cf8edb2124fe283a6922d839e72bf7ab3b4c0f9cd7",
          "refresh_policy": "manual",
          "review_period_days": 30,
          "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/byteplus-search.json"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/search_api/fetch",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/byteplus/fetch \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"Url\": \"https://example.com\"\n}'"
          }
        ]
      }
    },
    "/apis/v1/byteplus/web-search": {
      "post": {
        "description": "Run a real-time web search built for AI agents and return a ranked list of titled results with links and snippets. `Query` is required; narrow the result set with `Count` (≤ 20), `Filter` (restrict to `Sites` or exclude `BlockHosts`), `Language`, and `TimeRange`. The response wraps `ResponseMetadata.RequestId` and a `Result` list of web results. Use it for RAG retrieval augmentation, competitive/PR monitoring, fact-checking, and content sourcing; pair each result URL with `post_byteplus_fetch` to pull full page content.  failed requests are not charged.",
        "operationId": "post_byteplus_web_search",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "basic": {
                  "summary": "Minimal query",
                  "value": {
                    "Query": "OpenAI news"
                  }
                },
                "filtered": {
                  "summary": "Query with count, domain filter, language and time window",
                  "value": {
                    "Count": 10,
                    "Filter": {
                      "BlockHosts": "reddit.com",
                      "Sites": "openai.com|bytedance.com"
                    },
                    "Language": "EN",
                    "Query": "OpenAI product launch",
                    "TimeRange": "OneWeek"
                  }
                }
              },
              "schema": {
                "properties": {
                  "Count": {
                    "default": 10,
                    "description": "Number of results to return. Optional; default 10, maximum 20.",
                    "example": 10,
                    "maximum": 20,
                    "type": "integer"
                  },
                  "Filter": {
                    "description": "Optional result filter. Both fields are pipe-separated strings of full domains (max 5 each).",
                    "properties": {
                      "BlockHosts": {
                        "description": "Exclude results from these full domains. Pipe-separated, max 5, e.g. \"reddit.com|quora.com\".",
                        "example": "reddit.com|quora.com",
                        "type": "string"
                      },
                      "Sites": {
                        "description": "Restrict results to these full domains. Pipe-separated, max 5, e.g. \"bytedance.com|byteplus.com\". (Sending an array returns 10400 Invalid Parameter.)",
                        "example": "bytedance.com|byteplus.com",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "Language": {
                    "description": "Optional language hint in the upstream format, e.g. EN, ZH-HANS, ZH-HANT.",
                    "example": "EN",
                    "type": "string"
                  },
                  "Query": {
                    "description": "The search query. Required. Max 400 characters; the upstream engine also effectively caps around 50 words.",
                    "example": "OpenAI news",
                    "maxLength": 400,
                    "type": "string"
                  },
                  "TimeRange": {
                    "description": "Optional recency window. One of the named windows OneDay / OneWeek / OneMonth / OneYear, or a custom range \"YYYY-MM-DD..YYYY-MM-DD\". Omit for no time filter. NOTE: values like \"week\"/\"month\" are silently ignored upstream.",
                    "example": "OneWeek",
                    "oneOf": [
                      {
                        "enum": [
                          "OneDay",
                          "OneWeek",
                          "OneMonth",
                          "OneYear"
                        ],
                        "type": "string"
                      },
                      {
                        "description": "Custom range, e.g. 2026-08-01..2026-09-01.",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}\\.\\.\\d{4}-\\d{2}-\\d{2}$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "Query"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Live gateway 200 response",
                    "value": {
                      "ResponseMetadata": {
                        "Action": "",
                        "Region": "",
                        "RequestId": "20260904155503A787EC832774768DC56F",
                        "Service": "",
                        "Version": ""
                      },
                      "Result": {
                        "Choices": null,
                        "LogId": "20260904155503A787EC832774768DC56F",
                        "ResultCount": 3,
                        "SearchContext": {
                          "OriginQuery": "OpenAI latest news",
                          "SearchType": "web"
                        },
                        "TimeCost": 935,
                        "Usage": null,
                        "WebResults": [
                          {
                            "Id": "19b903d59c017bbb04c7832574500d49",
                            "LogoUrl": "https://p16-bpsearch-sign.ibyteimg.com/...<signed>",
                            "PublishTime": "2026-09-03T07:50:20+08:00",
                            "PublishTimeUnix": 1788393020,
                            "SiteName": "OpenAI",
                            "Snippet": "Stay up to speed on the rapid advancement of AI technology and the benefits it offers to humanity.",
                            "SortId": 1,
                            "Summary": "Stay up to speed on the rapid advancement of AI technology and the benefits it offers to humanity.",
                            "Title": "OpenAI News | OpenAI",
                            "Url": "https://openai.com/news/"
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "ResponseMetadata": {
                      "description": "Upstream request metadata.",
                      "properties": {
                        "Action": {
                          "type": "string"
                        },
                        "Region": {
                          "type": "string"
                        },
                        "RequestId": {
                          "description": "Unique identifier for this request.",
                          "type": "string"
                        },
                        "Service": {
                          "type": "string"
                        },
                        "Version": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "Result": {
                      "description": "Search result payload.",
                      "properties": {
                        "Choices": {
                          "description": "Reserved; null unless applicable.",
                          "items": {
                            "type": "object"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "LogId": {
                          "description": "Upstream log id (equals ResponseMetadata.RequestId).",
                          "type": "string"
                        },
                        "ResultCount": {
                          "description": "Number of web results returned.",
                          "type": "integer"
                        },
                        "SearchContext": {
                          "description": "Echo of the resolved query context.",
                          "properties": {
                            "OriginQuery": {
                              "type": "string"
                            },
                            "SearchType": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "TimeCost": {
                          "description": "Upstream processing time in milliseconds.",
                          "type": "integer"
                        },
                        "Usage": {
                          "description": "Reserved; null unless applicable.",
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "WebResults": {
                          "description": "Ranked list of web results.",
                          "items": {
                            "properties": {
                              "Id": {
                                "description": "Opaque result id.",
                                "type": "string"
                              },
                              "LogoUrl": {
                                "description": "Signed site logo URL (time-limited).",
                                "type": "string"
                              },
                              "PublishTime": {
                                "description": "Publish time in ISO 8601 (may be empty).",
                                "type": "string"
                              },
                              "PublishTimeUnix": {
                                "description": "Publish time as Unix seconds (0 if unknown).",
                                "type": "integer"
                              },
                              "SiteName": {
                                "description": "Source site name (may be empty).",
                                "type": "string"
                              },
                              "Snippet": {
                                "description": "Short text snippet from the page.",
                                "type": "string"
                              },
                              "SortId": {
                                "description": "1-based rank of the result.",
                                "type": "integer"
                              },
                              "Summary": {
                                "description": "Longer summary of the page content.",
                                "type": "string"
                              },
                              "Title": {
                                "description": "结果标题。",
                                "type": "string"
                              },
                              "Url": {
                                "description": "结果 URL。",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Search completed successfully. `Result` holds the ranked web results."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "BytePlus Web Search",
        "tags": [
          "byteplus"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "POST"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "byteplus-search",
        "x-aisa-category": "search",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/search/post_byteplus-web-search",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.0048,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:36f53d52cd97be4d834fc0f2bddfd2fd75f856eade578ed516373422aad66beb",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:8c1e87b57aedc3a44c19c4502f743843c6dbb02a9c62f4fd814a617e8ade0ed0",
            "converter": "scripts/import_existing_contracts.py@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:6abd39280a9f351ec4d7d7cf8edb2124fe283a6922d839e72bf7ab3b4c0f9cd7",
            "refresh_policy": "manual",
            "review_period_days": 30,
            "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/byteplus-search.json"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "7de14a358802",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "75a0390ef8d8"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "post_byteplus_web_search",
          "path": "/apis/v1/byteplus/web-search"
        },
        "x-aisa-source": {
          "content_hash": "sha256:8c1e87b57aedc3a44c19c4502f743843c6dbb02a9c62f4fd814a617e8ade0ed0",
          "converter": "scripts/import_existing_contracts.py@1",
          "fetched_at": "2026-09-29T21:25:55+08:00",
          "kind": "manual",
          "owner": "AIsa-team/docs",
          "path_space": "public",
          "policy_revision": "sha256:6abd39280a9f351ec4d7d7cf8edb2124fe283a6922d839e72bf7ab3b4c0f9cd7",
          "refresh_policy": "manual",
          "review_period_days": 30,
          "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/byteplus-search.json"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/search_api/web_search",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/byteplus/web-search \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"Query\": \"OpenAI news\"\n}'"
          }
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
