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

# Google Light Search

> Organic results and related searches through a dedicated lightweight endpoint.

A successful uncached request costs **10 credits**. Failed requests and cache
hits are free. Check `X-Credits-Used` for the actual charge and
`/api/public/pricing` for current prices and promotions.

```bash theme={null}
curl --get 'https://scrapebadger.com/v1/google/light/search' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --data-urlencode 'q=vinted api' \
  --data-urlencode 'gl=us' \
  --data-urlencode 'hl=en'
```

The JSON response contains `search_information`, `organic_results`,
`related_searches` and `pagination`. Light skips ads, AI Overviews, Knowledge
Graph, People Also Ask, local results, news, inline videos and shopping.
No `mode` parameter is required. Passing `mode=full` or `ai_overview=true`
cannot enable rich SERP features.

Use `start=10`, `20`, and so on for later pages. Google may return fewer results
than requested by `num`; a page commonly contains about ten organic results.
Set `output=html` to receive the raw Google response instead of parsed JSON.

Light has an eight-second processing budget, including fetching, fallback and
parsing. If the budget expires, the response is `503` with `Retry-After`.

The CLI command is `scrapebadger google light-search "vinted api"`. The MCP tool
is `google_light_search`, with `start` for pagination.

See the [Light overview](/google-light/overview.md) or
[regular Search](/api-reference/google/google-search/google-web-search.md).


## OpenAPI

````yaml GET /v1/google/light/search
openapi: 3.1.0
info:
  title: ScrapeBadger Google Scraper
  description: >-
    Dedicated API for scraping Google products (SERP, Maps, News, Hotels,
    Trends, Jobs, Shopping, Patents, Scholar, Autocomplete, Images, Videos,
    Finance, AI Mode, Lens, Products).
  version: 1.0.0
servers:
  - url: https://scrapebadger.com
    description: Production
security:
  - apiKeyAuth: []
