Get-BirdWeatherRESTStationSpecies

SYNOPSIS

Top Species

SYNTAX

__AllParameterSets

Get-BirdWeatherRESTStationSpecies [[-Token] <string>] [[-Classification] <string[]>]
 [[-From] <datetime>] [[-Limit] <long>] [[-Locale] <string>] [[-Mode] <string>] [[-Order] <string>]
 [[-Page] <long>] [[-Period] <string>] [[-Query] <string>] [[-Since] <string>] [[-Sort] <string>]
 [[-SpeciesId] <long>] [[-To] <datetime>] [-AllResults] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BWRStationSpecies

DESCRIPTION

The Get-BirdWeatherRESTStationSpecies cmdlet invokes the GET method of the /stations/{token}/species endpoint (Top Species)

Returns a list of species detected by the station, along with their detection counts.

By default it will return the top species by detection count, but can be reordered by species common or scientific name.

EXAMPLES

EXAMPLE 1

Get-BirdWeatherRESTStationSpecies

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

EXAMPLE 2

Get-BirdWeatherRESTStationSpecies -Token 21934

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

EXAMPLE 3

Get-BirdWeatherRESTStationSpecies -Limit 10

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

EXAMPLE 4

Get-BirdWeatherRESTStationSpecies -AllResults

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

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: (All)
  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: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-From

Timestamp to filter detections from, in ISO8601 format. Overrides period if passed. Accepts a date, it is sent to the API in UTC (ISO 8601)

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Limit

The maximum number of species 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: (All)
  Position: 3
  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: (All)
  Position: 4
  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: (All)
  Position: 5
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Order

Sort order [asc / desc] (default: asc when sorting by name, otherwise desc).

Allowed values: ‘asc’, ‘desc’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 6
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Page

The page number of species to return (default: 1). Default value when not set: 1

Valid range: 1 - 9223372036854775807

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

-Period

The time period to filter detections [day / week / month / all] (default: day). Default value when not set: day

Allowed values: ‘day’, ‘week’, ‘month’, ‘all’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 8
  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: (All)
  Position: 9
  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: ''

-Since

Alias for from parameter. Overrides period if passed.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 10
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

Alternative field to sort by [common_name / scientific_name / top] (default: top). Default value when not set: top

Allowed values: ‘common_name’, ‘scientific_name’, ‘top’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 11
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SpeciesId

Limit results to the given species.

Valid range: 1 - 9223372036854775807

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

-To

Timestamp to filter detections to, in ISO8601 format. Overrides period if passed. Accepts a date, it is sent to the API in UTC (ISO 8601)

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 13
  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: (All)
  Position: 0
  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

OUTPUTS

NOTES

Endpoint : GET /stations/{token}/species