Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: Rainplover Subscriptions API
version: 0.1.0
description: Weather, alerts and earthquakes for AI agents. One account works on every agent-first site run by API Evangelist.
contact:
email: info@apievangelist.com
license:
name: Apache-2.0
servers:
- url: https://rainplover.com
security:
- apiKey: []
tags:
- name: Subscriptions
paths:
/v1/subscriptions:
post:
operationId: subscribe_alerts
summary: Push alerts for a place
description: 'Watch a place: new US weather alerts and nearby earthquakes are pushed to a URL, a Hookpie inbox or the owner''s email, checked every 5 minutes. About $0.05 a place a month; the first place is free.'
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
lat:
type: number
description: Latitude, decimal degrees
lon:
type: number
description: Longitude, decimal degrees
place:
type: string
description: Or a place name, e.g. "Bergen" or "Springfield, IL"
name:
type: string
description: A label
alerts:
type: boolean
description: US weather alerts (default true)
earthquakes:
type: object
properties:
radius_km:
type: integer
description: Default 300, up to 2000
min_magnitude:
type: number
description: Default 4
required: []
additionalProperties: false
target:
type: object
properties:
url:
type: string
description: A public https URL (signed Standard Webhooks POST)
inbox_id:
type: string
description: One of your Hookpie inboxes
email:
type: boolean
required: []
additionalProperties: false
required:
- target
responses:
'200':
description: OK
'201':
description: Created
'400':
description: Invalid (problem details)
'401':
description: API key required
'402':
description: 'Without an API key: x402 payment requirements (PAYMENT-REQUIRED header). With one: the owner must act, see account_url'
'404':
description: Not found
tags:
- Subscriptions
get:
operationId: list_subscriptions
summary: List alert subscriptions
description: Your alert subscriptions and when each last ran.
parameters: []
responses:
'200':
description: OK
'201':
description: Created
'400':
description: Invalid (problem details)
'401':
description: API key required
'402':
description: 'Without an API key: x402 payment requirements (PAYMENT-REQUIRED header). With one: the owner must act, see account_url'
'404':
description: Not found
tags:
- Subscriptions
/v1/subscriptions/{id}:
delete:
operationId: delete_subscription
summary: Delete an alert subscription
description: Stop watching a place.
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
'201':
description: Created
'400':
description: Invalid (problem details)
'401':
description: API key required
'402':
description: 'Without an API key: x402 payment requirements (PAYMENT-REQUIRED header). With one: the owner must act, see account_url'
'404':
description: Not found
tags:
- Subscriptions
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
description: An API key from POST /v1/accounts (shown once).