Skip to content

Groundhog Day API API

by groundhog-day.com

No authHTTPSWeather
Open documentation ↗

Overview

This API returns all of North America’s prognosticating animals and their yearly weather predictions.

Groundhog Day API is a weather API from groundhog-day.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 5 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Weather
Base URL
https://virtserver.swaggerhub.com/pcraig3/groundhog-day-api/1.2.1
Version
1.2.1
Endpoints
5
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://virtserver.swaggerhub.com/pcraig3/groundhog-day-api/1.2.1/api/v1" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://virtserver.swaggerhub.com/pcraig3/groundhog-day-api/1.2.1/api/v1", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://virtserver.swaggerhub.com/pcraig3/groundhog-day-api/1.2.1/api/v1",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/api/v1Root
GET/api/v1/groundhogsGet all groundhogs
GET/api/v1/groundhogs/{slug}Get a groundhog by slug
GET/api/v1/predictionsGet predictions for a given year
GET/api/v1/specGet JSON schema

Questions

Does the Groundhog Day API API need an API key?

No. The Groundhog Day API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Groundhog Day API API support HTTPS?

Yes, the Groundhog Day API API is served over HTTPS.

How many endpoints does the Groundhog Day API API have?

Its OpenAPI description lists 5 endpoints in version 1.2.1. All of them are shown on this page.

What are alternatives to the Groundhog Day API API?

Other Weather APIs include NOAA CO-OPS, NASA POWER, US Weather, AccuWeather, Aemet.

Compare alternatives →

Listed from APIs.guru (CC0).