# Check a search without running it

`POST /v1/validate_search`

Checks the body exactly as [`POST /v1/search`](/docs/v1/search.md) would, and answers with the search as it
would run: every default filled in, and `from` and `to` evaluated to instants, with
`now` the time the request arrives. Nothing is searched. A search that would be
refused is refused here in the same way (see *Checking before you send*).

## Request

### Body

- `term` · string

  Examples: `STI`, `半导体 || semiconductor`, `"R&D \"A\"\\B"`.

  What to search for, as a term expression (see *Search terms*). To search for a text
  literally, put a backslash before every `"` and `\` in it and wrap it in double quotes.
  Optional: without it, a search finds every document that passes its filters, newest
  first (see *Searching without a term*). How long it may be depends on your
  organization's agreement. A term that does not parse is refused with `400`, and each
  mistake's `span` marks where it is (see
  [problem types](/docs/v1/problems.md)).

- `strategy` · string

  One of: `headline`, `body`.

  How the term is matched and ranked. Required with `term`, and refused without one.

  - `headline`: the term must match the headline.
  - `body`: the term must match the headline or the body, and a match in the headline
    ranks higher.

  Each text in the term is matched in one language. A text with a Chinese character in it
  is matched against the Chinese: `zh.headline` as the headline, the Chinese text as the
  body, including Chinese text that `hidden` says is left out. Any other text is matched
  against the English: `en.title` as the headline, `en.summary` as the body, since there
  is no English full text.

  With both, relevance falls off with the distance of the chosen date (`dateField`) from
  `to`. Neither strategy
  changes significantly or is removed in `/v1`. New strategies may be added.

- `typeIn` · list of strings

  Each one of: `law/decree`, `regulation`, `notice/announcement`, `opinion/plan`, `news`, `leaders`, `other`.

  Only documents of these kinds. Without it, all kinds.

- `levelIn` · list of strings

  Each one of: `centre`, `provinces`, `cities`, `other`.

  Only documents issued at these levels. Without it, all levels.

- `issuerIn` · list of strings

  Each one of: `中华人民共和国中央人民政府` (The State Council of the People's Republic of China), `中华人民共和国全国人民代表大会` (National People's Congress of the People's Republic of China), `中华人民共和国最高人民法院` (Supreme People's Court of the People's Republic of China), `中国人民银行` (People's Bank of China), `中国政治协商会议` (Chinese People's Political Consultative Conference), `交通运输部` (Ministry of Transport), `人力资源和社会保障部` (Ministry of Human Resources and Social Security), `住房和城乡建设部` (Ministry of Housing and Urban-Rural Development), `公安部` (Ministry of Public Security), `农业农村部` (Ministry of Agriculture and Rural Affairs), `司法部` (Ministry of Justice), `商务部` (Ministry of Commerce), `国家卫生健康委员会` (National Health Commission), `国家发展和改革委员会` (National Development and Reform Commission), `国家安全部` (Ministry of State Security), `国家民族事务委员会` (National Ethnic Affairs Commission), `国防部` (Ministry of National Defense), `外交部` (Ministry of Foreign Affairs), `审计署` (National Audit Office), `宣传部` (Communication Department), `工业和信息化部` (Ministry of Industry and Information Technology), `应急管理部` (Ministry of Emergency Management), `教育部` (Ministry of Education), `文化和旅游部` (Ministry of Culture and Tourism), `民政部` (Ministry of Civil Affairs), `水利部` (Ministry of Water Resources), `生态环境部` (Ministry of Ecology and Environment), `科学技术部` (Ministry of Science and Technology), `自然资源部` (Ministry of Natural Resources), `财政部` (Ministry of Finance), `退役军人事务部` (Ministry of Veterans Affairs), `上海市` (Shanghai), `云南省` (Yunnan), `内蒙古自治区` (Inner Mongolia), `北京市` (Beijing), `吉林省` (Jilin), `四川省` (Sichuan), `天津市` (Tianjin), `宁夏回族自治区` (Ningxia), `安徽省` (Anhui), `山东省` (Shandong), `山西省` (Shanxi), `广东省` (Guangdong), `广西壮族自治区` (Guangxi), `新疆维吾尔自治区` (Xinjiang), `江苏省` (Jiangsu), `江西省` (Jiangxi), `河北省` (Hebei), `河南省` (Henan), `浙江省` (Zhejiang), `海南省` (Hainan), `湖北省` (Hubei), `湖南省` (Hunan), `甘肃省` (Gansu), `福建省` (Fujian), `西藏自治区` (Tibet), `贵州省` (Guizhou), `辽宁省` (Liaoning), `重庆市` (Chongqing), `陕西省` (Shaanxi), `青海省` (Qinghai), `黑龙江省` (Heilongjiang), `七台河市` (Qitaihe), `三亚市` (Sanya), `三明市` (Sanming), `三沙市` (Sansha), `三门峡市` (Sanmenxia), `上饶市` (Shangrao), `东莞市` (Dongguan), `东营市` (Dongying), `中卫市` (Zhongwei), `中山市` (Zhongshan), `临夏回族自治州` (Linxia Hui Autonomous Prefecture), `临汾市` (Linfen), `临沂市` (Linyi), `临沧市` (Lincang), `丹东市` (Dandong), `丽水市` (Lishui), `丽江市` (Lijiang), `乌兰察布市` (Ulanqab), `乌海市` (Wuhai), `乌鲁木齐市` (Urumqi), `乐山市` (Leshan), `九江市` (Jiujiang), `云浮市` (Yunfu), `亳州市` (Bozhou), `伊春市` (Yichun), `伊犁哈萨克自治州` (Ili Kazakh Autonomous Prefecture), `佛山市` (Foshan), `佳木斯市` (Jiamusi), `保定市` (Baoding), `保山市` (Baoshan), `信阳市` (Xinyang), `儋州市` (Danzhou), `克孜勒苏柯尔克孜自治州` (Kizilsu Kirghiz Autonomous Prefecture), `克拉玛依市` (Karamay), `六安市` (Lu'an), `六盘水市` (Liupanshui), `兰州市` (Lanzhou), `兴安盟` (Xing'an League), `内江市` (Neijiang), `凉山彝族自治州` (Liangshan Yi Autonomous Prefecture), `包头市` (Baotou), `北海市` (Beihai), `十堰市` (Shiyan), `南京市` (Nanjing), `南充市` (Nanchong), `南宁市` (Nanning), `南平市` (Nanping), `南昌市` (Nanchang), `南通市` (Nantong), `南阳市` (Nanyang), `博尔塔拉蒙古自治州` (Bortala Mongol Autonomous Prefecture), `厦门市` (Xiamen), `双鸭山市` (Shuangyashan), `台州市` (Taizhou), `合肥市` (Hefei), `吉安市` (Ji'an), `吉林市` (Jilin City), `吐鲁番市` (Turpan), `吕梁市` (Lüliang), `吴忠市` (Wuzhong), `周口市` (Zhoukou), `呼伦贝尔市` (Hulunbuir), `呼和浩特市` (Hohhot), `和田地区` (Hotan Prefecture), `咸宁市` (Xianning), `咸阳市` (Xianyang), `哈密市` (Hami), `哈尔滨市` (Harbin), `唐山市` (Tangshan), `商丘市` (Shangqiu), `商洛市` (Shangluo), `喀什地区` (Kashgar Prefecture), `嘉兴市` (Jiaxing), `嘉峪关市` (Jiayuguan), `四平市` (Siping), `固原市` (Guyuan), `塔城地区` (Tacheng Prefecture), `大兴安岭地区` (Daxing'anling Prefecture), `大同市` (Datong), `大庆市` (Daqing), `大理白族自治州` (Dali Bai Autonomous Prefecture), `大连市` (Dalian), `天水市` (Tianshui), `太原市` (Taiyuan), `威海市` (Weihai), `娄底市` (Loudi), `孝感市` (Xiaogan), `宁德市` (Ningde), `宁波市` (Ningbo), `安庆市` (Anqing), `安康市` (Ankang), `安阳市` (Anyang), `安顺市` (Anshun), `定西市` (Dingxi), `宜宾市` (Yibin), `宜昌市` (Yichang), `宜春市` (Yichun), `宝鸡市` (Baoji), `宣城市` (Xuancheng), `宿州市` (Suzhou), `宿迁市` (Suqian), `山南市` (Shannan), `岳阳市` (Yueyang), `崇左市` (Chongzuo), `巴中市` (Bazhong), `巴彦淖尔市` (Bayannur), `巴音郭楞蒙古自治州` (Bayingolin Mongol Autonomous Prefecture), `常州市` (Changzhou), `常德市` (Changde), `平凉市` (Pingliang), `平顶山市` (Pingdingshan), `广元市` (Guangyuan), `广安市` (Guang'an), `广州市` (Guangzhou), `庆阳市` (Qingyang), `廊坊市` (Langfang), `延安市` (Yan'an), `延边朝鲜族自治州` (Yanbian Korean Autonomous Prefecture), `开封市` (Kaifeng), `张家口市` (Zhangjiakou), `张家界市` (Zhangjiajie), `张掖市` (Zhangye), `徐州市` (Xuzhou), `德宏傣族景颇族自治州` (Dehong Dai and Jingpo Autonomous Prefecture), `德州市` (Dezhou), `德阳市` (Deyang), `忻州市` (Xinzhou), `怀化市` (Huaihua), `怒江傈僳族自治州` (Nujiang Lisu Autonomous Prefecture), `恩施土家族苗族自治州` (Enshi Tujia and Miao Autonomous Prefecture), `惠州市` (Huizhou), `成都市` (Chengdu), `扬州市` (Yangzhou), `承德市` (Chengde), `抚州市` (Fuzhou), `抚顺市` (Fushun), `拉萨市` (Lhasa), `揭阳市` (Jieyang), `攀枝花市` (Panzhihua), `文山壮族苗族自治州` (Wenshan Zhuang and Miao Autonomous Prefecture), `新乡市` (Xinxiang), `新余市` (Xinyu), `无锡市` (Wuxi), `日喀则市` (Shigatse), `日照市` (Rizhao), `昆明市` (Kunming), `昌吉回族自治州` (Changji Hui Autonomous Prefecture), `昌都市` (Qamdo), `昭通市` (Zhaotong), `晋中市` (Jinzhong), `晋城市` (Jincheng), `普洱市` (Pu'er), `景德镇市` (Jingdezhen), `曲靖市` (Qujing), `朔州市` (Shuozhou), `朝阳市` (Chaoyang), `本溪市` (Benxi), `来宾市` (Laibin), `杭州市` (Hangzhou), `松原市` (Songyuan), `林芝市` (Nyingchi), `果洛藏族自治州` (Golog Tibetan Autonomous Prefecture), `枣庄市` (Zaozhuang), `柳州市` (Liuzhou), `株洲市` (Zhuzhou), `桂林市` (Guilin), `梅州市` (Meizhou), `梧州市` (Wuzhou), `楚雄彝族自治州` (Chuxiong Yi Autonomous Prefecture), `榆林市` (Yulin), `武威市` (Wuwei), `武汉市` (Wuhan), `毕节市` (Bijie), `永州市` (Yongzhou), `汉中市` (Hanzhong), `汕头市` (Shantou), `汕尾市` (Shanwei), `江门市` (Jiangmen), `池州市` (Chizhou), `沈阳市` (Shenyang), `沧州市` (Cangzhou), `河池市` (Hechi), `河源市` (Heyuan), `泉州市` (Quanzhou), `泰安市` (Tai'an), `泰州市` (Taizhou), `泸州市` (Luzhou), `洛阳市` (Luoyang), `济南市` (Jinan), `济宁市` (Jining), `海东市` (Haidong), `海北藏族自治州` (Haibei Tibetan Autonomous Prefecture), `海南藏族自治州` (Hainan Tibetan Autonomous Prefecture), `海口市` (Haikou), `海西蒙古族藏族自治州` (Haixi Mongol and Tibetan Autonomous Prefecture), `淄博市` (Zibo), `淮北市` (Huaibei), `淮南市` (Huainan), `淮安市` (Huai'an), `深圳市` (Shenzhen), `清远市` (Qingyuan), `温州市` (Wenzhou), `渭南市` (Weinan), `湖州市` (Huzhou), `湘潭市` (Xiangtan), `湘西土家族苗族自治州` (Xiangxi Tujia and Miao Autonomous Prefecture), `湛江市` (Zhanjiang), `滁州市` (Chuzhou), `滨州市` (Binzhou), `漯河市` (Luohe), `漳州市` (Zhangzhou), `潍坊市` (Weifang), `潮州市` (Chaozhou), `濮阳市` (Puyang), `烟台市` (Yantai), `焦作市` (Jiaozuo), `牡丹江市` (Mudanjiang), `玉林市` (Yulin), `玉树藏族自治县` (Yushu Tibetan Autonomous County), `玉树藏族自治州` (Yushu Tibetan Autonomous Prefecture), `玉溪市` (Yuxi), `珠海市` (Zhuhai), `甘南藏族自治州` (Gannan Tibetan Autonomous Prefecture), `甘孜藏族自治州` (Garzê Tibetan Autonomous Prefecture), `白城市` (Baicheng), `白山市` (Baishan), `白银市` (Baiyin), `百色市` (Baise), `益阳市` (Yiyang), `盐城市` (Yancheng), `盘锦市` (Panjin), `眉山市` (Meishan), `石嘴山市` (Shizuishan), `石家庄市` (Shijiazhuang), `福州市` (Fuzhou), `秦皇岛市` (Qinhuangdao), `红河哈尼族彝族自治州` (Honghe Hani and Yi Autonomous Prefecture), `绍兴市` (Shaoxing), `绥化市` (Suihua), `绵阳市` (Mianyang), `聊城市` (Liaocheng), `肇庆市` (Zhaoqing), `自贡市` (Zigong), `舟山市` (Zhoushan), `芜湖市` (Wuhu), `苏州市` (Suzhou), `茂名市` (Maoming), `荆州市` (Jingzhou), `荆门市` (Jingmen), `莆田市` (Putian), `莱芜市` (Laiwu), `菏泽市` (Heze), `萍乡市` (Pingxiang), `营口市` (Yingkou), `葫芦岛市` (Huludao), `蚌埠市` (Bengbu), `衡水市` (Hengshui), `衡阳市` (Hengyang), `衢州市` (Quzhou), `襄阳市` (Xiangyang), `西双版纳傣族自治州` (Xishuangbanna Dai Autonomous Prefecture), `西宁市` (Xining), `西安市` (Xi'an), `许昌市` (Xuchang), `贵港市` (Guigang), `贵阳市` (Guiyang), `贺州市` (Hezhou), `资阳市` (Ziyang), `赣州市` (Ganzhou), `赤峰市` (Chifeng), `辽源市` (Liaoyuan), `辽阳市` (Liaoyang), `达州市` (Dazhou), `运城市` (Yuncheng), `连云港市` (Lianyungang), `迪庆藏族自治州` (Diqing Tibetan Autonomous Prefecture), `通化市` (Tonghua), `通辽市` (Tongliao), `遂宁市` (Suining), `遵义市` (Zunyi), `邢台市` (Xingtai), `那曲地区` (Nagqu), `邯郸市` (Handan), `邵阳市` (Shaoyang), `郑州市` (Zhengzhou), `郴州市` (Chenzhou), `鄂尔多斯市` (Ordos), `鄂州市` (Ezhou), `酒泉市` (Jiuquan), `金华市` (Jinhua), `金昌市` (Jinchang), `钦州市` (Qinzhou), `铁岭市` (Tieling), `铜仁市` (Tongren), `铜川市` (Tongchuan), `铜陵市` (Tongling), `银川市` (Yinchuan), `锡林郭勒盟` (Xilin Gol League), `锦州市` (Jinzhou), `镇江市` (Zhenjiang), `长春市` (Changchun), `长沙市` (Changsha), `长治市` (Changzhi), `阜新市` (Fuxin), `阜阳市` (Fuyang), `防城港市` (Fangchenggang), `阳江市` (Yangjiang), `阳泉市` (Yangquan), `阿克苏地区` (Aksu Prefecture), `阿勒泰地区` (Altay Prefecture), `阿坝藏族羌族自治州` (Ngawa Tibetan and Qiang Autonomous Prefecture), `阿拉善盟` (Alxa League), `阿里地区` (Ngari Prefecture), `陇南市` (Longnan), `随州市` (Suizhou), `雅安市` (Ya'an), `青岛市` (Qingdao), `鞍山市` (Anshan), `韶关市` (Shaoguan), `马鞍山市` (Ma'anshan), `驻马店市` (Zhumadian), `鸡西市` (Jixi), `鹤壁市` (Hebi), `鹤岗市` (Hegang), `鹰潭市` (Yingtan), `黄冈市` (Huanggang), `黄南藏族自治州` (Huangnan Tibetan Autonomous Prefecture), `黄山市` (Huangshan), `黄石市` (Huangshi), `黑河市` (Heihe), `黔东南苗族侗族自治州` (Qiandongnan Miao and Dong Autonomous Prefecture), `黔南布依族苗族自治州` (Qiannan Buyei and Miao Autonomous Prefecture), `黔西南布依族苗族自治州` (Qianxinan Buyei and Miao Autonomous Prefecture), `齐齐哈尔市` (Qiqihar), `龙岩市` (Longyan), `万宁市` (Wanning), `东方市` (Dongfang), `临高县` (Lingao County), `乐东黎族自治县` (Ledong Li Autonomous County), `五家渠市` (Wujiaqu), `五指山市` (Wuzhishan), `仙桃市` (Xiantao), `保亭黎族苗族自治县` (Baoting Li and Miao Autonomous County), `北屯市` (Beitun), `图木舒克市` (Tumxuk), `天门市` (Tianmen), `定安县` (Ding'an County), `屯昌县` (Tunchang County), `文昌市` (Wenchang), `昌江黎族自治县` (Changjiang Li Autonomous County), `济源市` (Jiyuan), `潜江市` (Qianjiang), `澄迈县` (Chengmai County), `澳门特别行政区` (Macau Special Administrative Region), `琼中黎族苗族自治县` (Qiongzhong Li and Miao Autonomous County), `琼海市` (Qionghai), `白杨市` (Baiyang), `白沙黎族自治县` (Baisha Li Autonomous County), `石河子市` (Shihezi), `神农架林区` (Shennongjia Forestry District), `胡杨河市` (Huyanghe), `阿拉尔市` (Alar), `陵水黎族自治县` (Lingshui Li Autonomous County), `香港特别行政区` (Hong Kong Special Administrative Region).

  Only documents from these issuers. Without it, all issuers.

- `topicIn` · list of strings

  Each one of: `agriculture`, `awards`, `commerce`, `credit`, `culture`, `diplomacy`, `education`, `emergency`, `energy`, `environment`, `finance`, `health`, `housing`, `infrastructure`, `military`, `party`, `personnel`, `safety`, `security`, `sports`, `tech`, `tourism`, `trade`, `transport`, `veterans`, `weather`, `welfare`, `other`.

  Only documents on these topics. Without it, all topics.

- `from` · string, up to 128 characters · default `now-7d`

  Examples: `now-7d/d`, `2026-09-03`, `2026-09-03T00:00:00+08:00`, `2026-09-03+M`, `now[Europe/Berlin]-M/M`, `2025-01-01[Asia/Shanghai]`.

  The earliest instant of the chosen date (`dateField`) to include (inclusive).
  Defaults to `now-7d`. How far back it may reach depends on your organization's
  agreement, and whatever `dateField` says, a search never finds a document whose `date`
  lies before that.

- `to` · string, up to 128 characters · default `now`

  Examples: `now-7d/d`, `2026-09-03`, `2026-09-03T00:00:00+08:00`, `2026-09-03+M`, `now[Europe/Berlin]-M/M`, `2025-01-01[Asia/Shanghai]`.

  The instant of the chosen date (`dateField`) to stop before (exclusive). Defaults to
  `now`. It has to be later than `from`, whether either was sent or defaulted, or the
  request is refused with `400` (see *Dates and time zones*). How far ahead it may
  reach depends on your organization's agreement.

- `dateField` · string · default `date`

  One of: `date`, `published`, `issued`, `implemented`, `added`.

  Which of a document's dates `from` and `to` filter on and the time histogram counts.
  `date` is the one date each document is treated as having. The others are the members
  of `dates`, and each finds only documents that have that date. The ranking uses the
  chosen date too (see `strategy` and *Searching without a term*).

- `pageSize` · integer, 0 to 100 · default `10`

  How many summaries each page of a search holds. With `0`, a search returns `hits` and
  the histograms asked for, no summaries, and no `next`.

- `histograms` · object

  Each one of: `time`, `issuer`, `level`, `topic`.

  The histograms to return with the first page, each named with its options:
  `{"time": {}, "level": {}}`. It names at least one; for none, leave it out. They cost
  more than the page itself, so ask only for those you use.

- `timeZone` · in `histograms.time`, sent only with `time` in `histograms` · string · default `UTC`

  Listed values: `Africa/Abidjan`, `Africa/Accra`, `Africa/Addis_Ababa`, `Africa/Algiers`, `Africa/Asmara`, `Africa/Asmera`, `Africa/Bamako`, `Africa/Bangui`, `Africa/Banjul`, `Africa/Bissau`, `Africa/Blantyre`, `Africa/Brazzaville`, `Africa/Bujumbura`, `Africa/Cairo`, `Africa/Casablanca`, `Africa/Ceuta`, `Africa/Conakry`, `Africa/Dakar`, `Africa/Dar_es_Salaam`, `Africa/Djibouti`, `Africa/Douala`, `Africa/El_Aaiun`, `Africa/Freetown`, `Africa/Gaborone`, `Africa/Harare`, `Africa/Johannesburg`, `Africa/Juba`, `Africa/Kampala`, `Africa/Khartoum`, `Africa/Kigali`, `Africa/Kinshasa`, `Africa/Lagos`, `Africa/Libreville`, `Africa/Lome`, `Africa/Luanda`, `Africa/Lubumbashi`, `Africa/Lusaka`, `Africa/Malabo`, `Africa/Maputo`, `Africa/Maseru`, `Africa/Mbabane`, `Africa/Mogadishu`, `Africa/Monrovia`, `Africa/Nairobi`, `Africa/Ndjamena`, `Africa/Niamey`, `Africa/Nouakchott`, `Africa/Ouagadougou`, `Africa/Porto-Novo`, `Africa/Sao_Tome`, `Africa/Timbuktu`, `Africa/Tripoli`, `Africa/Tunis`, `Africa/Windhoek`, `America/Adak`, `America/Anchorage`, `America/Anguilla`, `America/Antigua`, `America/Araguaina`, `America/Argentina/Buenos_Aires`, `America/Argentina/Catamarca`, `America/Argentina/ComodRivadavia`, `America/Argentina/Cordoba`, `America/Argentina/Jujuy`, `America/Argentina/La_Rioja`, `America/Argentina/Mendoza`, `America/Argentina/Rio_Gallegos`, `America/Argentina/Salta`, `America/Argentina/San_Juan`, `America/Argentina/San_Luis`, `America/Argentina/Tucuman`, `America/Argentina/Ushuaia`, `America/Aruba`, `America/Asuncion`, `America/Atikokan`, `America/Atka`, `America/Bahia`, `America/Bahia_Banderas`, `America/Barbados`, `America/Belem`, `America/Belize`, `America/Blanc-Sablon`, `America/Boa_Vista`, `America/Bogota`, `America/Boise`, `America/Buenos_Aires`, `America/Cambridge_Bay`, `America/Campo_Grande`, `America/Cancun`, `America/Caracas`, `America/Catamarca`, `America/Cayenne`, `America/Cayman`, `America/Chicago`, `America/Chihuahua`, `America/Ciudad_Juarez`, `America/Coral_Harbour`, `America/Cordoba`, `America/Costa_Rica`, `America/Coyhaique`, `America/Creston`, `America/Cuiaba`, `America/Curacao`, `America/Danmarkshavn`, `America/Dawson`, `America/Dawson_Creek`, `America/Denver`, `America/Detroit`, `America/Dominica`, `America/Edmonton`, `America/Eirunepe`, `America/El_Salvador`, `America/Ensenada`, `America/Fort_Nelson`, `America/Fort_Wayne`, `America/Fortaleza`, `America/Glace_Bay`, `America/Godthab`, `America/Goose_Bay`, `America/Grand_Turk`, `America/Grenada`, `America/Guadeloupe`, `America/Guatemala`, `America/Guayaquil`, `America/Guyana`, `America/Halifax`, `America/Havana`, `America/Hermosillo`, `America/Indiana/Indianapolis`, `America/Indiana/Knox`, `America/Indiana/Marengo`, `America/Indiana/Petersburg`, `America/Indiana/Tell_City`, `America/Indiana/Vevay`, `America/Indiana/Vincennes`, `America/Indiana/Winamac`, `America/Indianapolis`, `America/Inuvik`, `America/Iqaluit`, `America/Jamaica`, `America/Jujuy`, `America/Juneau`, `America/Kentucky/Louisville`, `America/Kentucky/Monticello`, `America/Knox_IN`, `America/Kralendijk`, `America/La_Paz`, `America/Lima`, `America/Los_Angeles`, `America/Louisville`, `America/Lower_Princes`, `America/Maceio`, `America/Managua`, `America/Manaus`, `America/Marigot`, `America/Martinique`, `America/Matamoros`, `America/Mazatlan`, `America/Mendoza`, `America/Menominee`, `America/Merida`, `America/Metlakatla`, `America/Mexico_City`, `America/Miquelon`, `America/Moncton`, `America/Monterrey`, `America/Montevideo`, `America/Montreal`, `America/Montserrat`, `America/Nassau`, `America/New_York`, `America/Nipigon`, `America/Nome`, `America/Noronha`, `America/North_Dakota/Beulah`, `America/North_Dakota/Center`, `America/North_Dakota/New_Salem`, `America/Nuuk`, `America/Ojinaga`, `America/Panama`, `America/Pangnirtung`, `America/Paramaribo`, `America/Phoenix`, `America/Port-au-Prince`, `America/Port_of_Spain`, `America/Porto_Acre`, `America/Porto_Velho`, `America/Puerto_Rico`, `America/Punta_Arenas`, `America/Rainy_River`, `America/Rankin_Inlet`, `America/Recife`, `America/Regina`, `America/Resolute`, `America/Rio_Branco`, `America/Rosario`, `America/Santa_Isabel`, `America/Santarem`, `America/Santiago`, `America/Santo_Domingo`, `America/Sao_Paulo`, `America/Scoresbysund`, `America/Shiprock`, `America/Sitka`, `America/St_Barthelemy`, `America/St_Johns`, `America/St_Kitts`, `America/St_Lucia`, `America/St_Thomas`, `America/St_Vincent`, `America/Swift_Current`, `America/Tegucigalpa`, `America/Thule`, `America/Thunder_Bay`, `America/Tijuana`, `America/Toronto`, `America/Tortola`, `America/Vancouver`, `America/Virgin`, `America/Whitehorse`, `America/Winnipeg`, `America/Yakutat`, `America/Yellowknife`, `Antarctica/Casey`, `Antarctica/Davis`, `Antarctica/DumontDUrville`, `Antarctica/Macquarie`, `Antarctica/Mawson`, `Antarctica/McMurdo`, `Antarctica/Palmer`, `Antarctica/Rothera`, `Antarctica/South_Pole`, `Antarctica/Syowa`, `Antarctica/Troll`, `Antarctica/Vostok`, `Arctic/Longyearbyen`, `Asia/Aden`, `Asia/Almaty`, `Asia/Amman`, `Asia/Anadyr`, `Asia/Aqtau`, `Asia/Aqtobe`, `Asia/Ashgabat`, `Asia/Ashkhabad`, `Asia/Atyrau`, `Asia/Baghdad`, `Asia/Bahrain`, `Asia/Baku`, `Asia/Bangkok`, `Asia/Barnaul`, `Asia/Beirut`, `Asia/Bishkek`, `Asia/Brunei`, `Asia/Calcutta`, `Asia/Chita`, `Asia/Choibalsan`, `Asia/Chongqing`, `Asia/Chungking`, `Asia/Colombo`, `Asia/Dacca`, `Asia/Damascus`, `Asia/Dhaka`, `Asia/Dili`, `Asia/Dubai`, `Asia/Dushanbe`, `Asia/Famagusta`, `Asia/Gaza`, `Asia/Harbin`, `Asia/Hebron`, `Asia/Ho_Chi_Minh`, `Asia/Hong_Kong`, `Asia/Hovd`, `Asia/Irkutsk`, `Asia/Istanbul`, `Asia/Jakarta`, `Asia/Jayapura`, `Asia/Jerusalem`, `Asia/Kabul`, `Asia/Kamchatka`, `Asia/Karachi`, `Asia/Kashgar`, `Asia/Kathmandu`, `Asia/Katmandu`, `Asia/Khandyga`, `Asia/Kolkata`, `Asia/Krasnoyarsk`, `Asia/Kuala_Lumpur`, `Asia/Kuching`, `Asia/Kuwait`, `Asia/Macao`, `Asia/Macau`, `Asia/Magadan`, `Asia/Makassar`, `Asia/Manila`, `Asia/Muscat`, `Asia/Nicosia`, `Asia/Novokuznetsk`, `Asia/Novosibirsk`, `Asia/Omsk`, `Asia/Oral`, `Asia/Phnom_Penh`, `Asia/Pontianak`, `Asia/Pyongyang`, `Asia/Qatar`, `Asia/Qostanay`, `Asia/Qyzylorda`, `Asia/Rangoon`, `Asia/Riyadh`, `Asia/Saigon`, `Asia/Sakhalin`, `Asia/Samarkand`, `Asia/Seoul`, `Asia/Shanghai`, `Asia/Singapore`, `Asia/Srednekolymsk`, `Asia/Taipei`, `Asia/Tashkent`, `Asia/Tbilisi`, `Asia/Tehran`, `Asia/Tel_Aviv`, `Asia/Thimbu`, `Asia/Thimphu`, `Asia/Tokyo`, `Asia/Tomsk`, `Asia/Ujung_Pandang`, `Asia/Ulaanbaatar`, `Asia/Ulan_Bator`, `Asia/Urumqi`, `Asia/Ust-Nera`, `Asia/Vientiane`, `Asia/Vladivostok`, `Asia/Yakutsk`, `Asia/Yangon`, `Asia/Yekaterinburg`, `Asia/Yerevan`, `Atlantic/Azores`, `Atlantic/Bermuda`, `Atlantic/Canary`, `Atlantic/Cape_Verde`, `Atlantic/Faeroe`, `Atlantic/Faroe`, `Atlantic/Jan_Mayen`, `Atlantic/Madeira`, `Atlantic/Reykjavik`, `Atlantic/South_Georgia`, `Atlantic/St_Helena`, `Atlantic/Stanley`, `Australia/ACT`, `Australia/Adelaide`, `Australia/Brisbane`, `Australia/Broken_Hill`, `Australia/Canberra`, `Australia/Currie`, `Australia/Darwin`, `Australia/Eucla`, `Australia/Hobart`, `Australia/LHI`, `Australia/Lindeman`, `Australia/Lord_Howe`, `Australia/Melbourne`, `Australia/NSW`, `Australia/North`, `Australia/Perth`, `Australia/Queensland`, `Australia/South`, `Australia/Sydney`, `Australia/Tasmania`, `Australia/Victoria`, `Australia/West`, `Australia/Yancowinna`, `Brazil/Acre`, `Brazil/DeNoronha`, `Brazil/East`, `Brazil/West`, `CET`, `CST6CDT`, `Canada/Atlantic`, `Canada/Central`, `Canada/Eastern`, `Canada/Mountain`, `Canada/Newfoundland`, `Canada/Pacific`, `Canada/Saskatchewan`, `Canada/Yukon`, `Chile/Continental`, `Chile/EasterIsland`, `Cuba`, `EET`, `EST`, `EST5EDT`, `Egypt`, `Eire`, `Etc/GMT`, `Etc/GMT+0`, `Etc/GMT+1`, `Etc/GMT+10`, `Etc/GMT+11`, `Etc/GMT+12`, `Etc/GMT+2`, `Etc/GMT+3`, `Etc/GMT+4`, `Etc/GMT+5`, `Etc/GMT+6`, `Etc/GMT+7`, `Etc/GMT+8`, `Etc/GMT+9`, `Etc/GMT-0`, `Etc/GMT-1`, `Etc/GMT-10`, `Etc/GMT-11`, `Etc/GMT-12`, `Etc/GMT-13`, `Etc/GMT-14`, `Etc/GMT-2`, `Etc/GMT-3`, `Etc/GMT-4`, `Etc/GMT-5`, `Etc/GMT-6`, `Etc/GMT-7`, `Etc/GMT-8`, `Etc/GMT-9`, `Etc/GMT0`, `Etc/Greenwich`, `Etc/UCT`, `Etc/UTC`, `Etc/Universal`, `Etc/Zulu`, `Europe/Amsterdam`, `Europe/Andorra`, `Europe/Astrakhan`, `Europe/Athens`, `Europe/Belfast`, `Europe/Belgrade`, `Europe/Berlin`, `Europe/Bratislava`, `Europe/Brussels`, `Europe/Bucharest`, `Europe/Budapest`, `Europe/Busingen`, `Europe/Chisinau`, `Europe/Copenhagen`, `Europe/Dublin`, `Europe/Gibraltar`, `Europe/Guernsey`, `Europe/Helsinki`, `Europe/Isle_of_Man`, `Europe/Istanbul`, `Europe/Jersey`, `Europe/Kaliningrad`, `Europe/Kiev`, `Europe/Kirov`, `Europe/Kyiv`, `Europe/Lisbon`, `Europe/Ljubljana`, `Europe/London`, `Europe/Luxembourg`, `Europe/Madrid`, `Europe/Malta`, `Europe/Mariehamn`, `Europe/Minsk`, `Europe/Monaco`, `Europe/Moscow`, `Europe/Nicosia`, `Europe/Oslo`, `Europe/Paris`, `Europe/Podgorica`, `Europe/Prague`, `Europe/Riga`, `Europe/Rome`, `Europe/Samara`, `Europe/San_Marino`, `Europe/Sarajevo`, `Europe/Saratov`, `Europe/Simferopol`, `Europe/Skopje`, `Europe/Sofia`, `Europe/Stockholm`, `Europe/Tallinn`, `Europe/Tirane`, `Europe/Tiraspol`, `Europe/Ulyanovsk`, `Europe/Uzhgorod`, `Europe/Vaduz`, `Europe/Vatican`, `Europe/Vienna`, `Europe/Vilnius`, `Europe/Volgograd`, `Europe/Warsaw`, `Europe/Zagreb`, `Europe/Zaporozhye`, `Europe/Zurich`, `GB`, `GB-Eire`, `GMT`, `GMT+0`, `GMT-0`, `GMT0`, `Greenwich`, `HST`, `Hongkong`, `Iceland`, `Indian/Antananarivo`, `Indian/Chagos`, `Indian/Christmas`, `Indian/Cocos`, `Indian/Comoro`, `Indian/Kerguelen`, `Indian/Mahe`, `Indian/Maldives`, `Indian/Mauritius`, `Indian/Mayotte`, `Indian/Reunion`, `Iran`, `Israel`, `Jamaica`, `Japan`, `Kwajalein`, `Libya`, `MET`, `MST`, `MST7MDT`, `Mexico/BajaNorte`, `Mexico/BajaSur`, `Mexico/General`, `NZ`, `NZ-CHAT`, `Navajo`, `PRC`, `PST8PDT`, `Pacific/Apia`, `Pacific/Auckland`, `Pacific/Bougainville`, `Pacific/Chatham`, `Pacific/Chuuk`, `Pacific/Easter`, `Pacific/Efate`, `Pacific/Enderbury`, `Pacific/Fakaofo`, `Pacific/Fiji`, `Pacific/Funafuti`, `Pacific/Galapagos`, `Pacific/Gambier`, `Pacific/Guadalcanal`, `Pacific/Guam`, `Pacific/Honolulu`, `Pacific/Johnston`, `Pacific/Kanton`, `Pacific/Kiritimati`, `Pacific/Kosrae`, `Pacific/Kwajalein`, `Pacific/Majuro`, `Pacific/Marquesas`, `Pacific/Midway`, `Pacific/Nauru`, `Pacific/Niue`, `Pacific/Norfolk`, `Pacific/Noumea`, `Pacific/Pago_Pago`, `Pacific/Palau`, `Pacific/Pitcairn`, `Pacific/Pohnpei`, `Pacific/Ponape`, `Pacific/Port_Moresby`, `Pacific/Rarotonga`, `Pacific/Saipan`, `Pacific/Samoa`, `Pacific/Tahiti`, `Pacific/Tarawa`, `Pacific/Tongatapu`, `Pacific/Truk`, `Pacific/Wake`, `Pacific/Wallis`, `Pacific/Yap`, `Poland`, `Portugal`, `ROC`, `ROK`, `Singapore`, `Turkey`, `UCT`, `US/Alaska`, `US/Aleutian`, `US/Arizona`, `US/Central`, `US/East-Indiana`, `US/Eastern`, `US/Hawaii`, `US/Indiana-Starke`, `US/Michigan`, `US/Mountain`, `US/Pacific`, `US/Samoa`, `UTC`, `Universal`, `W-SU`, `WET`, `Zulu`.

  Examples: `Europe/Berlin`, `Asia/Shanghai`, `+08:00`, `UTC`.

  The time zone whose days, months and years the periods are. A day there can be 23
  or 25 hours long, and a month or a year begins with the first instant of its first
  day there. Which of the three the period is does not depend on it (see the response's
  `histograms.time`), and each period's bounds are still instants in UTC.

  Defaults to UTC, whatever zone `from` and `to` name. With `"+08:00"` and
  `"dateField": "published"`, the histogram counts by the day as printed (see *Dates
  and time zones*).

## Samples

The spec's example, last month in Berlin, per day. The Python and Node samples run on a client logged in as the login pages show, and curl reads an access token from $TOKEN.

Logging in: [Logging in](/docs/login.md), or for a script, [Creating a token for a script](/docs/login/script-token.md).

Every API host serves these pages for its own API. The samples are written for production, https://api.reconnectchina.org, as the pages are before they know their host. On another host, such as the sandbox, use that host instead: in curl's URL and the Shell samples' `login=` line, and as `server` for the Python and Node clients, which log in there too.

### Python

```python
from reconnectchina import (
    HistogramRequests,
    SearchParameters,
    TimeHistogramOptions,
)

