A Nix job talks to Trends API with one POST to https://api.trendsapi.ai/api, a Bearer key, and a JSON body that names a mode. There is no official Nix library. pkgs.curl and pkgs.jq ship in nixpkgs and run from writeShellApplication. The first decode reads the envelope, then a second decode reads the body string. Pulled on 2026-11-11, Google Search for nix programming scored 12.0 for the week of 2026-11-07, up 33.33% from 9.0. nixos scored 39.0, flat versus 39.0. Those two tokens closed 27 points apart. nixpkgs scored 17.0, down 19.05% from 21.0, the opposite 7D sign from programming. YouTube for nix programming scored 0.0 versus 0.0. Do not copy nixos Search 39.0 onto a language-adoption alert that only watches the programming phrase at 12.0. The same helper that stores those rows also pulls a live Google Trends board. A rank-4 name whose weekly Search still printed 4.0 while daily Search printed 100 is documented in Gina Hinojosa live rank versus weekly Search.

How does a Nix client call Trends API?

POST https://api.trendsapi.ai/api
Authorization: Bearer <api_key>
Content-Type: application/json

{"mode":"get_growth","source":"google search","keyword":"nix programming","percent_growth":["7D","30D","3M","12M"]}
{
  description = "Trends API growth helper";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";

  outputs = { self, nixpkgs }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
    in {
      packages.${system}.default = pkgs.writeShellApplication {
        name = "trends-growth";
        runtimeInputs = [ pkgs.curl pkgs.jq ];
        text = ''
          payload='{"mode":"get_growth","source":"google search","keyword":"nix programming","percent_growth":["7D","30D","3M","12M"]}'
          envelope=$(curl -sS -X POST "https://api.trendsapi.ai/api" \
            -H "Authorization: Bearer $TRENDSAPI_API_KEY" \
            -H "Content-Type: application/json" \
            -d "$payload")
          echo "$envelope" | jq -r .body | jq .
        '';
      };
    };
}

writeShellApplication owns the derivation. runtimeInputs puts curl and jq on PATH. The first jq reads statusCode and body. jq -r .body prints the inner string. A second jq on that string is required before reading recent_value. nix run builds and runs the default package. The collections ship with nixpkgs:

https://nixos.org/manual/nixpkgs/stable/#fun-writeShellApplication
https://curl.se/docs/manpage.html
https://jqlang.github.io/jq
https://nixos.org

writeShellApplication, curl, and jq are client libraries. They are not Trends API sources. There is no nixpkgs download-count source on this API. nix-env and nix profile talk to cache.nixos.org. That registry is not a Trends source.

The response envelope is {"statusCode": int, "body": string}. body is a JSON string and must be parsed a second time before reading recent_value. A Racket client that does the same double parse with http-sendrecv is on Racket Trends API. An Elm client is on Elm Trends API.

What did get_growth return for Nix language tokens?

get_growth for nix programming on google search tips on 2026-11-07. Store the exact strings. nix language is a different series. nixos closed 27 points above programming. nixpkgs printed the opposite 7D sign.

