{"name":"NZ Herald World News API","description":"World news headlines from the New Zealand Herald, with headline, publish time and article link.","api_id":"generated_126fa20b8b04abba62bd8702","slug":"nzherald-nzherald-co-nz-api","source":{"name":"NZ Herald","domain":"nzherald.co.nz","url":"https://www.nzherald.co.nz/"},"category":"news_content","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-11-22","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"3.0","versions":[{"major":3,"latest_minor":"3.0","status":"current","sunset_at":null},{"major":1,"latest_minor":"1.1","status":"deprecated","sunset_at":"2027-01-21T01:10:08.000Z"}],"changelog":[{"version":"3.0","date":"2026-11-22T01:10:08.000Z","kind":"major","changes":[{"code":"option_added","name":"collection","summary":"Option `New Zealand` added to input `collection`."},{"code":"field_removed","name":"category","summary":"Field `category` is no longer shown by the source; it stays and is `null`."},{"code":"field_removed","name":"category_path","summary":"Field `category_path` is no longer shown by the source; it stays and is `null`."},{"code":"field_removed","name":"author","summary":"Field `author` is no longer shown by the source; it stays and is `null`."},{"code":"field_removed","name":"reading_time","summary":"Field `reading_time` is no longer shown by the source; it stays and is `null`."},{"code":"option_withdrawn","name":"collection","summary":"Options `Lifestyle`, `Property` no longer in the list read from the site."},{"code":"input_removed","name":"enrich_records","summary":"Input `enrich_records` removed."}]},{"version":"1.1","date":"2026-11-17T05:00:21.000Z","kind":"minor","changes":[]},{"version":"1.0","date":"2026-11-13T14:48:08.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_126fa20b8b04abba62bd8702_search","name":"Extract records","description":"Return records within the accepted scope.","definition_version":"e6d4087b9470f59152e279c5952fe8f8900254887f00cb20eb2afac7b0c2ccfd","method":"POST","path":"/v1/catalog/public/apis/generated_126fa20b8b04abba62bd8702/endpoints/generated_126fa20b8b04abba62bd8702_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_126fa20b8b04abba62bd8702/endpoints/generated_126fa20b8b04abba62bd8702_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"collection":{"type":"string","enum":["New Zealand","The Selection - Shop the trends"],"description":"Choose an independently verified source collection/filter route. Omit it to read the pasted collection itself.","x-source-route":"choice_page"}},"required":[],"additionalProperties":false},"output_schema":{"type":"object","additionalProperties":false,"required":["title","url"],"properties":{"js_story_card":{"type":["boolean"]},"published_at":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"}}},"examples":[{"kind":"saved_validation_records","saved_at":"2026-11-22T01:10:08.940Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"js_story_card":true,"published_at":"20 Nov 11:28 PM","title":"Shouting and crying as man left on ground covered in blood after street stabbing","url":"https://www.nzherald.co.nz/nz/auckland/man-charged-after-mangere-east-stabbing-leaves-one-critically-injured/RUYF3QX36BDZ5MBK43IQACSQXI/"},{"js_story_card":true,"published_at":"20 Nov 11:01 PM","title":"New Year's Day plans? A new festival is coming to Mount Maunganui","url":"https://www.nzherald.co.nz/nz/eats-n-beats-summer-festival-set-for-mount-maunganui-on-new-years-day/ZHMI3YIYIFACJAO4U6NIYLKQXY/"}]}],"request_example":{"body":{"input":{"collection":"New Zealand"},"version":3,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_126fa20b8b04abba62bd8702/endpoints/generated_126fa20b8b04abba62bd8702_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"collection\": \"New Zealand\"\n  },\n  \"version\": 3,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_126fa20b8b04abba62bd8702/endpoints/generated_126fa20b8b04abba62bd8702_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/nzherald-nzherald-co-nz-api/","markdown":"https://cleanedweb.com/catalog/nzherald-nzherald-co-nz-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_126fa20b8b04abba62bd8702/endpoints/generated_126fa20b8b04abba62bd8702_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/nzherald-nzherald-co-nz-api/","markdown":"https://cleanedweb.com/catalog/nzherald-nzherald-co-nz-api/index.md","contract":"https://cleanedweb.com/catalog/nzherald-nzherald-co-nz-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