paths:
  /v1/google/light/search:
    get:
      tags:
        - Google Light Search
      summary: Google Light web search
      description: |-
        Google Light Search: organic results and related searches, 10 credits.

        The dedicated route always uses the lightweight fetch path. It cannot be
        upgraded to full Search by passing mode=full or ai_overview=true.
      operationId: google_light_search_api_v1_light_search_get
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            description: >-
              Search query (supports Google operators like site:, inurl:,
              intitle:)
            title: Q
          description: >-
            Search query (supports Google operators like site:, inurl:,
            intitle:)
        - name: gl
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Country code (e.g. us, gb, de, fr). Defaults to the country
              implied by ``domain`` (e.g. ``google.co.uk`` → ``gb``), falling
              back to ``us`` when domain doesn't carry a country hint.
            title: Gl
          description: >-
            Country code (e.g. us, gb, de, fr). Defaults to the country implied
            by ``domain`` (e.g. ``google.co.uk`` → ``gb``), falling back to
            ``us`` when domain doesn't carry a country hint.
        - name: hl
          in: query
          required: false
          schema:
            type: string
            description: Language code (e.g. en, es, fr)
            default: en
            title: Hl
          description: Language code (e.g. en, es, fr)
        - name: num
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Results per page
            default: 10
            title: Num
          description: Results per page
        - name: start
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Pagination offset (0, 10, 20...)
            default: 0
            title: Start
          description: Pagination offset (0, 10, 20...)
        - name: domain
          in: query
          required: false
          schema:
            type: string
            description: Google domain (e.g. google.com, google.co.uk)
            default: google.com
            title: Domain
          description: Google domain (e.g. google.com, google.co.uk)
        - name: device
          in: query
          required: false
          schema:
            type: string
            description: >-
              Device target — selects the Google SERP layout via a matching
              User-Agent. One of: desktop, mobile, iphone, android, tablet.
            default: desktop
            title: Device
          description: >-
            Device target — selects the Google SERP layout via a matching
            User-Agent. One of: desktop, mobile, iphone, android, tablet.
        - name: user_agent
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 512
                pattern: ^[^\r\n]*$
              - type: 'null'
            description: >-
              Custom User-Agent to send to Google. Overrides ``device``. Use to
              target a specific browser/OS fingerprint.
            title: User Agent
          description: >-
            Custom User-Agent to send to Google. Overrides ``device``. Use to
            target a specific browser/OS fingerprint.
        - name: location
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: City-level geo-targeting (e.g. 'New York, USA')
            title: Location
          description: City-level geo-targeting (e.g. 'New York, USA')
        - name: lr
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Language restrict (e.g. lang_en)
            title: Lr
          description: Language restrict (e.g. lang_en)
        - name: tbs
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Time-based search filter (e.g. qdr:d for past 24h)
            title: Tbs
          description: Time-based search filter (e.g. qdr:d for past 24h)
        - name: safe
          in: query
          required: false
          schema:
            type: string
            description: Safe search (active/off)
            default: 'off'
            title: Safe
          description: Safe search (active/off)
        - name: uule
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Encoded location parameter (UULE)
            title: Uule
          description: Encoded location parameter (UULE)
        - name: filter
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1
                minimum: 0
              - type: 'null'
            description: Include omitted results (0=show all, 1=filter)
            title: Filter
          description: Include omitted results (0=show all, 1=filter)
        - name: nfpr
          in: query
          required: false
          schema:
            type: integer
            maximum: 1
            minimum: 0
            description: Disable auto-correction (1=exact match)
            default: 0
            title: Nfpr
          description: Disable auto-correction (1=exact match)
        - name: cr
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Country restrict (e.g. countryUS|countryGB)
            title: Cr
          description: Country restrict (e.g. countryUS|countryGB)
        - name: ludocid
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Google My Business CID (place ID)
            title: Ludocid
          description: Google My Business CID (place ID)
        - name: lsig
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Knowledge Graph map view ID
            title: Lsig
          description: Knowledge Graph map view ID
        - name: kgmid
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Knowledge Graph entity ID
            title: Kgmid
          description: Knowledge Graph entity ID
        - name: si
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Cached search parameters
            title: Si
          description: Cached search parameters
        - name: ibp
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Layout control (e.g. gwp;0,7)
            title: Ibp
          description: Layout control (e.g. gwp;0,7)
        - name: uds
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Google filter string
            title: Uds
          description: Google filter string
        - name: output
          in: query
          required: false
          schema:
            enum:
              - json
              - html
            type: string
            description: >-
              Response format. **json** (default): structured parsed SERP.
              **html**: the raw Google SERP HTML exactly as fetched, with
              ``Content-Type: text/html`` and no parsing. Use ``html`` when you
              run your own parser. Pagination/geo/device/UULE params all still
              apply; the ``ai_overview`` chase is skipped for html output.
            default: json
            title: Output
          description: >-
            Response format. **json** (default): structured parsed SERP.
            **html**: the raw Google SERP HTML exactly as fetched, with
            ``Content-Type: text/html`` and no parsing. Use ``html`` when you
            run your own parser. Pagination/geo/device/UULE params all still
            apply; the ``ai_overview`` chase is skipped for html output.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleLightSearchResponse'
            text/html: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GoogleLightSearchResponse:
      properties:
        search_information:
          $ref: '#/components/schemas/SearchInformation'
        organic_results:
          items:
            $ref: '#/components/schemas/OrganicResult'
          type: array
          title: Organic Results
        related_searches:
          items:
            $ref: '#/components/schemas/RelatedSearch'
          type: array
          title: Related Searches
        pagination:
          $ref: '#/components/schemas/Pagination'
      type: object
      required:
        - search_information
        - pagination
      title: GoogleLightSearchResponse
      description: Essential SERP data returned by GET /api/v1/light/search.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SearchInformation:
      properties:
        query_displayed:
          type: string
          title: Query Displayed
        total_results:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Results
        time_taken:
          anyOf:
            - type: number
            - type: 'null'
          title: Time Taken
        organic_results_state:
          anyOf:
            - type: string
            - type: 'null'
          title: Organic Results State
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
      type: object
      required:
        - query_displayed
      title: SearchInformation
      description: Metadata about the search query.
    OrganicResult:
      properties:
        position:
          title: Position
          type: integer
        title:
          title: Title
          type: string
        link:
          type: string
          title: Link
        displayed_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayed Link
        snippet:
          anyOf:
            - type: string
            - type: 'null'
          title: Snippet
        highlighted_keywords:
          items:
            type: string
          type: array
          title: Highlighted Keywords
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        favicon:
          anyOf:
            - type: string
            - type: 'null'
          title: Favicon
        sitelinks:
          items:
            $ref: '#/components/schemas/Sitelink'
          title: Sitelinks
          type: array
        inline_sitelinks:
          items:
            $ref: '#/components/schemas/InlineSitelink'
          type: array
          title: Inline Sitelinks
        date:
          anyOf:
            - type: string
            - type: 'null'
          title: Date
        rank:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rank
        page_rank:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page Rank
      type: object
      required:
        - position
        - title
        - link
      title: OrganicResult
      description: A single organic search result.
    RelatedSearch:
      properties:
        query:
          type: string
          title: Query
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
      type: object
      required:
        - query
      title: RelatedSearch
      description: Related search suggestion.
    Pagination:
      properties:
        current:
          anyOf:
            - type: integer
            - type: string
          title: Current
          default: 1
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
        total_results:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Results
        total_pages:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Pages
        page_no:
          additionalProperties:
            type: string
          type: object
          title: Page No
      type: object
      title: Pagination
      description: Pagination metadata.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Sitelink:
      properties:
        title:
          title: Title
          type: string
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
        snippet:
          anyOf:
            - type: string
            - type: 'null'
          title: Snippet
      type: object
      required:
        - title
      title: Sitelink
      description: A sitelink within an organic result.
    InlineSitelink:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        date:
          anyOf:
            - type: string
            - type: 'null'
          title: Date
      type: object
      title: InlineSitelink
      description: An inline sitelink (e.g. Reddit post metadata).
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.