Keyword Period Recent date Recent Baseline date Baseline Growth
nix programming 7D 2026-11-07 12.0 2026-10-31 9.0 +33.33%
nix programming 14D 2026-11-07 12.0 2026-10-24 0.0 vs 0.0
nix programming 30D 2026-11-07 12.0 2026-10-10 0.0 vs 0.0
nix programming 3M 2026-11-07 12.0 2026-08-08 0.0 vs 0.0
nix programming 12M 2026-11-07 12.0 2025-11-08 0.0 vs 0.0
nix programming YTD 2026-11-07 12.0 2026-01-03 0.0 vs 0.0
nix language 7D 2026-11-07 9.0 2026-10-31 6.0 +50.0%
nix language 14D 2026-11-07 9.0 2026-10-24 25.0 -64.0%
nix language 30D 2026-11-07 9.0 2026-10-10 18.0 -50.0%
nix language 3M 2026-11-07 9.0 2026-08-08 47.0 -80.85%
nix language 12M 2026-11-07 9.0 2025-11-08 42.0 -78.57%
nix language YTD 2026-11-07 9.0 2026-01-03 27.0 -66.67%
nixos 7D 2026-11-07 39.0 2026-10-31 39.0 0.0%
nixos 14D 2026-11-07 39.0 2026-10-24 41.0 -4.88%
nixos 30D 2026-11-07 39.0 2026-10-10 44.0 -11.36%
nixos 3M 2026-11-07 39.0 2026-08-08 55.0 -29.09%
nixos 12M 2026-11-07 39.0 2025-11-08 66.0 -40.91%
nixos YTD 2026-11-07 39.0 2026-01-03 67.0 -41.79%
nix package manager 7D 2026-11-07 22.0 2026-10-31 10.0 +120.0%
nix flakes 7D 2026-11-07 12.0 2026-10-31 5.0 +140.0%
nixpkgs 7D 2026-11-07 17.0 2026-10-31 21.0 -19.05%
nix 7D 2026-11-07 11.0 2026-10-31 8.0 +37.5%
nix 12M 2026-11-07 11.0 2025-11-08 14.0 -21.43%

get_time_series for nix programming on Google Search closed at 12.0 on 2026-11-07, matching get_growth 12.0. Adjacent weeks: 9.0 on 2026-10-31, 0.0 on 2026-10-24, 0.0 on 2026-10-17, 0.0 on 2026-10-10. Peak in this pull is 100.0 on 2026-04-11. Next highest points are 99.0 on 2024-09-07, 97.0 on 2026-06-06, and 89.0 on 2026-09-12. Tip 12.0 is not that April 2026 high. The payload printed growth 999999 on 14D, 30D, 3M, 12M, and YTD because those baselines were 0.0. Report 12.0 versus 0.0. The payload marked data_quality low. Store the 12.0.

nix language closed at 9.0, up 50.0% from 6.0. Same 7D sign as programming, opposite 14D: language printed 9.0 versus 25.0 (-64.0%) while programming printed versus 0.0. Peak in the language series is 100.0 on 2026-01-24, then 81.0 on 2026-06-06, then 69.0 on 2026-05-23. Matching Saturday tips are not matching series. Do not copy programming 12.0 onto language 7D +50.0%.

nixos closed at 39.0, flat versus 39.0. Adjacent weeks: 39.0 on 2026-10-31, 41.0 on 2026-10-24, 42.0 on 2026-10-17, 44.0 on 2026-10-10. Peak in this pull is 100.0 on 2026-06-20, then 96.0 on 2026-06-27, then 90.0 on 2026-06-06. Tip 39.0 is not that June 2026 high. 12M printed 39.0 versus 66.0 (-40.91%). nixos 39.0 sat 27 points above nix programming 12.0. Do not copy nixos 39.0 onto programming 12.0.

nix package manager closed at 22.0, up 120.0% from 10.0. nix flakes closed at 12.0, up 140.0% from 5.0, matching the programming close in size but not in 7D rate. nixpkgs closed at 17.0, down 19.05% from 21.0. Opposite 7D sign from programming +33.33%. Do not copy nixpkgs 17.0 onto flakes +140.0%. There is no nixpkgs source on this API. Search 17.0 is not package-download volume.

Bare nix closed at 11.0, up 37.5% from 8.0, with estimated volume 148,000 versus 108,000. 12M was 11.0 versus 14.0 (-21.43%) with volume 148,000 versus 189,000. That three-character string mixes the package manager, the expression language, and other uses of the word. Do not treat Search 11.0 as Nix language adoption.

Neighbor tools on the same pull, same source, same 7D window, same 2026-11-07 tip:

