Search & ResearchDocumentedScanned

ridb-search

Search the Recreation Information Database (RIDB) for campgrounds and recreation facilities near a location.

Share:

Installation

npx clawhub@latest install ridb-search

View the full skill documentation and source below.

Documentation

RIDB Search

Search recreation.gov's database for campgrounds and facilities near a location.

Setup

Requires a free RIDB API key:

  • Go to

  • Sign up and generate an API key

  • Set environment variable: export RIDB_API_KEY=your_key_here
  • Usage

    Search by location name (auto-geocodes):

    python scripts/search.py --location "Bend, OR" --radius 50
    python scripts/search.py -l "Yosemite Valley" -r 25 --camping-only

    Search by coordinates:

    python scripts/search.py --lat 44.0582 --lon -121.3153 --radius 50

    Options

    FlagDescription
    --location, -lLocation name to geocode (e.g., "Bend, OR")
    --latLatitude (use with --lon)
    --lonLongitude (use with --lat)
    --radius, -rSearch radius in miles (default: 50)
    --limitMax results (default: 50)
    --camping-onlyFilter to camping facilities
    --reservable-onlyFilter to reservable facilities
    --jsonOutput JSON (for programmatic use)

    Output

    Human-readable (default):

    📍 Geocoded 'Bend, OR' to 44.0582, -121.3153
    
    Found 23 facilities within 50 miles
    ------------------------------------------------------------
    
    🏕️  Tumalo State Park
       ID: 234567 | ✅ Reservable
       Org: Oregon State Parks
       URL:

    JSON output (--json):

    {
      "query": {"latitude": 44.0582, "longitude": -121.3153, "radius_miles": 50},
      "total_count": 23,
      "facilities": [
        {
          "id": "234567",
          "name": "Tumalo State Park",
          "reservable": true,
          "url": ""
        }
      ]
    }

    Notes

    • RIDB contains federal recreation data; some state/private campgrounds may not be listed
    • The id field is the campground ID used for availability checks on recreation.gov
    • Radius is in miles (RIDB native unit)
    • Geocoding uses OpenStreetMap/Nominatim (free, no key required)