Get-BirdWeatherRESTStationDetections

SYNOPSIS

List Detections / Detection Info

SYNTAX

List (Default)

Get-BirdWeatherRESTStationDetections [-Token <string>] [-Behavior <string[]>]
 [-Classification <string[]>] [-Cursor <long>] [-From <datetime>] [-Limit <long>] [-Locale <string>]
 [-Mode <string>] [-Query <string>] [-Shortlist <bool>] [-SpeciesId <long>] [-To <datetime>]
 [-AllResults] [-Raw]

ById

Get-BirdWeatherRESTStationDetections [-Id] <long> [-Token <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BirdWeatherRESTStationDetectionsById
  • Get-BWRStationDetections
  • Get-BWRStationDetectionsById

DESCRIPTION

Parameter set [ List ] - The Get-BirdWeatherRESTStationDetections cmdlet invokes the GET method of the /stations/{token}/detections endpoint (List Detections)

Lists all detections associated with this station in timestamp descending order. When the detections result is empty, a fallback list (unfiltered_detections) is included.

Parameters should be provided as query parameters. Pagination is cursor-based using limit/offset params.

Parameter set [ ById ] - The Get-BirdWeatherRESTStationDetections cmdlet invokes the GET method of the /stations/{token}/detections/{id} endpoint (Detection Info)

Retrieves information for the detection with the given ID.

Bat detections additionally include a behavior field (a human-readable label, e.g. Chase), a behavior_key field (the machine key, one of bat_search_open, bat_search_clutter, bat_chase, bat_feeding_buzz, bat_approach, bat_pass, bat_social), and a behavior_confidence float (0…1). These fields are omitted from the response when no behavior classification is available.

When the detection has a shortlist, the response includes a shortlist array, ranked by weight descending. Each entry is an alternative candidate species the analyzer considered for the detection, with speciesId, commonName, scientificName, and a normalized weight (0…1). The field is omitted for detections without a shortlist, and is served only for stations on the bat edition - standard_bat beta units are capped to the bat identification rung and never expose the candidates behind that commit.

EXAMPLES

EXAMPLE 1

Get-BirdWeatherRESTStationDetections

Returns the result of the /stations/{token}/detections endpoint

EXAMPLE 2

Get-BirdWeatherRESTStationDetections -Token 21934

Uses the defined station token (or station ID) instead of the station token that was stored with Add-BirdWeatherAPIKey

EXAMPLE 3

Get-BirdWeatherRESTStationDetections -Limit 10

Returns the result of the /stations/{token}/detections endpoint limited to 10 items

EXAMPLE 4

Get-BirdWeatherRESTStationDetections -AllResults

Returns every item from the /stations/{token}/detections endpoint by following the pagination

EXAMPLE 5

Get-BirdWeatherRESTStationDetections -Id 12297900660

Returns the result of the /stations/{token}/detections/{id} endpoint

EXAMPLE 6

Get-BirdWeatherRESTStationDetections -Id 12297900660 -Token 21934

Uses the defined station token (or station ID) instead of the station token that was stored with Add-BirdWeatherAPIKey

PARAMETERS

-AllResults

Returns all items from the endpoint by following the pagination

When using this parameter there is no need to use the cursor or page parameters Unless the limit parameter is set, the largest page size is used

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Behavior

Limit results to detections with the given bat behavior, or a comma-separated list (e.g. bat_chase,bat_feeding_buzz) [bat_search_open / bat_search_clutter / bat_chase / bat_feeding_buzz / bat_approach / bat_pass / bat_social]. bat_approach also matches bat_chase.

Allowed values: ‘bat_search_open’, ‘bat_search_clutter’, ‘bat_chase’, ‘bat_feeding_buzz’, ‘bat_approach’, ‘bat_pass’, ‘bat_social’

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Classification

Limit results to species with the given classification, or a comma-separated list of classifications (e.g. bat,mammal) [avian / amphibian / reptile / mammal / bat / insect].

Allowed values: ‘avian’, ‘amphibian’, ‘reptile’, ‘mammal’, ‘bat’, ‘insect’

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Cursor

The ID of the last detection to begin pagination from.

Valid range: 1 - 9223372036854775807

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-From

The timestamp in ISO8601 format to filter detections from (inclusive). Accepts a date, it is sent to the API in UTC (ISO 8601)

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Id

Detection ID

Valid range: 1 - 9223372036854775807

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Limit

The maximum number of detections to return (max 100, default: 100). Default value when not set: 100

Valid range: 1 - 100

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Locale

Language locale to use for search query.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Mode

Limit results to detections with the given soundscape mode [live / recorded / birdnetpi].

Allowed values: ‘live’, ‘recorded’, ‘birdnetpi’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Query

Limit results to species that match the given query (will be ignored if speciesId is provided).

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (including the success flag) instead of only the results

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Shortlist

Include the species shortlist for each detection that has one (default: false). Only honoured for stations on the bat edition; ignored for every other station, including standard_bat beta units. See Detection Info for the shortlist format. Default value when not set: false

Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SpeciesId

List only detections for the given species.

Valid range: 1 - 9223372036854775807

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-To

The timestamp in ISO8601 format to filter detections to (inclusive). Accepts a date, it is sent to the API in UTC (ISO 8601)

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Token

Defines the station token, or the numeric station ID (such as 21934) of a public station or when an administrator API token is used

The PUC-21934 style name of a station is not accepted by the API

By default the station token defined by Add-BirdWeatherAPIKey is used

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- StationToken
- StationId
ParameterSets:
- Name: ById
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Int64

OUTPUTS

NOTES

Endpoint : GET /stations/{token}/detections Endpoint : GET /stations/{token}/detections/{id}