# Public API Docs-vs-Live Divergence Audit (5 APIs) **Audit date: 2026-11-26.** All requests below were executed live with `curl` on this date; nothing is reconstructed from memory. Only public, free, key-optional endpoints or a documented sandbox/demo tier were used. Every doc claim is sourced to an official page that was fetched today (links at the end). Row IDs link the summary table to the exact request/response evidence appendix. ## Evidence table | API | Doc claim | Live result | Verdict | | --- | --- | --- | --- | | JSONPlaceholder · JP-1 | `GET /posts/1` documented sample returns `userId:1, id:1, title:"sunt aut facere..."` | `200`, byte-identical fields and values to the doc sample | MATCH | | JSONPlaceholder · JP-2 | `GET /comments?postId=1` filters comments by `postId` | `200`, 5 comments, all `postId:1` | MATCH | | JSONPlaceholder · JP-3 | `POST /posts` "response ... id 101" and "The resource is not really created on the server, but the response is faked as if." | `201`, `"id":101`; follow-up `GET /posts/101` → `404 {}` | MATCH | | Open-Meteo · OM-1 | `apikey` Required: `No`; `timezone=auto` resolves from coordinates; `utc_offset_seconds` returned; current conditions from 15-min model data | `200`, `"timezone":"Europe/Berlin"`, `"utc_offset_seconds":3600`, `"interval":900` | MATCH | | Open-Meteo · OM-2 | `/v1/forecast` returns 7 days/168 hours; `&forecast_days=16` gives up to 16 days | `200`, `hourly.time` length 384 (= 16 × 24), first `2026-11-26T00:00`, last `2026-12-11T23:00` | MATCH | | Open-Meteo · OM-3 | Invalid parameter → HTTP 400 plus `{"error":true,"reason":...}`; example reason `Cannot initialize WeatherVariable from invalid String value tempeture_2m for key hourly` | `400`, `error:true` confirmed, but reason is `Invalid value: Cannot initialize SurfacePressureAndHeightVariable<...> from invalid String value tempeture_2m` — different exception class, no `for key hourly` suffix | DIVERGES | | REST Countries · RC-1 | Legacy `/v3.1/...` was the long-used free endpoint; official deprecation page: "We were forced to take down those endpoints" and v5 "isn't a drop-in replacement" | `301` → static file; final `200` with `{"success":false,"data":null,"errors":[{"message":"This API version has been deprecated..."}]}` — no country data, and final status is 200 not 4xx | DIVERGES | | REST Countries · RC-2 | Homepage: "Fires a real request against the demo API key" and presents the sample as country data | `200`, but body contains `"_demo":{"message":"You just ran a test against the demo key... one example object showing the response shape you would get back from a real query."}` — illustrative object, not a live record | DIVERGES | | REST Countries · RC-3 | v5 requires a Bearer key (`Authorization: Bearer rc_live_demo` in the official example) | `401`, `{"errors":[{"message":"Authorization key required.","code":"general.auth_key_missing"}]}` | MATCH | | PokeAPI · PK-1 | List response has `count`, `next`, `previous`, `results`; default page "up to 20 resources" | `200`, `"count":1351`, `"next"` present, `"previous":null`, 2 results | MATCH | | PokeAPI · PK-2 | `?limit=60` changes page size; default page up to 20 — i.e. `limit` controls page size | `?limit=0` → `200` with **20** results and `"next":"...?offset=20&limit=20"`; requested `0` silently replaced by default 20 | DIVERGES | | PokeAPI · PK-3 | "HTTP Requests with a malformed query string are blocked. Only `limit` and `offset` parameters are allowed." | `?foo=bar` → `403` with Cloudflare HTML `Attention Required! \| Cloudflare`, no JSON API error | DIVERGES | | PokeAPI · PK-4 | `next`/`previous` are nullable URLs | `?limit=2&offset=999999` → `200`, `"next":null`, `"previous":"...offset=999997&limit=2"`, `"results":[]` | MATCH | | DummyJSON · DJ-1 | "By default you will get 30 items"; `total:194`; `select=title,price` also returns `id` | `200`, `"total":194`, `"limit":2`, each item `{id,title,price}` only | MATCH | | DummyJSON · DJ-2 | "use `limit=0` to get all items" | `200`, 194 products returned, but response echoes `"limit":194` instead of the requested `0` | DIVERGES | | DummyJSON · DJ-3 | `POST /products/add` returns new created product with `"id":195` (simulated) | `201`, `{"id":195,"title":"Audit Probe"}` | MATCH | Verdicts: 10 MATCH, 6 DIVERGES, 0 UNVERIFIED. (Every call produced an observable live response, so nothing had to be marked UNVERIFIED.) ## 最令人意外的差异(约 200 字) 最危险的不是某一个字段错了,而是 REST Countries 的**两代接口同时"看起来成功"**。旧的 `/v3.1` 请求先返回 `301`,跟随重定向后最终状态码是 `200`,正文却是 `{"success":false,"data":null}` 加一段弃用提示——它不会抛 404/410,只会给一个"空成功"。官方弃用页明确说 `/v1`–`/v4` 已被强制下线,且新版 `/v5` "isn't a drop-in replacement",字段名与响应结构都变了。更微妙的是 `/v5` 的 demo key:首页示例写的是"Fires a real request against the demo API key",但实测响应里嵌着 `_demo.message`,说明返回的只是用于展示结构的示例对象,并非真实国家数据。对集成者而言,这意味着三件事:只检查 HTTP 状态码的重试/告警逻辑会漏判;直接把 `data` 写进数据库的管道会静默吞入 null;用 demo key 写的测试可以全绿,而生产环境因为没有真实 key 收到 `401 general.auth_key_missing`。迁移到 v5 必须显式校验 `success`/`errors` 并做字段映射,不能把它当成版本升级。 ## Exact requests and trimmed live responses (evidence) ```text ===== JP-1 ===== $ curl -sS "https://jsonplaceholder.typicode.com/posts/1" HTTP_STATUS=200 {"userId":1,"id":1,"title":"sunt aut facere repellat provident occaecati excepturi optio reprehenderit","body":"quia et suscipit\nsuscipit recusandae consequuntur expedita..."} ===== JP-2 ===== $ curl -sS "https://jsonplaceholder.typicode.com/comments?postId=1" HTTP_STATUS=200 count=5 first={"postId":1,"id":1,"name":"id labore ex et quam laborum","email":"Eliseo@gardner.biz","body":"laudantium enim quasi est quidem..."} postIds_unique=[1] ===== JP-3 ===== $ curl -sS -X POST -H "Content-Type: application/json" -d '{"title":"audit-probe","body":"evidence","userId":1}' "https://jsonplaceholder.typicode.com/posts" HTTP_STATUS=201 {"title":"audit-probe","body":"evidence","userId":1,"id":101} $ curl -sS "https://jsonplaceholder.typicode.com/posts/101" HTTP_STATUS=404 {} ===== OM-1 ===== $ curl -sS "https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41¤t=temperature_2m&timezone=auto" HTTP_STATUS=200 {"latitude":52.512604,"longitude":13.419517,"utc_offset_seconds":3600,"timezone":"Europe/Berlin","timezone_abbreviation":"GMT+1","current_units":{"time":"iso8601","interval":"seconds","temperature_2m":"°C"},"current":{"time":"2026-11-26T02:15","interval":900,"temperature_2m":-0.6}} ===== OM-2 ===== $ curl -sS "https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m&forecast_days=16" hourly.time_len=384 first=2026-11-26T00:00 last=2026-12-11T23:00 ===== OM-3 ===== $ curl -sS "https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=tempeture_2m" HTTP_STATUS=400 {"error":true,"reason":"Invalid value: Cannot initialize SurfacePressureAndHeightVariable, ForecastHeightVariable> from invalid String value tempeture_2m"} ===== RC-1 ===== $ curl -sS -D - -o /dev/null "https://restcountries.com/v3.1/name/canada?fields=name,capital" HTTP/1.1 301 Moved Permanently Location: https://files-03.restcountries.com/countries.00/legacy.json?fields=name,capital $ curl -sSL "https://restcountries.com/v3.1/name/canada?fields=name,capital" HTTP_STATUS=200 FINAL_URL=https://files-03.restcountries.com/countries.00/legacy.json?fields=name,capital {"success":false,"data":null,"errors":[{"message":"This API version has been deprecated. Please visit https://restcountries.com/docs/countries/legacy-api-deprecation to migrate to our new version (v5)."}]} ===== RC-2 ===== $ curl -sS -H "Authorization: Bearer rc_live_demo" "https://api.restcountries.com/countries/v5/codes.alpha_2/CA?pretty=1" HTTP_STATUS=200 {"data":{"_demo":{"message":"You just ran a test against the demo key. To get real data, sign up for an API key here: https://restcountries.com/sign-up. Below is one example object showing the response shape you would get back from a real query.","signup_url":"https://restcountries.com/sign-up"},"objects":[{"names":{"common":"Canada","official":"Canada",...},"codes":{"alpha_2":"CA","alpha_3":"CAN",...}}]}} ===== RC-3 ===== $ curl -sS "https://api.restcountries.com/countries/v5/codes.alpha_2/CA?pretty=1" HTTP_STATUS=401 {"errors":[{"message":"Authorization key required.","code":"general.auth_key_missing"}]} ===== PK-1 ===== $ curl -sS "https://pokeapi.co/api/v2/pokemon?limit=2" HTTP_STATUS=200 {"count":1351,"next":"https://pokeapi.co/api/v2/pokemon?offset=2&limit=2","previous":null,"results":[{"name":"bulbasaur","url":"https://pokeapi.co/api/v2/pokemon/1/"},{"name":"ivysaur","url":"https://pokeapi.co/api/v2/pokemon/2/"}]} ===== PK-2 ===== $ curl -sS "https://pokeapi.co/api/v2/pokemon?limit=0" HTTP_STATUS=200 {"count":1351,"next":"https://pokeapi.co/api/v2/pokemon?offset=20&limit=20","previous":null,"results":[{"name":"bulbasaur",...},{"name":"ivysaur",...}, ... 20 items]} ===== PK-3 ===== $ curl -sS "https://pokeapi.co/api/v2/pokemon?foo=bar" HTTP_STATUS=403 ... Attention Required! | Cloudflare ... ===== PK-4 ===== $ curl -sS "https://pokeapi.co/api/v2/pokemon?limit=2&offset=999999" HTTP_STATUS=200 {"count":1351,"next":null,"previous":"https://pokeapi.co/api/v2/pokemon?offset=999997&limit=2","results":[]} ===== DJ-1 ===== $ curl -sS "https://dummyjson.com/products?limit=2&select=title,price" HTTP_STATUS=200 {"products":[{"id":1,"title":"Essence Mascara Lash Princess","price":9.99},{"id":2,"title":"Eyeshadow Palette with Mirror","price":19.99}],"total":194,"skip":0,"limit":2} ===== DJ-2 ===== $ curl -sS "https://dummyjson.com/products?limit=0" HTTP_STATUS=200 returned_products=194 total=194 skip=0 limit=194 ===== DJ-3 ===== $ curl -sS -X POST -H "Content-Type: application/json" -d '{"title":"Audit Probe"}' "https://dummyjson.com/products/add" HTTP_STATUS=201 {"id":195,"title":"Audit Probe"} ``` ## Official doc sources (fetched 2026-11-26) - JSONPlaceholder — https://jsonplaceholder.typicode.com/ (also checked raw HTML for the `101` and "not really created" wording) - Open-Meteo — https://open-meteo.com/en/docs - REST Countries — https://restcountries.com/ and https://restcountries.com/docs/countries/legacy-api-deprecation - PokeAPI — https://pokeapi.co/v2/ (the old `/docs/v2` URL now returns 404; the current docs live at `/v2/`) - DummyJSON — https://dummyjson.com/docs/products Link check: all five doc URLs above and the deprecation URL were fetched successfully on 2026-11-26; `pokeapi.co/v2/` was additionally confirmed reachable via `curl` (`200`), while the legacy `pokeapi.co/docs/v2` path returns `404` — itself a small docs-location drift worth noting.