parameters = SearchParameters(
    term="低空经济 || \"low-altitude economy\"",
    strategy="body",
    type_in=["law/decree", "regulation", "notice/announcement", "opinion/plan"],
    from_="now[Europe/Berlin]-M/M",
    to="now[Europe/Berlin]/M",
    histograms=HistogramRequests(
        time=TimeHistogramOptions(time_zone="Europe/Berlin"),
    ),
)
effective = client.validate_search(parameters)
```

### curl

```sh
curl -X POST 'https://api.reconnectchina.org/v1/validate_search' \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "term": "低空经济 || \"low-altitude economy\"",
  "strategy": "body",
  "typeIn": [
    "law/decree",
    "regulation",
    "notice/announcement",
    "opinion/plan"
  ],
  "from": "now[Europe/Berlin]-M/M",
  "to": "now[Europe/Berlin]/M",
  "histograms": {
    "time": {
      "timeZone": "Europe/Berlin"
    }
  }
}'
```

### Node

```js
const effective = await client.validateSearch({
  "term": "低空经济 || \"low-altitude economy\"",
  "strategy": "body",
  "typeIn": [
    "law/decree",
    "regulation",
    "notice/announcement",
    "opinion/plan"
  ],
  "from": "now[Europe/Berlin]-M/M",
  "to": "now[Europe/Berlin]/M",
  "histograms": {
    "time": {
      "timeZone": "Europe/Berlin"
    }
  }
});
```

## Responses

### 200 · Success

The search is valid, and this is how it would run now.

- `term` · string · may be absent

  What to search for, as a term expression (see *Search terms*). To search for a text
  literally, put a backslash before every `"` and `\` in it and wrap it in double quotes.
  Optional: without it, a search finds every document that passes its filters, newest
  first (see *Searching without a term*). How long it may be depends on your
  organization's agreement. A term that does not parse is refused with `400`, and each
  mistake's `span` marks where it is (see
  [problem types](/docs/v1/problems.md)).

