Get-BirdWeatherGraphQLTopSpecies

SYNOPSIS

Get the top species

SYNTAX

__AllParameterSets

Get-BirdWeatherGraphQLTopSpecies [[-Limit] <int>] [[-Offset] <int>] [[-PeriodCount] <int>]
 [[-PeriodUnit] <string>] [[-PeriodFrom] <datetime>] [[-PeriodTo] <datetime>]
 [[-PeriodTimezone] <string>] [[-SpeciesId] <string>] [[-StationTypes] <string[]>]
 [[-StationIds] <string[]>] [[-Classifications] <string[]>] [[-RecordingModes] <string[]>]
 [[-NorthEastLat] <double>] [[-NorthEastLon] <double>] [[-SouthWestLat] <double>]
 [[-SouthWestLon] <double>] [[-Property] <string[]>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BWGTopSpecies

DESCRIPTION

The Get-BirdWeatherGraphQLTopSpecies cmdlet invokes the topSpecies query of the BirdWeather GraphQL API

By default the following properties are returned, use the Property parameter to select other properties: averageProbability, breakdown.almostCertain, breakdown.uncertain, breakdown.unlikely, breakdown.veryLikely, count, species.id, species.commonName, species.scientificName, speciesId

EXAMPLES

EXAMPLE 1

Get-BirdWeatherGraphQLTopSpecies

Returns the result of the topSpecies query of the BirdWeather GraphQL API

EXAMPLE 2

Get-BirdWeatherGraphQLTopSpecies -PeriodCount 7 -PeriodUnit 'day'

Returns the result for the last 7 days

EXAMPLE 3

Get-BirdWeatherGraphQLTopSpecies -Property 'averageProbability', 'breakdown.almostCertain'

Only returns the defined properties

PARAMETERS

-Classifications

Array of species classifications to filter on (optional)

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

-Limit

Maximum number of results to return

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

-NorthEastLat

North-east bounding box coordinates - Latitude

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

-NorthEastLon

North-east bounding box coordinates - Longitude

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

-Offset

Initial offset of first result

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

-PeriodCount

Time period for query (defaults to last 24 hours) - Number of units of time

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

-PeriodFrom

Time period for query (defaults to last 24 hours) - From date, or an exact ISO 8601 date-time

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

-PeriodTimezone

Time period for query (defaults to last 24 hours) - Timezone for from/to dates (and date-times without an offset)

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

-PeriodTo

Time period for query (defaults to last 24 hours) - To date, or an exact ISO 8601 date-time

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

-PeriodUnit

Time period for query (defaults to last 24 hours) - Unit of time (minute/hour/day/week/month/year)

Allowed values: ‘minute’, ‘hour’, ‘day’, ‘week’, ‘month’, ‘year’

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

-Property

The properties (GraphQL fields) of the SpeciesCount to return Nested properties are defined with a dot, such as species.commonName Default values: averageProbability, breakdown.almostCertain, breakdown.uncertain, breakdown.unlikely, breakdown.veryLikely, count, species.id, species.commonName, species.scientificName, speciesId

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

-Raw

Returns the full API response (data & errors) instead of only the requested data

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: ''

-RecordingModes

Array of recording modes to filter on (optional)

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

-SouthWestLat

South-west bounding box coordinates - Latitude

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

-SouthWestLon

South-west bounding box coordinates - Longitude

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

-SpeciesId

Species ID (optional)

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

-StationIds

Array of station IDs to filter on (optional)

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

-StationTypes

Array of station types to filter on (optional). One or more of: puc, puc:standard, puc:bat, birdnetpi, stream_youtube, stream_audio, app. puc:standard and puc:bat partition puc and never overlap; a PUC with no recorded edition counts as standard.

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

GraphQL : Query.topSpecies Returns : SpeciesCount