Enums
enums
¶
Type Aliases for Scrape.do's Google Plugin Literal Parameters
Every fixed-value field on a Google Plugin parameter model resolves to a
named TypeAlias declared here
Device / Sort
Search Filters
Flights
News / Trends / Trending
Shopping Product
GoogleDeviceType
module-attribute
¶
Device class to emulate when fetching the SERP / Shopping page
GoogleReviewsSortByType
module-attribute
¶
Sort order returned by google/maps/reviews
GoogleShoppingSortByType
module-attribute
¶
Sort order for google/shopping
Mapping
0= Relevance1= Acsending Price2= Descending Price
GoogleFlightsTripType
module-attribute
¶
Trip type for google/flights
Mapping
1= Round Trip2= One Way
GoogleFlightsTravelClassType
module-attribute
¶
Cabin class for google/flights
Mapping
1= Economy2= Premium Economy3= Business4= Fist Class
GoogleFlightsStopsType
module-attribute
¶
Stop filter for google/flights
Mapping
0= Any1= No Stops2= 1 Stop Or Less3= 2 Stops Or Less
GoogleFlightsSortByType
module-attribute
¶
Sort order for google/flights
Mapping
1= Top2= Price3= Departure4= Arrival5= Duration6= Emissions
GoogleHotelsSortByType
module-attribute
¶
Sort order for google/hotels
Mapping
3= Price8= Rating13= Most Reviewed
GoogleHotelsRatingType
module-attribute
¶
Rating threshold for google/hotels
Mapping
7=3.5+8=4.0+9=4.5+
GoogleNewsSortOrderType
module-attribute
¶
Sort order for google/news when q is the driver
Mapping
"0"= Relevance"1"= Date
GoogleTrendsDataType
module-attribute
¶
GoogleTrendsDataType = Literal[
"TIMESERIES",
"GEO_MAP",
"GEO_MAP_0",
"RELATED_QUERIES",
"RELATED_TOPICS",
]
Trends widget to fetch for google/trends
GEO_MAP vs GEO_MAP_0
-
GEO_MAPreturns the regional-interest breakdown formulti-querymode (when comparing two or moreqterms) -
GEO_MAP_0returns the regional-interest map for thesingle-querymode -
When
data_typeis omitted, the gateway returnsTIMESERIES + GEO_MAPby default
GoogleTrendsRegionType
module-attribute
¶
Geographic resolution for google/trends when data_type selects a
regional-interest widget (GEO_MAP or GEO_MAP_0)
Mapping
COUNTRY= Country-level granularityREGION= Subdivisions (states / provinces)DMA= Designated Market Area (US only)CITY= City-level granularity
GoogleTrendingHoursType
module-attribute
¶
Time window for google/trending
Mapping
4= Last 4 hours24= Last 24 hours (default)48= Last 48 hours168= Last 7 days
GoogleTrendingSortType
module-attribute
¶
Sort order for google/trending
Mapping
relevance= Most relevant first (default)search_volume= Highest search volume firstrecency= Most recent firsttitle= Alphabetical
GoogleTrendingStatusType
module-attribute
¶
Trend-status filter for google/trending
Mapping
all= All trends regardless of state (default)active= Currently active trends only
GoogleTrendsGPropType
module-attribute
¶
Google property scope for google/trends
GoogleSafeSearchType
module-attribute
¶
SafeSearch filter for google/search
Mapping
"active"= SafeSearch on (filters explicit content)"off"= SafeSearch off
GoogleTimePeriodType
module-attribute
¶
Time-range filter for google/search
Usages
-
Filters organic results to a
rolling windowending at the current moment -
Combine with
startfor paginated time-filtered results
GoogleNFPRType
module-attribute
¶
Spell-correction toggle for google/search
Mapping
0= Spell correction enabled (default Google behaviour)1= Spell correction disabled (returns "no fix for spelling")
GooglePlayStoreChartType
module-attribute
¶
Top-charts driver for google/play-store
Mapping
topselling_free= Top free appstopselling_paid= Top paid appstopgrossing= Top grossing apps
GooglePlayStoreDeviceType
module-attribute
¶
Form-factor filter for the google/play-store endpoint's store_device
parameter
GooglePlayStoreAgeType
module-attribute
¶
Age-range filter for google/play-store when apps_category="FAMILY"
Mapping
AGE_RANGE1= Ages 5 & underAGE_RANGE2= Ages 6-8AGE_RANGE3= Ages 9 & up
GoogleShoppingProductSortByType
module-attribute
¶
GoogleShoppingProductSortByType = Literal[
"base_price",
"total_price",
"promotion",
"seller_rating",
]
Sort order for google/shopping/product
Mapping
base_price= Base price ascendingtotal_price= Total price (incl. shipping) ascendingpromotion= Promotional offers firstseller_rating= Highest seller rating first
HTML Fallback
Setting sort_by forces the endpoint into an HTML-fallback path on
the gateway side
GoogleShoppingProductDeviceType
module-attribute
¶
Device class to emulate for google/shopping/product
Extended Device Set
Unlike most other Google plugins (which accept only
desktop/mobile), google/shopping/product additionally accepts
tablet