- `strategy` · string · may be absent

  How the term is matched and ranked. Required with `term`, and refused without one.

  - `headline`: the term must match the headline.
  - `body`: the term must match the headline or the body, and a match in the headline
    ranks higher.

  Each text in the term is matched in one language. A text with a Chinese character in it
  is matched against the Chinese: `zh.headline` as the headline, the Chinese text as the
  body, including Chinese text that `hidden` says is left out. Any other text is matched
  against the English: `en.title` as the headline, `en.summary` as the body, since there
  is no English full text.

  With both, relevance falls off with the distance of the chosen date (`dateField`) from
  `to`. Neither strategy
  changes significantly or is removed in `/v1`. New strategies may be added.

- `typeIn` · list of strings · may be absent

  Only documents of these kinds. Without it, all kinds.

- `levelIn` · list of strings · may be absent

  Only documents issued at these levels. Without it, all levels.

- `issuerIn` · list of strings · may be absent

  Only documents from these issuers. Without it, all issuers.

- `topicIn` · list of strings · may be absent

  Only documents on these topics. Without it, all topics.

- `from` · string

  The earliest instant of `dateField` the search would include.

- `to` · string

  The instant of `dateField` the search would stop before.

- `dateField` · string

  Which of a document's dates `from` and `to` filter on and the time histogram counts.
  `date` is the one date each document is treated as having. The others are the members
  of `dates`, and each finds only documents that have that date. The ranking uses the
  chosen date too (see `strategy` and *Searching without a term*).

