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

# /immobiliare/agencies/search

> Search Immobiliare.it real estate agencies by location (city or province) with contract, association and franchising group filters. Returns agency cards with name, type, description, address, phone, image, association, listing counts, years on the portal, quality index, badge and location with coordinates.

**Price:** 20 credits per 25 results

**⚠️ Common errors:** 412: Location could not be resolved, or franchising group name not found



## OpenAPI

````yaml /openapi/real-estate.json post /api/immobiliare/agencies/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/immobiliare/agencies/search:
    post:
      tags:
        - /immobiliare
      summary: /immobiliare/agencies/search
      description: >-
        Search Immobiliare.it real estate agencies by location (city or
        province) with contract, association and franchising group filters.
        Returns agency cards with name, type, description, address, phone,
        image, association, listing counts, years on the portal, quality index,
        badge and location with coordinates.


        **Price:** 20 credits per 25 results


        **⚠️ Common errors:** 412: Location could not be resolved, or
        franchising group name not found
      operationId: __api_immobiliare_agencies_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImmobiliareAgenciesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ImmobiliareAgencyListItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ImmobiliareAgenciesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        location:
          type: string
          minLength: 1
        contract:
          $ref: '#/components/schemas/ImmobiliareAgencyContract'
          default: all
        association:
          anyOf:
            - $ref: '#/components/schemas/ImmobiliareAssociation'
            - type: 'null'
        franchising:
          anyOf:
            - type: string
            - type: 'null'
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - location
        - count
    ImmobiliareAgencyListItem:
      properties:
        '@type':
          type: string
          default: ImmobiliareAgencyListItem
        id:
          type: integer
        name:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        type:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        association:
          anyOf:
            - type: string
            - type: 'null'
        listing_count:
          anyOf:
            - type: integer
            - type: 'null'
        sale_listing_count:
          anyOf:
            - type: integer
            - type: 'null'
        years_on_site:
          anyOf:
            - type: integer
            - type: 'null'
        quality_index:
          anyOf:
            - type: integer
            - type: 'null'
        badge:
          anyOf:
            - type: string
            - type: 'null'
        is_guaranteed:
          anyOf:
            - type: boolean
            - type: 'null'
        location:
          anyOf:
            - $ref: '#/components/schemas/ImmobiliareAgencyLocation'
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ImmobiliareAgencyContract:
      type: string
      enum:
        - all
        - sale
        - rent
    ImmobiliareAssociation:
      type: string
      enum:
        - anama
        - fiaip
        - fimaa
        - ance
        - air
    ImmobiliareAgencyLocation:
      properties:
        '@type':
          type: string
          default: ImmobiliareAgencyLocation
        address:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        province:
          anyOf:
            - type: string
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        zone:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````