> ## 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.

# /salarycom/cost_of_living

> Get Salary.com (salary.com) cost of living for a city: total monthly cost for singles and families, how it compares to the national and state average, and a breakdown by expense category (housing, food, energy, transportation, healthcare).

**Price:** 5 credits

**⚠️ Common errors:** 412: No cost of living data found for this location



## OpenAPI

````yaml /openapi/jobs.json post /api/salarycom/cost_of_living
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/salarycom/cost_of_living:
    post:
      tags:
        - /salarycom
      summary: /salarycom/cost_of_living
      description: >-
        Get Salary.com (salary.com) cost of living for a city: total monthly
        cost for singles and families, how it compares to the national and state
        average, and a breakdown by expense category (housing, food, energy,
        transportation, healthcare).


        **Price:** 5 credits


        **⚠️ Common errors:** 412: No cost of living data found for this
        location
      operationId: __api_salarycom_cost_of_living_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SalarycomCostOfLivingPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SalarycomCostOfLiving'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SalarycomCostOfLivingPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        location:
          type: string
          minLength: 1
      type: object
      required:
        - location
    SalarycomCostOfLiving:
      properties:
        '@type':
          type: string
          default: SalarycomCostOfLiving
        location:
          anyOf:
            - type: string
            - type: 'null'
        zip_code:
          anyOf:
            - type: string
            - type: 'null'
        metro_code:
          anyOf:
            - type: string
            - type: 'null'
        monthly_cost_single:
          anyOf:
            - type: number
            - type: 'null'
        monthly_cost_family:
          anyOf:
            - type: number
            - type: 'null'
        vs_national_percent:
          anyOf:
            - type: number
            - type: 'null'
        vs_state_percent:
          anyOf:
            - type: number
            - type: 'null'
        categories:
          items:
            $ref: '#/components/schemas/SalarycomCostCategory'
          type: array
          default: []
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SalarycomCostCategory:
      properties:
        '@type':
          type: string
          default: SalarycomCostCategory
        name:
          anyOf:
            - type: string
            - type: 'null'
        monthly_single:
          anyOf:
            - type: number
            - type: 'null'
        monthly_family:
          anyOf:
            - type: number
            - type: 'null'
        index_percent:
          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

````