- `pageSize` · integer, 0 to 100

  How many summaries each page of a search holds. With `0`, a search returns `hits` and
  the histograms asked for, no summaries, and no `next`.

- `histograms` · object · may be absent

  The histograms asked for, each with its options' defaults
  filled in, so `"time": {}` comes back as `{"time": {"timeZone": "UTC"}}`. Absent
  when none were asked for. A histogram may come to have options your client does not
  know yet, with their defaults.

### Errors

Every error is a problem document with the fields below. Its `type` names the problem, and is the address of the problem's page.

- `400` · [`invalid-request`](/docs/v1/problems/invalid-request.md)

  The request is not valid ([`invalid-request`](/docs/v1/problems/invalid-request.md)): a path that cannot be read, a body that
  is not JSON or does not match the schema, an unknown field, a `from` or `to` that is
  not a valid instant expression (an unknown time zone, or a time of day the zone skips,
  included), a `from` that is not earlier than `to`, a `term` that does not parse or is
  longer than your organization's agreement allows, an unknown issuer, a scope in the
  body that does not exist, or a saved search's name that breaks the naming rule.
  `errors` names each offending part: a `pointer` into the body (for the run of a saved
  search, into `parameters` as it ran), or the `parameter` of the path (see
  [problem types](/docs/v1/problems.md)).

