{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/searlo-tech/json-schema/searlo-tech-serp-result-schema.json",
  "title": "SerpResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/searlo-tech-openapi.yaml#/components/schemas/SerpResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits": {
      "type": "number",
      "description": "Credits charged: 3 per page delivered (+1 with rawHtml); 0 for an empty SERP."
    },
    "searchParameters": {
      "type": "object",
      "additionalProperties": true
    },
    "organic": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "redirectUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolved": {
            "type": "boolean"
          },
          "displayedUrl": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          },
          "date": {
            "type": [
              "string",
              "null"
            ]
          },
          "sitelinks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "page": {
            "type": "integer"
          }
        }
      }
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "redirectUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolved": {
            "type": "boolean"
          },
          "source": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          }
        }
      }
    },
    "ads": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "block": {
            "type": "string",
            "enum": [
              "top",
              "bottom"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "displayedUrl": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "peopleAlsoAsk": {
      "type": "array",
      "description": "The questions only; answers are not included.",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          }
        }
      }
    },
    "relatedSearches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          }
        }
      }
    },
    "knowledgeGraph": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "aioverview": {
      "type": [
        "object",
        "null"
      ],
      "description": "Null when Google showed no AI Overview; absent when aioverview=false.",
      "properties": {
        "complete": {
          "type": "boolean",
          "description": "true when the overview was read in full, from the page as served or from the rendered page; false when only part of it could be read."
        },
        "pending": {
          "type": "boolean",
          "description": "true when Google loads the overview after the page: text is empty, and GET /serp reads it from the rendered page."
        },
        "rendered": {
          "type": "boolean",
          "description": "Present and true when the overview was completed from the page rendered in a browser. From 2026-11-01 such a request costs 5 credits more."
        },
        "text": {
          "type": "string"
        },
        "markdown": {
          "type": "string"
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "position": {
                "type": "integer"
              },
              "label": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "supportingCount": {
                "type": "integer"
              },
              "url": {
                "type": "string"
              },
              "redirectUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "resolved": {
                "type": "boolean"
              },
              "domain": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "aiModeAvailable": {
      "type": "boolean"
    },
    "pagesFetched": {
      "type": "integer",
      "description": "Pages delivered, and billed: lower than pages when Google has no further page, a later page repeats the one before, or it did not come back."
    },
    "gotoResolved": {
      "type": "integer"
    },
    "fetchedAt": {
      "type": "string",
      "format": "date-time"
    },
    "source": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "rawHtml": {
      "type": "string",
      "description": "With rawHtml=true: the page's HTML."
    }
  }
}