← All integrations

Reference & Lookup Data · Integration

Embed a Weather API integration in your product

Add Weather API to your product for your customers, and give your AI agents governed access to it.

Weather API is a read surface and nothing more, so treat this integration as a feed rather than a system your product writes into: current conditions, forecasts by hour and by day, historical observations, and the location or coordinate lookup that resolves where a customer means. Nothing is created, updated or deleted, and no webhook exists to tell you a forecast moved, so your product polls on a schedule it picks and caches what comes back. The constraints are the ones any metered feed has: a call quota on the key, units and locale that must be chosen deliberately, and forecast horizons that vary by plan. fastn holds each customer's key and monitors the connector for Weather API API changes, proposing a tested fix your team approves.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Have each customer supply their own key, so the calls your feature makes are metered against them rather than you.
  • Read current conditions for a location your product already stores, and show them beside the record they belong to.
  • Pull an hourly or daily forecast to decide whether a scheduled job, delivery or site visit should go ahead.
  • Cache responses per location and refresh on your own timetable, because nothing here will notify you when a value moves.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent checks the forecast for a site before advising on a reschedule, with the location it queried logged.
  • An agent compares historical observations against a date a customer asks about, reading only what the key permits.
  • An agent states plainly that it can read weather and change nothing, because this connector exposes no writes.

Example prompt

What is the hourly forecast for this site tomorrow, and was it raining there on the day of the incident?

Set up Weather API in 4 steps

  1. 01Enable the Weather API connector from your fastn dashboard.
  2. 02Have each customer authorize their own Weather API account, so calls run under their credentials rather than a shared key.
  3. 03Decide which current conditions, forecasts, historical observations and locations your product needs, then decide your polling interval and cache policy, because this is a read-only feed with no webhooks.
  4. 04Call it from your product and expose it to your agents through the same governed connection.

Why teams use the Weather API integration

  • Ship a Weather API integration without building it. Your customers connect their own Weather API account inside your product and work their lookups, results and reports there, and nothing lands on your team.
  • Handle the part that actually costs time: these are metered read sources, so an uncached lookup on every page view burns the customer's allowance. fastn handles the auth, token refresh, rate limits and pagination, and when Weather API changes, its maintainer agent proposes a tested fix, so a Weather API update does not start in your backlog.

Used by these teams

Weather API integration FAQ

Can AI agents use this Weather API integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent checks the forecast for a site before advising on a reschedule, with the location it queried logged. For example: "What is the hourly forecast for this site tomorrow, and was it raining there on the day of the incident?"

Whose credentials does a Weather API lookup run under?

Each customer's own. Quota and cost land on the customer that caused them rather than on a shared key you have to meter and re-bill, and one heavy customer cannot exhaust another's allowance.

How should Weather API results be cached?

Per tenant, with a window that matches how fast the underlying data actually moves. Weather API is a read source rather than a system of record, so the same query returns the same answer until the source changes, and caching is the difference between a sustainable integration and one that exhausts a customer's allowance on a busy page.

What can I build with the Weather API integration?

A common starting point: have each customer supply their own key, so the calls your feature makes are metered against them rather than you. The use cases above list the rest.

Add Weather API to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.