# eBird nearest recent sightings of a species API

Get eBird Nearest Species Sightings data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as lat, limit, lng, and retrieve structured data including eBird species identifier, localized common name, scientific taxon name, reported individual count, and presence-only observation indicator to research target species, and map observation reports.

Documentation: https://openany.si/ebird/ebird-nearest-recent-sightings-of-a-species-api/c3679dc2-10ba-4973-a366-6eece53779b9/
API ID: c3679dc2-10ba-4973-a366-6eece53779b9
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/ebird/v1/observations/nearest
Page update time: 2026-12-03T02:43:46.152Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:44.507Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## eBird Nearest Species Sightings API

Provide species, lat and lng. distance\_km accepts 0–50 kilometers, days\_back accepts 1–30 days, and limit defaults to 50.

## What You Can Build

- **Research target species**: Use a taxonomy-resolved species\_code.
- **Map observation reports**: Display observation time with location privacy state.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].species_code` | eBird species identifier |
| `items[].common_name` | Localized common name |
| `items[].scientific_name` | Scientific taxon name |
| `items[].count` | Reported individual count when available |
| `items[].presence_only` | Presence-only observation indicator |
| `items[].observed_at` | Observation date and time as reported |
| `items[].location_private` | Private-location flag |
| `items[].checklist_id` | Checklist identifier for a detail lookup |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "eBird nearest recent sightings of a species API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "species": {
          "type": "string",
          "description": "eBird species code."
        },
        "lat": {
          "type": "number",
          "description": "Latitude."
        },
        "lng": {
          "type": "number",
          "description": "Longitude."
        },
        "distance_km": {
          "type": "number",
          "description": "Radius in km, 0-50."
        },
        "days_back": {
          "type": "integer",
          "description": "Days back, 1-30."
        },
        "limit": {
          "type": "integer",
          "description": "Most sightings (default 50)."
        },
        "locale": {
          "type": "string",
          "description": "Language for common names."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "species",
        "lat",
        "lng"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "checklist_id": {
            "type": "string"
          },
          "checklist_url": {
            "type": "string"
          },
          "common_name": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "country": {
            "type": "null"
          },
          "county": {
            "type": "null"
          },
          "evidence": {
            "type": "null"
          },
          "has_comments": {
            "type": "null"
          },
          "has_media": {
            "type": "null"
          },
          "lat": {
            "type": "number"
          },
          "lng": {
            "type": "number"
          },
          "location_id": {
            "type": "string"
          },
          "location_name": {
            "type": "string"
          },
          "location_private": {
            "type": "boolean"
          },
          "observation_id": {
            "type": "null"
          },
          "observed_at": {
            "type": "string"
          },
          "observer": {
            "type": "null"
          },
          "observer_name": {
            "type": "null"
          },
          "presence_only": {
            "type": "boolean"
          },
          "region": {
            "type": "null"
          },
          "reviewed": {
            "type": "boolean"
          },
          "scientific_name": {
            "type": "string"
          },
          "species_code": {
            "type": "string"
          },
          "species_url": {
            "type": "string"
          },
          "state": {
            "type": "null"
          },
          "valid": {
            "type": "boolean"
          }
        }
      }
    },
    "lat": {
      "type": "number"
    },
    "lng": {
      "type": "number"
    },
    "species": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/ebird/v1/observations/nearest?lat=40.66&limit=1&lng=-73.97&output=json&raw=0&species=norcar' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:26:04.975Z",
  "items": [
    {
      "checklist_id": "S411441711",
      "checklist_url": "https://ebird.org/checklist/S411441711",
      "common_name": "Northern Cardinal",
      "count": 1,
      "country": null,
      "county": null,
      "evidence": null,
      "has_comments": null,
      "has_media": null,
      "lat": 40.6602841,
      "lng": -73.9689534,
      "location_id": "L109516",
      "location_name": "Prospect Park",
      "location_private": false,
      "observation_id": null,
      "observed_at": "2026-11-18 14:01",
      "observer": null,
      "observer_name": null,
      "presence_only": false,
      "region": null,
      "reviewed": false,
      "scientific_name": "Cardinalis cardinalis",
      "species_code": "norcar",
      "species_url": "https://ebird.org/species/norcar",
      "state": null,
      "valid": true
    }
  ],
  "lat": 40.66,
  "lng": -73.97,
  "species": "norcar"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I pass a common name as species?
Use the eBird species code; resolve a name through Taxonomy Lookup first.

### Which spatial inputs are required?
Both lat and lng are required alongside species.

### What lookback and radius are supported?
days_back is 1–30; distance_km is 0–50 kilometers.

### What result limit is used by default?
limit defaults to 50 sightings.

### Does a missing count mean zero birds?
No. Check presence_only and count together; an observation without a numeric count must not be converted into zero.

### How should I handle private locations?
Read location_private and preserve missing location fields. A reported location does not imply that a private site is open to visitors.

## Available implementations
- apish: https://openany.si/ebird/ebird-nearest-recent-sightings-of-a-species-api/c3679dc2-10ba-4973-a366-6eece53779b9/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
