#!name=小红书 #!desc=2026-11-22 12:48:58 [Rule] DOMAIN,apm-fe.xiaohongshu.com,REJECT,pre-matching DOMAIN,apm-native.xiaohongshu.com,REJECT,pre-matching DOMAIN,lng.xiaohongshu.com,REJECT,pre-matching DOMAIN,spider-tracker.xiaohongshu.com,REJECT,pre-matching DOMAIN,t2.xiaohongshu.com,REJECT,pre-matching DOMAIN,t3.xiaohongshu.com,REJECT,pre-matching DOMAIN-SUFFIX,miaozhen.com,REJECT,pre-matching DOMAIN-WILDCARD,ads-*.xhscdn.com,REJECT,pre-matching AND,((PROTOCOL,QUIC),(DOMAIN-SUFFIX,xiaohongshu.com)),REJECT-NO-DROP [URL Rewrite] ^https?:\/\/edith\.xiaohongshu\.com\/api\/ads\/material\/guide\? - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/marketing\/box\/trigger\? - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/marketing\/box_trigger\/goods_search - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/marketing\/execution_strategy\/ - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/marketing\/get_fixed_banner_of_benefits_claim$ - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/guide\/user_banner$ - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/surprisebox\/(?:get_style|open|submit_action) - reject-dict ^https?:\/\/edith\.xiaohongshu\.com\/api\/usergrowth\/mallbanner$ - reject-dict ^https?:\/\/referee\.xiaohongshu\.com\/v\d+\/stateReport$ - reject ^https?:\/\/referee\.xiaohongshu\.com\/v\d+\/third\/collect$ - reject ^https?:\/\/www\.xiaohongshu\.com\/api\/sns\/v\d+\/ads\/apple\/record$ - reject [Body Rewrite] http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/homefeed\? 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((((.model_type? // "") | tostring) | test("^live")) | not))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/homefeed\? 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((has("ads_info")|not) and ((.is_ads? // false) != true) and (((.recommend.track_id | type) == "string" and (.recommend.track_id | test("pgy"; "i"))) | not)))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/homefeed\? 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((if (.note_attributes|type)=="array" then [.note_attributes[] | select((.|type)=="string" and test("(goods|cooperate|pgy)"; "i"))] | length else 0 end) == 0))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/localfeed\? 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((has("ads_info")|not) and ((.is_ads? // false) != true)))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/localfeed\? 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((if (.note_attributes|type)=="array" then [.note_attributes[] | select((.|type)=="string" and test("(goods|cooperate|pgy)"; "i"))] | length else 0 end) == 0))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/videofeed(?:\?|$) 'if type=="object" and (.data|type)=="array" then .data |= map(if (.|type)=="object" then del(.illegal_info, .note_statement) else . end) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/videofeed(?:\?|$) 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((((.model_type? // "") | tostring) | test("^live")) | not))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/videofeed(?:\?|$) 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((has("ad") or has("order_cooperate")) | not))) else . end' http-response-jq ^https?:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/videofeed(?:\?|$) 'if type=="object" and (.data|type)=="array" then .data |= map(select((.|type)!="object" or ((if (.note_attributes|type)=="array" then [.note_attributes[] | select((.|type)=="string" and test("(goods|cooperate|pgy)"; "i"))] | length else 0 end) == 0))) else . end' http-response-jq ^https?:\/\/(?:live-room|live-mall)\.xiaohongshu\.com\/api\/sns\/red\/livemall\/app\/widgets\/v\d+\/all_widgets_info\? 'if type=="object" and (.data|type)=="object" and (.data.areas|type)=="array" then .data.areas |= map(if (.|type)=="object" and (.widgets|type)=="array" then .widgets |= map(select((.|type)!="object" or (((.widget_code? // "" | tostring) | test("COUPON|LOTTERY|RED_PACKET|MARKETING"; "i")) | not))) else . end) else . end' http-response-jq ^https?:\/\/(?:so|edith)\.xiaohongshu\.com\/api\/sns\/v\d+\/search\/notes\? 'if type=="object" and (.data|type)=="object" and (.data.items|type)=="array" then .data.items |= map(select((.|type)=="object" and .model_type? == "note" and ((if (.note.note_attributes|type)=="array" then [.note.note_attributes[] | select((.|type)=="string" and test("(goods|cooperate|pgy)"; "i"))] | length else 0 end) == 0))) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/im\/v\d+\/get_banner_list$ 'if type=="object" and (.data|type)=="object" then setpath(["data","banner_info_list"]; []) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/ads\/resource\? 'if type=="object" and (.data|type)=="array" then setpath(["data"]; []) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/content\/frame_config\? 'delpaths([["data","left_sidebar"]])' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/content\/video\/get_ads_info\? 'if type=="object" and (.data|type)=="object" then setpath(["data"]; {}) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/user\/posted\? 'if type=="object" and (.data|type)=="object" and (.data.notes|type)=="array" then .data.notes |= map(select((.|type)!="object" or ((if (.note_attributes|type)=="array" then [.note_attributes[] | select((.|type)=="string" and test("(goods|cooperate|pgy)"; "i"))] | length else 0 end) == 0))) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/widgets$ 'if type=="object" and (.data|type)=="object" and .data.second_jump_bar.type=="ads" then delpaths([["data","second_jump_bar"]]) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/widgets$ 'if type=="object" and (.data|type)=="object" then delpaths([["data","goods_card_comment_guide"],["data","goods_comment_section_card"],["data","generic","pin_search_highlights"],["data","widget_list"],["data","widget_summary"],["data","widgets_nbb"],["data","widgets_ncb"]]) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/note\/widgets$ 'walk(if type=="object" then with_entries(select(.key | test("^(pgy|ads|cooperate)_comment_component$") | not)) else . end)' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/recommend\/user\/follow_recommend\? 'if type=="object" and (.data|type)=="object" and (.data.rec_users|type)=="array" and (.data.rec_users|length)>0 then setpath(["data"]; {}) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/search\/trending\? 'if type=="object" and (.data|type)=="object" and (.data.data|type)=="object" then .data.data |= with_entries(select(.key | IN("title","type","queries","hint_word","word_request_id"))) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/search\/trending\? 'if type=="object" and (.data|type)=="object" then .data |= with_entries(select(.key | IN("data","show_line_cnt","template_info","data_id"))) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/system\/service\/ui\/config\? 'def keep: ["sidebar_config_cart","sidebar_config_creator_center_profile","sidebar_config_draft","sidebar_config_download_profilepage","sidebar_config_order","sidebar_config_scan","sidebar_config_setting","sidebar_config_wallet"]; def prune: reduce .[] as $x ({out: [], sep: false}; if ($x | IN(keep[])) then ((.out += (if .sep then ["sidebar_config_divider"] else [] end) + [$x]) | .sep = false) elif $x == "sidebar_config_divider" then .sep = ((.out|length) > 0) else . end) | .out; if type=="object" and (.data|type)=="object" and (.data.sideConfigPersonalPage|type)=="object" then .data.sideConfigPersonalPage |= ((if (.componentConfig|type)=="object" then .componentConfig |= with_entries(select((.key | IN(keep[])) or (.key == "sidebar_config_divider"))) else . end) | (if (.hierarchy|type)=="object" and (.hierarchy.structure|type)=="object" then ((if (.hierarchy.structure.body|type)=="array" then .hierarchy.structure.body |= prune else . end) | (if (.hierarchy.structure.footer|type)=="array" then .hierarchy.structure.footer |= prune else . end)) else . end)) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/system_service\/config\? 'if type=="object" and (.data|type)=="object" then delpaths([["data","loading_img"],["data","splash"],["data","store"],["data","home_banner"],["data","home_top_banner"],["data","my_banner"],["data","setting_banner"]]) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/system_service\/splash_config$ 'if type=="object" and (.data|type)=="object" then (setpath(["data","ads_groups"]; []) | setpath(["data","bidding_ads"]; [])) else . end' http-response-jq ^https?:\/\/edith\.xiaohongshu\.com\/api\/usergrowth\/task\/query$ 'if (.data.taskDetailList|type)=="array" then .data.taskDetailList |= map(if (.terminalConfig|type)=="string" then .terminalConfig |= (fromjson | if type=="object" then del(.reminder) else . end | tojson) else . end) else . end' http-response-jq ^https?:\/\/live-go\.xiaohongshu\.com\/api\/sns\/red\/live\/app\/v\d+\/ecology\/inform_card\/active_card\? 'if type=="object" and (.data|type)=="object" then setpath(["data","inform_cards"]; []) else . end' http-response-jq ^https?:\/\/live-mall\.xiaohongshu\.com\/api\/sns\/red\/live\/rank\/entrance\/list\? 'if type=="object" and (.data|type)=="object" then setpath(["data","entrances"]; []) else . end' http-response-jq ^https?:\/\/live-mall\.xiaohongshu\.com\/api\/sns\/red\/livemall\/app\/marketing\/get_config\? 'if type=="object" and (.data|type)=="object" then delpaths([["data","coupon_config"],["data","flash_buy"]]) else . end' http-response-jq ^https?:\/\/live-room\.xiaohongshu\.com\/api\/sns\/v\d+\/live\/feed\/waterfall$ 'if type=="object" and (.data|type)=="object" and (.data.feeds|type)=="array" then .data.feeds |= map(select((.|type)!="object" or (((.ads_live? // false) != true) and ((.ads_info? // "{}") == "{}")))) else . end' http-response-jq ^https?:\/\/rec\.xiaohongshu\.com\/api\/sns\/v\d+\/user\/followings\/dualfeed\? 'if type=="object" and (.data|type)=="object" and (.data.note_infos|type)=="array" then .data.note_infos |= map(select((.|type)!="object" or (((((.type? // "") | tostring) | test("^live")) or ((.live|type)=="object" and (.live|length)>0)) | not))) else . end' http-response-jq ^https?:\/\/search\.xiaohongshu\.com\/api\/search\/fls\/placeholder\? 'if type=="object" and (.data|type)=="object" then setpath(["data","placeholder"]; []) else . end' http-response-jq ^https?:\/\/so\.xiaohongshu\.com\/api\/sns\/v\d+\/search\/recommend\? 'if type=="object" and (.data|type)=="object" then setpath(["data","items"]; []) else . end' http-response-jq ^https?:\/\/www\.xiaohongshu\.com\/api\/sns\/v\d+\/tag\/ads_engage$ 'if type=="object" and (.data|type)=="object" then delpaths([["data","default_img_list"]]) else . end' http-response-jq ^https?:\/\/www\.xiaohongshu\.com\/api\/store\/jpd\/edith\/native\/payment_marketing$ 'if type=="object" and (.data|type)=="object" then setpath(["data"]; {}) else . end' [MITM] hostname = %APPEND% edith.xiaohongshu.com,live-go.xiaohongshu.com,live-mall.xiaohongshu.com,live-room.xiaohongshu.com,rec.xiaohongshu.com,referee.xiaohongshu.com,search.xiaohongshu.com,so.xiaohongshu.com,www.xiaohongshu.com