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

# Search Signals

Searches geo-scoped signals across a state, with filters like `geo_type`, `signal_keys`, and decision/score thresholds.

Use this when you want ranked or filtered geo-level opportunities, not just one fixed `geo_id`.

For narrative examples and interpretation guidance, see [Signals & Methodology](/signals-and-methodology).

### Required input

* None (defaults to `state=WA` if omitted)

### Optional input

* `state` (2-letter code)
* `signal_keys` (CSV list)
* `geo_type` (`jurisdiction`, `city`, `zip`, `county`, `state`)
* `decision` (for example `positive`)
* `min_score` (`0..1`)
* `limit` (`1..100`)
* `cursor` (opaque pagination token)

### Behavior notes

* If `signal_keys` is provided, it is applied as a hard filter.
* If `signal_keys` is omitted, results are ranked across all active geo signals by score.
* Pagination order is `score DESC, signal_key ASC, geo_id ASC`.

### Example request

```bash theme={null}
curl -sS "$API_BASE_URL/v1/signals/geo/search?state=WA&geo_type=county&signal_keys=roofing_activity_hotspot&decision=positive&min_score=0.60&limit=25" \
  -H "x-api-key: $HOMELOGS_API_KEY"
```

### Response shape

* `state`
* `count`
* `signals[]` with `geo_id`, `geo_type`, `display_name`, `signal_key`, `value`, `score`, `confidence`, `decision`, `reasons`, `computed_at`
* `next_cursor`


## OpenAPI

````yaml GET /v1/signals/geo/search
openapi: 3.1.0
info:
  title: HomeLogs Geo + Permit Intelligence API
  version: 1.0.0
  description: >-
    Geo-first API for location resolution, permit retrieval, and active geo
    signal access.
servers:
  - url: https://api.homelogs.io
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: locations
    description: Location resolution and anchor detail endpoints.
  - name: permits
    description: Raw permit retrieval by geo scope.
  - name: signals
    description: Signal catalog and signal reads.
  - name: permit-signals
    description: Permit-scoped signal leads and aggregates.
  - name: health
    description: Service liveness endpoint.
paths:
  /v1/signals/geo/search:
    get:
      tags:
        - signals
      summary: Search geo signals within a state
      operationId: searchSignals
      parameters:
        - name: state
          in: query
          required: false
          schema:
            type: string
            pattern: ^[A-Za-z]{2}$
            default: WA
        - name: signal_keys
          in: query
          required: false
          description: Optional CSV list of signal keys.
          schema:
            type: string
        - name: geo_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - property
              - jurisdiction
              - city
              - zip
              - county
              - state
        - name: decision
          in: query
          required: false
          schema:
            type: string
            example: positive
        - name: min_score
          in: query
          required: false
          schema:
            type: number
            minimum: 0
            maximum: 1
            example: 0.5
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: Opaque cursor from previous page.
      responses:
        '200':
          description: Signal rows matching filters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalsSearchResponse'
        '403':
          $ref: '#/components/responses/GatewayAuth403'
        '422':
          $ref: '#/components/responses/ValidationError422'
        '429':
          $ref: '#/components/responses/GatewayThrottle429'
        '500':
          $ref: '#/components/responses/InternalError500'
components:
  schemas:
    SignalsSearchResponse:
      type: object
      required:
        - state
        - count
        - signals
        - next_cursor
      properties:
        state:
          type: string
        count:
          type: integer
          minimum: 0
        signals:
          type: array
          items:
            $ref: '#/components/schemas/SignalsSearchEntry'
        next_cursor:
          type:
            - string
            - 'null'
      additionalProperties: false
    SignalsSearchEntry:
      allOf:
        - $ref: '#/components/schemas/SignalItem'
        - type: object
          required:
            - geo_id
            - geo_type
            - display_name
          properties:
            geo_id:
              type: string
            geo_type:
              type:
                - string
                - 'null'
              enum:
                - property
                - jurisdiction
                - city
                - zip
                - county
                - state
                - null
            display_name:
              type:
                - string
                - 'null'
    GatewayErrorResponse:
      type: object
      properties:
        message:
          type: string
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: VALIDATION_ERROR
            message:
              type: string
              example: state must be a 2-letter code
            request_id:
              type:
                - string
                - 'null'
              example: req-123
    SignalItem:
      type: object
      required:
        - signal_key
        - value
        - score
        - confidence
        - decision
        - reasons
        - computed_at
      properties:
        signal_key:
          type: string
        value:
          type:
            - object
            - array
            - string
            - number
            - boolean
            - 'null'
        score:
          type:
            - number
            - 'null'
        confidence:
          type:
            - number
            - 'null'
        decision:
          type:
            - string
            - 'null'
        reasons:
          type:
            - array
            - 'null'
          items:
            type: string
        computed_at:
          type:
            - string
            - 'null'
          format: date-time
  responses:
    GatewayAuth403:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayErrorResponse'
    ValidationError422:
      description: Validation failure.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    GatewayThrottle429:
      description: Rate limit or quota exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayErrorResponse'
    InternalError500:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````