- `401` · [`unauthenticated`](/docs/v1/problems/unauthenticated.md)

  No access token, or one that is invalid or has expired ([`unauthenticated`](/docs/v1/problems/unauthenticated.md)). Refresh
  the access token and try again.

  Header `WWW-Authenticate`

  `Bearer`, as [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750) specifies.

- `403` · [`no-organization`](/docs/v1/problems/no-organization.md) · [`multiple-organizations`](/docs/v1/problems/multiple-organizations.md) · [`organization-not-registered`](/docs/v1/problems/organization-not-registered.md) · [`not-entitled`](/docs/v1/problems/not-entitled.md) · [`access-ended`](/docs/v1/problems/access-ended.md) · [`tier-served-elsewhere`](/docs/v1/problems/tier-served-elsewhere.md) · [`range-not-entitled`](/docs/v1/problems/range-not-entitled.md) · [`suspended`](/docs/v1/problems/suspended.md)

  The account may not do this. `type` says why: a refusal every operation can meet
  ([`no-organization`](/docs/v1/problems/no-organization.md), [`multiple-organizations`](/docs/v1/problems/multiple-organizations.md), [`organization-not-registered`](/docs/v1/problems/organization-not-registered.md),
  [`not-entitled`](/docs/v1/problems/not-entitled.md), [`access-ended`](/docs/v1/problems/access-ended.md), [`tier-served-elsewhere`](/docs/v1/problems/tier-served-elsewhere.md) or [`suspended`](/docs/v1/problems/suspended.md), see *Problem
  types*), or the search reaches further than the organization's agreement allows
  ([`range-not-entitled`](/docs/v1/problems/range-not-entitled.md), with the earliest allowed `from` in `earliestFrom`, the latest
  allowed `to` in `latestTo`, and an `errors` entry pointing at each end at fault).