Keyword 7D recent 7D baseline 7D growth 12M recent 12M baseline 12M growth
nix programming 12.0 9.0 +33.33% 12.0 0.0 vs 0.0
nix language 9.0 6.0 +50.0% 9.0 42.0 -78.57%
nixos 39.0 39.0 0.0% 39.0 66.0 -40.91%
nixpkgs 17.0 21.0 -19.05% 17.0 52.0 -67.31%
guix 27.0 27.0 0.0% 27.0 55.0 -50.91%
homebrew 50.0 49.0 +2.04% 50.0 63.0 -20.63%
devenv 24.0 13.0 +84.62% 24.0 38.0 -36.84%
direnv 18.0 21.0 -14.29% 18.0 70.0 -74.29%

nixos 39.0 sat 11 points above guix 27.0 and 11 points below homebrew 50.0. devenv printed +84.62% on 7D while direnv printed -14.29%. Do not copy homebrew 50.0 onto nixos 39.0. Do not copy devenv +84.62% onto nixpkgs -19.05%. High-volume php in this session tipped on 2026-11-07 at 25.0 versus 38.0 with estimated volume 556,000. That is the same Saturday tip as the Nix keywords, not the older 2026-10-31 tip that still held people-keywords. Store the session pull and the exact recent_date per keyword. A Haskell Trends API helper stores a language neighbor on the same 7D window. A Racket Trends API helper stores racket programming.

What did YouTube, News, and Wikipedia return?

YouTube for nix programming printed 0.0 versus 0.0 on every window. Keyword Google News for the programming phrase printed zeros. Wikipedia titles resolve on their own. Compare Wikipedia on volume.

YouTube for nix programming tipped 0.0 on 2026-11-07 versus 0.0, matching get_time_series 0.0, while Search sat at 12.0. The payload marked data_quality low. Store the 0.0. YouTube 0.0 is not Search 12.0. Peak in the YouTube series is 100.0 on 2022-08-13, then 97.0 on 2022-10-22. On 2026-04-11 Search printed 100.0 while YouTube printed 0.0. Do not treat the YouTube floor as language adoption while Search sits at 12.0 after a 100.0 close in April 2026.

YouTube for nix language closed at 9.0 versus 7.0 on 7D (+28.57%), also data_quality low. Report 9.0 versus 7.0. Language YouTube 9.0 is not programming YouTube 0.0. 14D, 30D, 3M, 12M, and YTD all printed versus 0.0 (growth 999999). Report 9.0 versus 0.0. Do not copy language YouTube 9.0 onto programming Search 12.0.

YouTube for nixos closed at 73.0 versus 65.0 on 7D (+12.31%), matching get_time_series 73.0. Adjacent weeks: 65.0 on 2026-10-31, 73.0 on 2026-10-24, 76.0 on 2026-10-17, 80.0 on 2026-10-10. Peak in this pull is 100.0 on 2026-06-27, then 97.0 on 2026-07-18, then 96.0 on 2026-08-01. On 2026-06-20 Search printed 100.0 while YouTube printed 91.0. 12M was 73.0 versus 63.0 (+15.87%). YTD was 73.0 versus 67.0 (+8.96%). nixos YouTube 73.0 is not nixos Search 39.0. Do not copy nixos YouTube 73.0 onto programming YouTube 0.0.

Bare nix YouTube closed at 23.0 versus 27.0 (-14.81%). 12M was 23.0 versus 29.0 (-20.69%). That is not the phrase series. Do not copy bare YouTube 23.0 onto programming YouTube 0.0.

Keyword Google News for nix programming printed 0.0 versus 0.0 on every window, with data_quality low. Store the zeros. Keyword Google News for nixos printed 0.0 versus 2.0 on 7D (-100.0%), also data_quality low. 12M was 0.0 versus 0.0. Do not fill News from Search 12.0. Keyword News and the Google News Top News board are different feeds. Mode docs sit at https://trendsapi.ai/docs.

