La Palma 24 Precios API

Cálculo de precios

GitHub OpenAPI

Operations 1

GET /api/calcular-precio Calcular precio de una estancia #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/la-palma24-net:la-palma24-net-precios-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

la-palma24-net-precios-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: de Propiedades Vacacionales - La Palma 24 Precios API
  version: 1.0.0
  description: 'API REST para consultar disponibilidad, características y precios de propiedades vacacionales en La Palma.


    Autenticación: enviar la cabecera X-API-Key.


    Endpoints principales:

    - Disponibilidad: /api/disponibilidad

    - Listado con filtros: /api/propiedades

    - Detalle: /api/propiedad/{id_casa}

    - Precio: /api/calcular-precio

    - Taxonomías: /api/municipios, /api/barrios'
  contact:
    name: Soporte API
servers:
- url: https://admin.la-palma24.net
  description: Servidor de Producción
security:
- ApiKeyAuth: []
tags:
- name: Precios
  description: Cálculo de precios
paths:
  /api/calcular-precio:
    get:
      summary: Calcular precio de una estancia
      description: Calcula el precio total de una estancia incluyendo tarifas por temporada y descuentos aplicables.
      operationId: calcularPrecio
      tags:
      - Precios
      parameters:
      - $ref: '#/components/parameters/id_casa_query'
      - $ref: '#/components/parameters/fecha_llegada'
      - $ref: '#/components/parameters/fecha_salida'
      - $ref: '#/components/parameters/num_personas'
      responses:
        '200':
          description: Precio calculado con descuentos
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrecioResponse'
              examples:
                ok:
                  summary: Ejemplo
                  value:
                    success: true
                    data:
                      id_casa: LP24-001
                      noches: 7
                      num_personas: 2
                      moneda: EUR
                      subtotal: 840
                      descuentos:
                      - codigo: SEMANA7
                        descripcion: Descuento por 7 noches
                        importe: 50
                      total: 790
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  responses:
    NotFound:
      description: Recurso no encontrado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            not_found:
              value:
                success: false
                error:
                  code: NOT_FOUND
                  message: Propiedad no encontrada
    ServerError:
      description: Error interno del servidor
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            server_error:
              value:
                success: false
                error:
                  code: SERVER_ERROR
                  message: Ocurrió un error inesperado
    Unauthorized:
      description: No autenticado (API Key ausente o inválida)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            unauthorized:
              value:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: X-API-Key inválida o ausente
    BadRequest:
      description: Parámetros inválidos o incompletos
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            bad_request:
              value:
                success: false
                error:
                  code: BAD_REQUEST
                  message: fecha_llegada y fecha_salida son obligatorias
                  details:
                    missing:
                    - fecha_llegada
                    - fecha_salida
  parameters:
    fecha_llegada:
      name: fecha_llegada
      in: query
      required: true
      schema:
        type: string
        format: date
      description: Fecha de llegada (YYYY-MM-DD)
      example: '2026-03-01'
    num_personas:
      name: num_personas
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        default: 2
      description: Número de huéspedes
      example: 2
    fecha_salida:
      name: fecha_salida
      in: query
      required: true
      schema:
        type: string
        format: date
      description: Fecha de salida (YYYY-MM-DD)
      example: '2026-03-08'
    id_casa_query:
      name: id_casa
      in: query
      required: true
      schema:
        type: string
      description: ID de la propiedad
      example: LP24-001
  schemas:
    ApiError:
      type: object
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              examples:
              - BAD_REQUEST
              - UNAUTHORIZED
              - NOT_FOUND
              - SERVER_ERROR
            message:
              type: string
            details:
              type: object
              additionalProperties: true
    PrecioResponse:
      type: object
      required:
      - success
      - data
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/PrecioData'
    PrecioData:
      type: object
      required:
      - id_casa
      - noches
      - num_personas
      - moneda
      - total
      properties:
        id_casa:
          type: string
        noches:
          type: integer
        num_personas:
          type: integer
        moneda:
          type: string
          default: EUR
        subtotal:
          type: number
        descuentos:
          type: array
          items:
            $ref: '#/components/schemas/Descuento'
        total:
          type: number
    Descuento:
      type: object
      properties:
        codigo:
          type: string
        descripcion:
          type: string
        importe:
          type: number
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key para autenticación