- `413` · [`payload-too-large`](/docs/v1/problems/payload-too-large.md)

  The request body is too large ([`payload-too-large`](/docs/v1/problems/payload-too-large.md)).

- `415` · [`unsupported-media-type`](/docs/v1/problems/unsupported-media-type.md)

  The request body is not `application/json` ([`unsupported-media-type`](/docs/v1/problems/unsupported-media-type.md)).

- `429` · [`rate-limited`](/docs/v1/problems/rate-limited.md)

  Too many requests, or too many at the same time ([`rate-limited`](/docs/v1/problems/rate-limited.md)), from your account,
  your organization, or your network address. Wait for `Retry-After` seconds, then send
  the same request again.

  Header `Retry-After`

  How many seconds to wait before sending the same request again.

- `431` · [`headers-too-large`](/docs/v1/problems/headers-too-large.md)

  The request's headers are too large ([`headers-too-large`](/docs/v1/problems/headers-too-large.md)). An access token is far
  below the limit, so look for a header your client adds.

- `503` · [`unavailable`](/docs/v1/problems/unavailable.md)

  The API is temporarily unavailable ([`unavailable`](/docs/v1/problems/unavailable.md)), because our servers are under
  pressure or briefly out of service. Wait for `Retry-After` seconds, then send the same
  request again.

  Header `Retry-After`

  How many seconds to wait before sending the same request again.