Wikipedia for title NixOS resolved. October 2026 scored 81.8 with 22,223 pageviews versus September 100.0 with 26,315 (volume -15.55%). 7D and 14D collapsed (collapsed_range: recent and baseline resolved to the same monthly point). 3M was 81.8 / 22,223 versus July 58.4 / 16,986 (volume +30.83%). 12M was 81.8 / 22,223 versus October 2025 53.8 / 15,946 (volume +39.36%). YTD was 81.8 / 22,223 versus December 2025 57.9 / 16,866 (volume +31.76%). Peak in this pull is 100.0 / 26,315 in September 2026, then 81.8 / 22,223 in October 2026, then 72.4 / 20,111 in April 2026. Parenthetical title Nix (package manager) resolved to a different page. October scored 94.1 with 6,116 pageviews versus September 100.0 with 6,493 (volume -5.81%). 3M was 94.1 / 6,116 versus July 68.0 / 4,460 (volume +37.13%). Keyword Nix (programming language) printed the same 94.1 / 6,116 as the package-manager title. Those two strings resolved to one page. Short title Nix resolved to a third page. October scored 34.0 with 750 pageviews versus September 34.1 with 751. The NixOS page is about 3.6 times the package-manager volume and about 29.6 times the short-title volume. Do not join 750 views onto Search 12.0. Do not treat short-title Nix at 750 views as the OS page. The NixOS title is the finding. That is the opposite direction from Racket and Elm, where the language title was the page to store. Wikipedia source docs sit at https://trendsapi.ai/trends/wikipedia-trends.

There is no nixpkgs source on this API. npm covers npmjs. python covers PyPI. A Nix watchlist that wants package downloads has no third source to join onto Search 12.0.

How does a watchlist store live boards next to weekly scores?

get_top_trends has no keyword. Pair the live Google Trends board with get_growth on the exact board string. Live rank, 1-day rank_change, and 7-day rank_change are three feeds. The rank snapshot can stamp at the same second as the mover snapshot, or days earlier than Wikipedia Trending.

POST https://api.trendsapi.ai/api
Authorization: Bearer <api_key>
Content-Type: application/json

{"mode":"get_top_trends","type":"Google Trends","limit":25}

On 2026-11-04T07:01:36Z the live Google Trends board ranked gina hinojosa at 4, with no row on the 1-day mover list. Wikipedia Trending, YouTube Trending, and Google News Top News stamped 2026-11-11T09:01:42Z, seven days later. Weekly Search for gina hinojosa scored 4.0 versus 5.0 on the 2026-10-31 tip. Daily Search printed 100 on 2026-11-04, then 2 on 2026-11-10. YouTube scored 100.0 versus 5.0 on the 2026-11-07 tip. Wikipedia Trending omitted the title on the current stamp. The helper that stores those rows is the blog in this batch: Gina Hinojosa live rank versus weekly Search. Do not copy that daily 100 onto nix programming 12.0. Board-shape notes for Google Trends live feeds sit at https://trendsapi.ai/trends/google-trends.

Free tier is 100 successful 200s per month. Only 200 responses count against quota. Five language tokens plus one live board is 6 calls. A Monday run that also pulls YouTube and Wikipedia for the programming phrase is 8 calls. Four weeks is 32 calls and still fits the free cap. Starter is 5,000, Pro 25,000, Business 100,000.

Envelope checklist

  1. POST https://api.trendsapi.ai/api with Authorization: Bearer <api_key>.
  2. Parse the transport JSON, then parse the body string a second time.
  3. Store nix, nix programming, nix language, nixos, nix package manager, nix flakes, and nixpkgs as separate series.
  4. Compare Wikipedia NixOS on volume at 22,223 October views, not short-title Nix at 750, and not Nix (package manager) at 6,116.
  5. Pair get_top_trends rank with both rank_change windows and get_growth on the exact board string. Store each keyword's recent_date.