Skip to content

Get-TwitterSavedSearch

SYNOPSIS

Returns one or all of the authenticating user's saved searches.

SYNTAX

Get-TwitterSavedSearch [[-SearchId] <Int64>] [<CommonParameters>]

DESCRIPTION

Returns one or all of the authenticating user's saved searches.

EXAMPLES

Example 1

PS > Get-TwitterSavedSearch
id         : 1225849015092367362
id_str     : 1225849015092367362
query      : (#PoShEvents) (from:thedavecarroll)
name       : (#PoShEvents) (from:thedavecarroll)
position   :
created_at : Fri Feb 07 18:29:15 +0000 2020

id         : 1316223626610343936
id_str     : 1316223626610343936
query      : (from:JeffHicks) (#PSTweetChat)
name       : (from:JeffHicks) (#PSTweetChat)
position   :
created_at : Wed Oct 14 03:45:41 +0000 2020

id         : 1325982551094210566
id_str     : 1325982551094210566
query      : (#pwsh_eats)
name       : (#pwsh_eats)
position   :
created_at : Tue Nov 10 02:04:10 +0000 2020

Returns all of the authenticating user's saved searches.

Example 2

PS > Get-TwitterSavedSearch -SearchId 1316223626610343936

id         : 1316223626610343936
id_str     : 1316223626610343936
query      : (from:JeffHicks) (#PSTweetChat)
name       : (from:JeffHicks) (#PSTweetChat)
position   :
created_at : Wed Oct 14 03:45:41 +0000 2020

Returns the authenticating user's specified saved search.

PARAMETERS

-SearchId

The id of the saved search.

Type: Int64
Parameter Sets: (All)
Aliases: Id

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

Online Version

Add-TwitterSavedSearch

Remove-TwitterSavedSearch

Api Reference - GET saved_searches/list

Api Reference - GET saved_searches/show/:id