- `Any other` · [`internal`](/docs/v1/problems/internal.md)

  Any other error, as a problem document. Includes [`internal`](/docs/v1/problems/internal.md) (500), a failure on our
  side.

#### A problem document's fields

- `type` · string

  Identifies the problem; branch on this. One of the problem types under
  `https://api.reconnectchina.org/docs/v1/problems/`, named in each response's
  description and its `x-problem-types`, and listed in *Problem types*, for example
  `https://api.reconnectchina.org/docs/v1/problems/continuation-expired`. The URL is
  also the type's documentation.

- `title` · string

  A short, human-readable summary of the problem type.

- `status` · integer

  The HTTP status code.

- `detail` · string · may be absent

  A human-readable explanation of this occurrence.

- `errors` · list of objects · may be absent

  For [`invalid-request`](/docs/v1/problems/invalid-request.md), each part of the request that is not valid, and for
  [`range-not-entitled`](/docs/v1/problems/range-not-entitled.md), each end of the range that reaches too far. Each names
  the part in exactly one way: `pointer` for a part of the body, `parameter` for a
  part of the path. A part with several mistakes in it, such as a `term`, has an
  entry for each, and `span` says where in it each one is.

- `errors[].parameter` · string · may be absent

  The name of the path parameter, as this document names it, for example
  `name` in `/v1/saved_searches/{scope}/{name}`.

