← Back to Forecast

API Documentation

Integrate mosquito pressure forecasting directly into your pest control software, routing systems, or custom applications. Our REST API provides real-time forecasts, bulk queries, and webhook alerts.

Quick Start

Get up and running in under 5 minutes.

1

Get an API Key

Create a free API key to start making requests:

curl -X POST "https://api.pressureforecast.com/api/keys?name=my-app&tier=free"
2

Make Your First Request

Get a 14-day forecast for any ZIP code:

curl -H "X-API-Key: YOUR_API_KEY" \ "https://api.pressureforecast.com/forecast/mosquito/zip/44256"
3

Parse the Response

The response includes today's score, 7-day forecast, and treatment recommendations:

{
  "location": {"name": "Medina", "state_code": "OH"},
  "today": {
    "date": "2026-03-17",
    "risk_score": 42,
    "risk_category": "High",
    "treatment_timing": "Consider treatment within 2-3 days"
  },
  "forecast": [...],
  "best_treatment_day": "2026-03-19",
  "population_trend": "increasing"
}

Endpoints

Forecasts

GET /forecast/mosquito/zip/{zip_code}

Get 14-day forecast (7 past + 7 future) for a US ZIP code.

POST /forecast/mosquito/bulk

Get forecasts for multiple ZIP codes in a single request (up to 100).

Annual Planning

GET /plan/mosquito/zip/{zip_code}

Get annual service plan with optimized treatment dates and visit counts.

Webhooks

POST /webhooks

Subscribe to real-time pressure spike alerts for your service areas.

GET /webhooks

List your webhook subscriptions.

DELETE /webhooks/{webhook_id}

Delete a webhook subscription.

View all endpoints in interactive documentation →

API Tiers

Choose the plan that fits your operation size.

Free
$0/mo
  • 100 calls/day
  • 1 location bulk
  • Basic support
Business
$199/mo
  • 10,000 calls/day
  • 100 locations bulk
  • Webhook alerts
  • Priority support
Enterprise
Custom
  • Unlimited calls
  • 500+ locations
  • SLA guarantee
  • Dedicated support

Integration Examples

JavaScript / Node.js

const response = await fetch( 'https://api.pressureforecast.com/forecast/mosquito/zip/44256', { headers: { 'X-API-Key': process.env.PRESSURE_API_KEY } } ); const data = await response.json(); console.log(`Today's risk: ${data.today.risk_category}`);

Python

import requests response = requests.get( 'https://api.pressureforecast.com/forecast/mosquito/zip/44256', headers={'X-API-Key': API_KEY} ) data = response.json() print(f"Today's risk: {data['today']['risk_category']}")

Bulk Request

curl -X POST "https://api.pressureforecast.com/forecast/mosquito/bulk" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"zip_codes": ["44256", "44124", "44107"], "include_annual_plan": false}'

Support & Integration Help

We're here to help you integrate Pressure Forecast into your pest control operations. Whether you're building a custom integration or connecting to PestPac, FieldRoutes, or other routing software, we can assist.

Email: api@pressureforecast.com
Documentation: api.pressureforecast.com/docs