
The final charge depends on what comes back. It shows after Run.
up to$0.01744per call
Response-basedThe price is worked out from the usage reported in the response, never more than $0.01744 per call.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 99.7% success · 2,291 ms median · 30 days
About this endpoint
Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions. Price: \$2.00 per 1,000 requests (flat per request - same cost regardless of results returned). Routing: 2 independent lanes are available in execution order. A failed attempt uses the next lane only when the request's payment authorizes that lane's price; the normalized schema stays the same. Catalog: [Google Trends pricing and uptime](https://getanyapi.com/api/google/trends) - live USD price, lane routing, and measured 30-day uptime. [Every Google endpoint](https://getanyapi.com/api/google).
Query parameters
fieldsstringOptional. Comma-separated keys (dotted paths like author.name descend into nested objects) to keep on each result item: each row of the API's result list, or the data object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use jq to reshape the whole envelope. Shrinks the response without changing cost.max_itemsintegerOptional. Cap the number of result rows returned; a _truncated note reports how many were withheld so you can page via the API's own limit. An API that returns one record is not trimmed. Does not change cost.summarybooleanOptional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.jqstringOptional. A jq expression applied to the result envelope; its output replaces output (multiple outputs collect into an array). Reshape freely, e.g. jq=.data | {title, description, md: .markdown[:3500]}. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a jqError. Does not change cost.max_cost_usdstringOptional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.Body parameters
allowFallbacksbooleanOptional, default true. When false, only the sources listed in source may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.geostringWhere the searches came from: an uppercase ISO country code (US, GB, DE) or a country subdivision (US-CA, GB-ENG). Omit it, or send worldwide, for worldwide interest.ignoreSourcesstringOptional. Source ids to skip for this request, taken from this endpoint's lanes[].source.id. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in source, is rejected as invalid input with no charge; skipping every source is rejected the same way.keywordsrequiredstringSearch terms to compare, 1 to 5, each 2 to 100 characters and without commas (e.g. ["coffee", "tea"]). Values are relative across the whole set, so the same term scores differently next to different terms.preferLatencyUnderMsintegerOptional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the bsourcestringOptional. Source ids to prefer, in order, taken from this endpoint's lanes[].source.id in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless allowFallbacks is false. A single source with allowFallbacks false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this etimeframestringThe window to chart, ending now: 1h, 4h, 1d or 7d (hours and days), 1m or 3m (months), 12m, 5y, or all (back to January 2004). Buckets grow with the window: minutes up to 1d, hours for 7d, days for 1m and 3m, weeks for 12m and 5y, months for all.Response types
costUsdUSD charged on the original run. On a replay this value is echoed for parity; the replay itself is free.numberhintOptional one-line nudge, absent when there is nothing to say. large_result: suggests the fields/max_items/summary/jq controls for a big response. paging_unavailable: means this result came from a source that cannot return a nextCursor, so it may be INCOMPLETE and cannot be continued - re-run with requireFields: ["nextCursor"] to be served only by a source that can page, which may cost more per request. malformed_query: means X read your search query differently than it looks (adjacent stringitemsNumber of result rows returned; an API that returns one record counts it as one row. For per-result APIs the per-item cost is charged against this count; for input-priced APIs the charge is per submitted input, independent of this count.integerjqErrorPresent only when a jq expression failed; output then carries the full unshaped result and this explains why the reshape did not apply.stringproviderAlways "AnyAPI".stringreplayedTrue when this response replays the durable result of an earlier run without billing or upstream execution.booleanresultIdOpaque handle to the full unshaped result, cached ~15 min. Re-shape it for free (fields/max_items/summary/jq) via GET /v1/results/{id}, no re-billing. Absent when the result was too large to cache.stringMore from AnyAPI
- YouTube Channel ShortsPOST/v1/run/youtube.channel_shortsUp to $0.003488 per callResponse-based
- YouTube Hashtag SearchPOST/v1/run/youtube.search_hashtagUp to $0.001308 per callResponse-based
- TikTok Shop Store ProductsPOST/v1/run/tiktok_shop.shop_productsUp to $0.001308 per callResponse-based
- Upwork JobsPOST/v1/run/upwork.jobsUp to $0.031174 per callResponse-based
- Google AutocompletePOST/v1/run/google.autocompleteUp to $0.001079 per callResponse-based
- Reddit Subreddit PostsPOST/v1/run/reddit.subreddit_postsUp to $0.001308 per callResponse-based
- App Store SearchPOST/v1/run/appstore.searchUp to $0.000927 per callResponse-based
- Glassdoor JobsPOST/v1/run/glassdoor.jobsUp to $0.1199 per callResponse-based
- X / Twitter User SearchPOST/v1/run/twitter.search_usersUp to $0.002289 per callResponse-based
- Instagram Profile Contact InfoPOST/v1/run/instagram.profile_contactUp to $0.007859 per callResponse-based
- Redfin SearchPOST/v1/run/redfin.searchUp to $0.014824 per callResponse-based
- TikTok Trending FeedPOST/v1/run/tiktok.trending_feedUp to $0.001308 per callResponse-based