# Google Trends on Onekey > 2 endpoints for Google Trends (1 stable, 1 beta), 1 to 32 credits each. Category: AI & search. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Access: 1 of 2 endpoints are marked "needs a pack" or "may need a pack": free-grant credits reach only the open fetch path; a verified email and a purchased pack unlock the rest. Page: https://onekey.dev/platforms/google_trends Reference (Markdown): https://onekey.dev/docs/api/google_trends.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped Google Trends endpoints return each: - `content.title` (string): 2 - `content.createdAt` (ISO 8601 date): 1 - `content.url` (URL): 1 - `engagement.views` (integer): 1 - `media.url` (URL): 1 - plus 3 platform-specific fields under `ext.` ## Endpoints ### google_trends.rising Rising related Google search queries for a keyword (breakout growth) in a country, past 12 months. - Price: 32 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/google_trends/rising?keyword=uv%20index` with header `x-api-key: YOUR_API_KEY` - Parameters: - `keyword` (string, required): A single keyword (2-100 characters) - `location_name` (string, optional, default United States): Location to search from, as an English place name (country, region or city) - `language_code` (string, optional, default en): Result language, ISO code (en, de, fr-CA ...) - Fields returned: `content.title`, `ext.growth` - Reference: https://onekey.dev/docs/api/google_trends/rising.md ### google_trends.trending Google Trends 'Trending now' searches for a country or region (query, approximate traffic, top news). - Price: 1 credit per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/google_trends/trending?location=US` with header `x-api-key: YOUR_API_KEY` - Parameters: - `location` (string, optional, default US): ISO country code (US, DE) or ISO 3166-2 region (US-CA); uppercase - Fields returned: `content.title`, `engagement.views`, `content.createdAt`, `media.url`, `content.url`, `ext.topNewsUrl`, `ext.news` - Reference: https://onekey.dev/docs/api/google_trends/trending.md ## Sample request ```bash curl "https://api.onekey.dev/v1/google_trends/trending?location=US" \ -H "x-api-key: YOUR_API_KEY" ```