> ## Documentation Index
> Fetch the complete documentation index at: https://docs.growthmarketing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search HTML Source Code

> Search through website source code to find specific HTML elements, attributes, or technologies



## OpenAPI

````yaml post /html-source-code-search
openapi: 3.0.0
info:
  title: Growth Marketing API
  description: API for company information, logos, MOZ metrics, and SERP data
  version: 1.0.0
  contact:
    name: Growth Marketing AI
    url: https://growthmarketing.ai
servers:
  - url: https://api.growthmarketing.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /html-source-code-search:
    post:
      tags:
        - HTML Source Code
      summary: Search HTML Source Code
      description: >-
        Search through website source code to find specific HTML elements,
        attributes, or technologies
      operationId: searchHtmlSourceCode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HTMLSourceCodeSearchRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTMLSourceCodeSearchResponse'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too Many Requests - Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    HTMLSourceCodeSearchRequest:
      type: object
      required:
        - search_terms
      properties:
        search_terms:
          type: array
          items:
            type: string
          description: Array of strings to search for in the HTML source code
          example:
            - data-attrid
        order_by:
          type: array
          items:
            type: string
          description: >-
            Array of strings specifying the sorting order (e.g.,
            'last_visited,desc')
          example:
            - last_visited,desc
        limit:
          type: integer
          description: Maximum number of results to return per page
          default: 10
          example: 10
        offset:
          type: integer
          description: Number of results to skip for pagination
          default: 0
          example: 0
    HTMLSourceCodeSearchResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            total_count:
              type: integer
              example: 1233
            items_count:
              type: integer
              example: 2
            offset:
              type: integer
              example: 0
            offset_token:
              type: string
              example: eyJDdXJyZW50T2Zmc2V0IjoyLCJSYXdSZXF1ZXN0...
            items:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    example: domain_technology_item
                  domain:
                    type: string
                    example: example.com
                  title:
                    type: string
                    example: Example Website Title
                  description:
                    type: string
                    example: Example website description
                  meta_keywords:
                    type: array
                    items:
                      type: string
                    example:
                      - keyword1
                      - keyword2
                  domain_rank:
                    type: integer
                    example: 537
                  last_visited:
                    type: string
                    example: '2024-12-21 15:49:23 +00:00'
                  country_iso_code:
                    type: string
                    example: GB
                  language_code:
                    type: string
                    example: en
                  content_language_code:
                    type: string
                    example: en
                  emails:
                    type: array
                    items:
                      type: string
                    example:
                      - contact@example.com
                  social_graph_urls:
                    type: array
                    items:
                      type: string
                    example:
                      - https://twitter.com/example
                  technologies:
                    type: object
                    example:
                      other:
                        widgets:
                          - AddThis
                          - Twitter
                      web_development:
                        javascript_libraries:
                          - Axios
                          - jQuery
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Error message
        details:
          type: string
          example: Additional error details
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````