- `errors[].pointer` · string · may be absent

  A JSON Pointer ([RFC 6901](https://www.rfc-editor.org/rfc/rfc6901)) into
  the request body, for example `/levelIn/0`. Empty for the body as a whole.
  For the run of a saved search, it points into the search as it ran, as
  if the body had been `{"parameters": …}` with the saved parameters and
  your overrides: `/parameters/from` whether `from` was saved or sent.

- `errors[].span` · object · may be absent

  Where in a string a problem is: the characters from `start` up to, not including,
  `end`, counting from 0. Characters are Unicode code points, as `maxLength` counts
  them, so `低空经济` is four; a program that marks text in another unit converts, such
  as a browser, whose strings count a character outside the Basic Multilingual Plane
  as two. Equal `start` and `end` mark the place where something is missing, such as
  the end of a term that stops after `&&`.

- `errors[].span.start` · integer, at least 0

- `errors[].span.end` · integer, at least 0

- `errors[].detail` · string

- `earliestFrom` · string, up to 128 characters · may be absent

  For [`range-not-entitled`](/docs/v1/problems/range-not-entitled.md), the earliest `from` your organization may use, as an
  instant expression such as `now-1y` or `1900-01-01`.

- `latestTo` · string, up to 128 characters · may be absent

  For [`range-not-entitled`](/docs/v1/problems/range-not-entitled.md), the latest `to` your organization may use, as an
  instant expression such as `3000-01-01`.

- `server` · string · may be absent

  For [`tier-served-elsewhere`](/docs/v1/problems/tier-served-elsewhere.md), the server of this API that your account may use,
  one of `servers`, such as `https://sandbox.api.reconnectchina.org`.

### Example responses

200 · Sent on 2026-10-03

```json
{
  "term": "低空经济 || \"low-altitude economy\"",
  "strategy": "body",
  "typeIn": [
    "law/decree",
    "regulation",
    "notice/announcement",
    "opinion/plan"
  ],
  "from": "2026-08-31T22:00:00Z",
  "to": "2026-09-30T22:00:00Z",
  "dateField": "date",
  "pageSize": 10,
  "histograms": {
    "time": {
      "timeZone": "Europe/Berlin"
    }
  }
}
```

400 · No \`strategy\` with \`term\`, and an unknown level

```json
{
  "detail": "The request is not valid in 2 places; `errors` says where.",
  "errors": [
    {
      "detail": "\"strategy\" is a required property",
      "pointer": ""
    },
    {
      "detail": "value is not one of \"centre\", \"provinces\" or 2 other candidates",
      "pointer": "/levelIn/0"
    }
  ],
  "status": 400,
  "title": "Invalid request",
  "type": "https://api.reconnectchina.org/docs/v1/problems/invalid-request"
}
```

400 · A saved search's name with a space in it

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request is not valid; `errors` says where.",
  "errors": [
    {
      "detail": "A saved search's name is 1 to 64 letters, combining marks, digits, `_` and `-`.",
      "parameter": "name"
    }
  ]
}
```

400 · A term with two mistakes: \`低空经济 && )\`

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request is not valid in 2 places; `errors` says where.",
  "errors": [
    {
      "detail": "`&&` needs a term on each side.",
      "pointer": "/term",
      "span": {
        "start": 5,
        "end": 7
      }
    },
    {
      "detail": "This `)` closes no `(`.",
      "pointer": "/term",
      "span": {
        "start": 8,
        "end": 9
      }
    }
  ]
}
```

400 · A \`from\` of \`2026-13-01\`, which has no month 13

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request is not valid; `errors` says where.",
  "errors": [
    {
      "detail": "`13` is not a valid month.",
      "pointer": "/from",
      "span": {
        "start": 5,
        "end": 7
      }
    }
  ]
}
```

401 · No access token

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/unauthenticated",
  "title": "Unauthenticated",
  "status": 401,
  "detail": "The request carries no access token."
}
```

403 · \`from\` further back than the agreement allows

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/range-not-entitled",
  "title": "Range not entitled",
  "status": 403,
  "detail": "`from` reaches further back than your organization's agreement allows. The earliest `from` it allows is `now-1y`.",
  "earliestFrom": "now-1y",
  "latestTo": "3000-01-01",
  "errors": [
    {
      "detail": "The earliest `from` your organization's agreement allows is `now-1y`.",
      "pointer": "/from"
    }
  ]
}
```

403 · \`from\` further back and \`to\` further ahead than the agreement allows

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/range-not-entitled",
  "title": "Range not entitled",
  "status": 403,
  "detail": "The search reaches further than your organization's agreement allows at both ends; `errors` says where.",
  "earliestFrom": "now-1y",
  "latestTo": "now+1y",
  "errors": [
    {
      "detail": "The earliest `from` your organization's agreement allows is `now-1y`.",
      "pointer": "/from"
    },
    {
      "detail": "The latest `to` your organization's agreement allows is `now+1y`.",
      "pointer": "/to"
    }
  ]
}
```

403 · An organization with sandbox access only, on production

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/tier-served-elsewhere",
  "title": "Served elsewhere",
  "status": 403,
  "detail": "Your organization's access is to https://sandbox.api.reconnectchina.org, not to this server.",
  "server": "https://sandbox.api.reconnectchina.org"
}
```

403 · An account whose application is still under review

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/no-organization",
  "title": "No organization",
  "status": 403,
  "detail": "Your account belongs to no organization."
}
```

413 · A body over the limit

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/payload-too-large",
  "title": "Payload too large",
  "status": 413,
  "detail": "The request body is too large."
}
```

415 · A body without \`Content-Type: application/json\`

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/unsupported-media-type",
  "title": "Unsupported media type",
  "status": 415,
  "detail": "The request body has to be JSON, sent as `Content-Type: application/json`."
}
```

429 · Too many requests from one address

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/rate-limited",
  "title": "Rate limited",
  "status": 429,
  "detail": "This address has sent too many requests."
}
```

431 · Headers over the limit

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/headers-too-large",
  "title": "Headers too large",
  "status": 431,
  "detail": "The request's headers are too large."
}
```

503 · The API cannot take the request now

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/unavailable",
  "title": "Unavailable",
  "status": 503,
  "detail": "The API cannot take this request at the moment."
}
```

default · An error on our side

```json
{
  "type": "https://api.reconnectchina.org/docs/v1/problems/internal",
  "title": "Internal error",
  "status": 500,
  "detail": "The request could not be processed."
}
```
