Soulay commited on
Commit
0ae0efc
·
1 Parent(s): 0858390

third commit

Browse files
Files changed (3) hide show
  1. app.py +63 -10
  2. cbp_pages.jsonl +1 -0
  3. requirements.txt +1 -5
app.py CHANGED
@@ -166,6 +166,35 @@ from collections import Counter
166
 
167
  _TOKEN_RE = re.compile(r"[a-z0-9]+")
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
  def _tokenize(text: str) -> list[str]:
171
  """Lowercase, extract alphanumeric tokens, drop stopwords & short tokens."""
@@ -194,6 +223,7 @@ def load_cbp_chunks_index() -> dict:
194
  lens: list[int] = []
195
  doc_freq: Counter = Counter()
196
 
 
197
  with path.open(encoding="utf-8") as fh:
198
  for line in fh:
199
  line = line.strip()
@@ -203,6 +233,9 @@ def load_cbp_chunks_index() -> dict:
203
  rec = json.loads(line)
204
  except json.JSONDecodeError:
205
  continue
 
 
 
206
  text = rec.get("text", "")
207
  tokens = _tokenize(text)
208
  title_tokens = set(_tokenize(rec.get("title", "")))
@@ -228,6 +261,7 @@ def load_cbp_chunks_index() -> dict:
228
  "N": N,
229
  "avg_len": avg_len,
230
  "lens": lens,
 
231
  }
232
 
233
 
@@ -290,17 +324,23 @@ def search_cbp_chunks(
290
  if parent in seen_parents:
291
  continue
292
  seen_parents.add(parent)
293
- # Compact chunk excerpt keep ~600 chars max to limit prompt size
294
- excerpt = (chunk.get("text") or "").strip().replace("\n", " ")
295
- if len(excerpt) > 600:
296
- excerpt = excerpt[:600].rsplit(" ", 1)[0] + "…"
 
 
 
 
 
297
  results.append({
298
  "title": chunk.get("title", ""),
299
  "url": chunk.get("url", ""),
300
  "section": chunk.get("section", ""),
301
  "page_type": chunk.get("page_type", ""),
302
  "published_date": chunk.get("published_date", ""),
303
- "excerpt": excerpt,
 
304
  "score": round(score, 2),
305
  "chunk_id": chunk.get("chunk_id", ""),
306
  })
@@ -1002,14 +1042,27 @@ def render_response(answer: str, mode: str, payload: dict, news_items: list[dict
1002
  st.markdown("---")
1003
 
1004
  if payload.get("chunks"):
1005
- with st.expander(f"📚 CBP knowledge base excerpts ({len(payload['chunks'])})"):
 
 
 
 
1006
  for c in payload["chunks"]:
 
 
 
 
 
 
 
 
1007
  st.markdown(
1008
- f"**[{c['title']}]({c['url']})** \n"
1009
- f"_section: {c['section']} · type: {c['page_type']} · "
1010
- f"relevance: {c['score']}_ \n"
1011
- f"> {c['excerpt']}"
1012
  )
 
1013
  st.markdown("---")
1014
 
1015
  if payload.get("news"):
 
166
 
167
  _TOKEN_RE = re.compile(r"[a-z0-9]+")
168
 
169
+ # Page-title patterns for low-value index/listing pages we want to exclude
170
+ # from the RAG corpus. These pages are just lists of references (FR numbers,
171
+ # bulletin titles, etc.) and don't contain substantive guidance text.
172
+ _NOISE_TITLE_PATTERNS = (
173
+ "Federal Register Notices",
174
+ "Customs Bulletin and Decisions",
175
+ "Notices of Action",
176
+ "Quota Bulletins",
177
+ "CBP Trade-Related",
178
+ )
179
+
180
+
181
+ def _is_noise_chunk(rec: dict) -> bool:
182
+ """Heuristic: skip chunks from low-information index/listing pages.
183
+
184
+ A chunk is considered noise if:
185
+ - its page title matches one of the index-page patterns, OR
186
+ - the text is dominated by Federal Register references (e.g. "85 FR 15714")
187
+ — more than 4 such references signals a list page.
188
+ """
189
+ title = rec.get("title", "") or ""
190
+ if any(pat in title for pat in _NOISE_TITLE_PATTERNS):
191
+ return True
192
+ text = rec.get("text", "") or ""
193
+ fr_refs = re.findall(r"\b\d{2,3}\s+FR\s+\d{4,6}\b", text)
194
+ if len(fr_refs) >= 4:
195
+ return True
196
+ return False
197
+
198
 
199
  def _tokenize(text: str) -> list[str]:
200
  """Lowercase, extract alphanumeric tokens, drop stopwords & short tokens."""
 
223
  lens: list[int] = []
224
  doc_freq: Counter = Counter()
225
 
226
+ skipped_noise = 0
227
  with path.open(encoding="utf-8") as fh:
228
  for line in fh:
229
  line = line.strip()
 
233
  rec = json.loads(line)
234
  except json.JSONDecodeError:
235
  continue
236
+ if _is_noise_chunk(rec):
237
+ skipped_noise += 1
238
+ continue
239
  text = rec.get("text", "")
240
  tokens = _tokenize(text)
241
  title_tokens = set(_tokenize(rec.get("title", "")))
 
261
  "N": N,
262
  "avg_len": avg_len,
263
  "lens": lens,
264
+ "skipped_noise": skipped_noise,
265
  }
266
 
267
 
 
324
  if parent in seen_parents:
325
  continue
326
  seen_parents.add(parent)
327
+ # Keep the full chunk text for inline display, plus a shorter excerpt
328
+ # for prompt injection (LLM context budget).
329
+ full_text = (chunk.get("text") or "").strip().replace("\n", " ")
330
+ # Collapse repeated whitespace
331
+ full_text = re.sub(r"\s+", " ", full_text)
332
+ if len(full_text) > 700:
333
+ excerpt = full_text[:700].rsplit(" ", 1)[0] + "…"
334
+ else:
335
+ excerpt = full_text
336
  results.append({
337
  "title": chunk.get("title", ""),
338
  "url": chunk.get("url", ""),
339
  "section": chunk.get("section", ""),
340
  "page_type": chunk.get("page_type", ""),
341
  "published_date": chunk.get("published_date", ""),
342
+ "excerpt": excerpt, # short — used in prompt
343
+ "full_text": full_text, # full — shown in UI
344
  "score": round(score, 2),
345
  "chunk_id": chunk.get("chunk_id", ""),
346
  })
 
1042
  st.markdown("---")
1043
 
1044
  if payload.get("chunks"):
1045
+ with st.expander(f"📚 CBP knowledge base excerpts ({len(payload['chunks'])})", expanded=True):
1046
+ st.caption(
1047
+ "Full text from the most relevant CBP pages — no need to click out. "
1048
+ "The link goes to the original source page on cbp.gov."
1049
+ )
1050
  for c in payload["chunks"]:
1051
+ published = c.get("published_date", "")
1052
+ meta = f"section: {c['section']} · type: {c['page_type']} · relevance: {c['score']}"
1053
+ if published:
1054
+ meta += f" · {published}"
1055
+ st.markdown(f"**{c['title']}** \n_{meta}_")
1056
+ full = c.get("full_text") or c.get("excerpt", "")
1057
+ import html as _html
1058
+ safe = _html.escape(full)
1059
  st.markdown(
1060
+ f"<div style='background:#f6f8fa;padding:12px;border-left:4px solid #4a90e2;"
1061
+ f"border-radius:4px;font-size:0.92em;line-height:1.5;white-space:pre-wrap'>"
1062
+ f"{safe}</div>",
1063
+ unsafe_allow_html=True,
1064
  )
1065
+ st.markdown(f"🔗 [View original page on cbp.gov]({c['url']})")
1066
  st.markdown("---")
1067
 
1068
  if payload.get("news"):
cbp_pages.jsonl CHANGED
@@ -1,3 +1,4 @@
 
1
  {"id": "trade", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Trade", "url": "https://www.cbp.gov/trade", "retrieved_at": "2026-05-15T16:20:45.969356Z", "published_date": "Last Modified: May 11, 2026", "topics": [], "text": "Home Trade Trade New IEEPA Duty Refunds Webpage Understand how IEEPA refunds work and what steps to take. Review the latest information Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Vehicles CBP Trade facilitates legitimate trade, enforces law, and protects the American economy to ensure consumer safety and to create a level playing field for American businesses. U.S. Customs and Border Protection (CBP) is developing the Consolidated Administration and Processing of Entries (CAPE) functionality within the Automated Commercial Environment (ACE) to streamline the submission and processing of valid refund requests for duties imposed under the International Emergency Economic Powers Act (IEEPA), as authorized by court order or applicable law. For the latest guidance on eligibility, how to file through the CAPE system, and ACH enrollment requirements, visit our IEEPA Duty Refunds page. IEEPA Duty Refunds The rise of e-commerce and the de minimis exemption have fundamentally changed global supply chains. Learn how CBP is addressing the challenges associated with the high volume of small packages entering the U.S. E-Commerce Homepage E-Commerce FAQs CBP is responsible for preventing the entry of products made with forced labor into the U.S. market by investigating and acting upon allegations of forced labor in supply chains. Forced Labor Enforcement Congress passed the Enforce and Protect Act, or EAPA, in February 2016, as a part of the Trade Facilitation and Trade Enforcement Act (TFTEA) of 2015. While the overall objective of TFTEA was to ensure a fair and competitive trade environment, the EAPA legislation specifically was intended to improve trade law enforcement and duty collection for antidumping and countervailing duty orders. EAPA Homepage Data summarizing CBP's revenue collection efforts, implementation of the recent trade remedies taken pursuant to Section 232 of the Trade Expansion Act of 1962 and Sections 201 and 301 of the Trade Act of 1974, and trade enforcement actions. Trade Statistics For the Trade Community AD/CVD Scam Alert Did You Receive an Email Offering a \"Solution\" to Avoid Antidumping Duties? This is a violation of U.S. Law. CBP Trade Enforcement - Operational Approach U.S. Customs and Border Protection (CBP) is committed to protecting national economic security by enforcing U.S. trade laws through its Trade Enforcement efforts. The CBP Trade Enforcement Operational Approach demonstrates how CBP is using all of its authorities to combat trade fraud by DETECTING high-risk activity, DETERRING non-compliance, and DISRUPTING fraudulent behavior. CBP will use all methods at its disposal—including increased bonding, enhanced targeting and inspection of high-risk imports, and swift and thorough review of allegations to ensure a fair and competitive trade environment. Top Import/Export Topics Search Customs Rulings (CROSS) Customs Trade Partnership Against Terrorism (CTPAT) Customs Broker Information Trade Remedies (Section 201, 232, 301) Customs Bonded Facilities (FIRMS Code) Automated Commercial Environment (ACE) Importer Security Filing (ISF) Cargo Systems Messaging Service (CSMS) Informed Compliance Publications Locate a Port of Entry View More Trade Topics Locate Port Information CBP provides security and facilitation operations at 328 ports of entry throughout the country. Use this interactive map to find information specific to air, sea and land entries. Locate a Port of Entry Last Modified: May 11, 2026 Related Resources Centers of Excellence and Expertise Centers Information Contact Your Center Contact Information Trade Violation Reporting Report suspected criminal or illegal activity, trade violations and evasion violations (via the Enforce and Protect Act). Visit the Site Latest CBP Trade News May 11, 2026 | Local Media Release Louisville CBP intercepts over $14 million in counterfeit jewelry April 9, 2026 | Local Media Release Over $9 million in counterfeit jewelry stopped by Louisville CBP April 9, 2026 | National Media Release Trump administration delivers 11 straight months of zero releases at the border Show Me More News Questions? Find answers at the CBP Info Center. Top Travel Topics Top Import/Export Topics", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
2
  {"id": "trade_basic_import_export", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Basic Importing and Exporting", "url": "https://www.cbp.gov/trade/basic-import-export", "retrieved_at": "2026-05-15T16:20:49.829255Z", "published_date": "Last Modified: Feb 10, 2026", "topics": [], "text": "Home Trade Basic Importing and Exporting Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Basic Importing and Exporting Both CBP and the importing/exporting community have a shared responsibility to maximize compliance with laws and regulations. In carrying out this task, CBP encourages importers/exporters to become familiar with applicable laws and regulations and work together with the CBP Office of Trade to protect American consumers from harmful and counterfeit imports by ensuring the goods that enter the U.S. marketplace are genuine, safe, and lawfully sourced.​​​​​​ The information on this page promotes the understanding of this responsibility, as there may be specific requirements related to a particular commodity, such as those set by Partner Government Agencies (PGA). Tips for New Importers and Exporters Close all Open all Importing Video: Introduction to the CBP Import Process Importing Into the United States Centers of Excellence and Expertise E-commerce E-Commerce and Section 321 Shipments - Section 321(a)(2)(C) of the Tariff Act of 1930, as amended, authorizes CBP to provide an administrative from duty and tax shipments of qualified imports of not more than $800 fair retail value. This exemption is known as a de minimis entry. CBP has implemented two new test programs to monitor Section 321 shipments in the e-commerce environment to protect against illegitimate trade while providing the public the benefits of duty free shipments for qualified imports. To learn more about these programs, select program overview. Non-Resident, Returning Military and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Importing a Motor Vehicle Foreign Trade Zones In-Bond Regulatory Changes Frequently Asked Questions Importing Biological Materials Exporting Export Licenses Exporting a Motor Vehicle Changes to the Foreign Trade Regulations Export Requirements Department of State Import and Export Filings for Licenses and License Exemptions Introduction To U.S. Export Controls for the Commercial Space Industry Processing User Fee, Transponder, and Decal Information *NOTICE* The optional shipping methods for Canada and Mexico have changed CBP Procedures to Investigate Trade Related Allegations Enforce and Protect Act information Federal Register Notice Interim Final Rule (IFR) providing procedures for filing allegations Duties, Taxes, and Fees This webpage provides useful information about how to pay CBP duties, taxes, and fees. This page will be updated periodically to reflect changes in policy. Fees Information Air/Sea Passenger User Fees and Railroad Car Fee Customs Broker Fees Decal and Transponder Online Procurement System (DTOPS) User Fee, Transponder, and Decal Information User Fee Table Payment Guidance Acceptable Electronic Payment Methods ACE Periodic Monthly Statements Fact Sheet Automated Clearinghouse (ACH) Payment Mailing Addresses Periodic Monthly Statement and Bill Payments Failure to make a payment or provide legal justification of non-payment may result in suspension of immediate release privileges in accordance with 19 CFR 142.26 . If payment is not received by CBP on or before the late payment date appearing on the bill, interest charges will be assessed upon the delinquent principal amount of the bill in accordance with 19 CFR 24.3a . Last Modified: Feb 10, 2026 Related Resources Cargo Security and Examinations Kimberley Process Certification Scheme AES Quick Reference Guide Locate Port Information CBP provides security and facilitation operations at 328 main ports of entry throughout the U.S. Locate a Port of Entry", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
3
  {"id": "trade_basic_import_export_importer_exporter_tips", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Tips for New Importers and Exporters", "url": "https://www.cbp.gov/trade/basic-import-export/importer-exporter-tips", "retrieved_at": "2026-05-15T16:20:53.729807Z", "published_date": "Last Modified: Aug 27, 2024", "topics": [], "text": "Home Trade Basic Importing and Exporting Tips For New Importers and Exporters Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Tips for New Importers and Exporters In order to avoid potential problems in the clearance of your merchandise, U.S. Customs and Border Protection (CBP) strongly recommends that you familiarize yourself with CBP policies and procedures prior to actually importing/exporting your goods. You should also be aware of any entry requirements specific to the particular commodity you are importing/exporting, including those of other federal agencies. To assist you, we offer the following tips for new importers and exporters. What kind of license is required to import merchandise into the United States? CBP does not require an importer to have a license or permit, but other agencies may require a permit, license, or other certification, depending on the commodity that is being imported. CBP acts in an administrative capacity for these other agencies, and you may wish to contact them directly for more information. You can find links to other government agencies and departments at USA.gov. There is a listing of other government agencies in the appendix section of the publication Importing Into the United States . You may also need a license from local or state authorities to do business. CBP entry forms do ask for your importer number: this is either your IRS business registration number, or if your business is not registered with the IRS or you do not have a business, your social security number will be sufficient. As an alternative, you may request a CBP assigned number by completing a CBP Form 5106 and presenting it to the Entry Branch at a CBP port of entry. The CBP website contains valuable information for the new or experienced importer. We recommend that importers review the topics on the CBP Trade page. In particular, we suggest viewing the information contained in the section titled Basic Importing and Exporting . There are many topic-specific links to explore. This will lead you to information on CBP import requirements, arrival of goods, formal entry vs. informal entry, classification, protest, mail shipments, restricted merchandise and more. For other agency requirements you may need to meet, and if you become a frequent importer with higher valued shipments, we recommend you read Importing into the United States . This publication contains more in-depth information and is valuable reading for anyone seriously venturing into the importing business. We also urge you to read the Informed Compliance Publications . CBP has prepared a number of Informed Compliance Publications (ICPs) in the \"What Every Member of the Trade Community Should Know About...\" series on a variety issues. If your business will cause you to travel in and out of the country, we recommend that you review the traveler information in the Know Before You Go . Prior to importing, you may contact the CBP office at the port of entry where your merchandise will enter the United States A complete directory of the various ports of entry can be found on this website. If you are unsure of or haven't decided the port where your shipment will arrive, or you are looking at importing through multiple ports, you may contact a service port of entry near you. Ask to speak with a CBP import specialist assigned to the commodity you are importing. Import specialists are a valuable resource for commodity specific knowledge and can provide classification advice, commodity specific requirements, advisory duty rates, and respond to questions you may have about filing an entry. At many ports, entry specialists handle questions regarding entry filing. Entry specialists work closely with import specialists and provide the technical processing expertise required to file the necessary paperwork. When calling the port, the importer should be able to provide as much detail regarding the transaction as possible. In order for the import specialist to best assist you, it is important you be able to exactly describe the merchandise you are planning to import. In order for the import specialist to best assist you, you should provide a full and complete description of the article and answer specific questions such as: 1) the country of origin of the merchandise and manufacturer; 2) the composition of the merchandise; 3) the intended use of the item; and 4) pricing/payment information (in order to properly determine the value of the shipment). For more information on the classification of merchandise, consult the Harmonized Tariff Schedule (HTS) which contains the actual HTS number and tariff classification guidelines that explain how to properly classify merchandise. Importers can request a written ruling from CBP for the proper HTSUS classification and rate of duty for their merchandise. For information on CBP ruling letters, review What are Ruling Letters . When requesting a binding ruling, importers should follow the procedures outlined in Part 177 of the Customs Regulations (19 C.F.R. 177). Research the results of previous ruling requests by using the Customs Rulings Online Search System (CROSS). CBP may have already issued rulings on products similar to yours that you can use for guidance. CROSS also addresses other issues such as value, country of origin marking, and applicability of trade preference programs. The CROSS database is searchable by key word. The CBP Website also contains valuable information regarding exporting. If your future plans call for exporting merchandise from the U.S., you should review the information found in the Export section of this website . Although CBP enforces many export regulations for various other government agencies, specific questions pertaining to licensing requirements for a particular commodity should be directed to that lead agency. Other agency contact information as well as commodities that may require export licenses, can be obtained by visiting the U.S. Department of Commerce, Bureau of Industry and Security Web sites. Questions regarding export licenses may also be directed to CBP officers at the port where the merchandise will exit the country. Another resource is the Department of Commerce's Trade Information Center which you can call 1-800-USA Trade or visit their website Export.gov . Although certain resident importers and exporters may file entries on their own behalf, many first time importers and exporters consult a licensed customs broker. Those importing merchandise for their own use often hire a customs broker, particularly if they find the importing procedures complicated; however, they may make entry on their own. Importers wishing to consult the professional services of a Customs broker may do so. Customs brokers are licensed by CBP, but are not CBP employees. To view a list of customs brokers licensed to conduct CBP business in a specific port, select the Port you expect to use. Many service port pages have a list of customs brokers. Please note these lists may not be all inclusive and those brokers appearing on the list are not endorsed by CBP. There is also an Informed Compliance Publication about customs brokers . Remember, even when using a broker, you, the importer of record, are ultimately responsible for the correctness of the entry documentation presented to CBP and all applicable duties, taxes and fees. Importer Security Filing (ISF/\"10+2\") mandatory for ocean vessel shipments. On January 26, 2009, the new rule titled Importer Security Filing and Additional Carrier Requirements (commonly known as \"10+2\") went into effect. This new rule applies to import cargo arriving to the United States by vessel. Failure to comply with the new rule could ultimately result in monetary penalties, increased inspections and delay of cargo. What is an Importer Security Filing? Under the new rule, before merchandise arriving by vessel can be imported into the United States, the \"Importer Security Filing (ISF) Importer,\" or their agent (e.g., licensed customs broker), must electronically submit certain advance cargo information to CBP in the form of an Importer Security Filing. This requirement only applies to cargo arriving in the United States by ocean vessel: it does not apply to cargo arriving by other modes of transportation. Remember, even when using a broker, , the importer of record, is ultimately responsible for the correctness of the entry documentation presented to CBP and all applicable duties, taxes and fees. Where can I Find More Information? For more detailed information about the Importer Security Filing requirements, please see CBP's webpage on Importer Security Filing . You will find a link to Frequently Asked Questions and recordings of recently conducted ISF webinars for small to mediums entities. Additional assistance may be available from your licensed customs broker, freight forwarders, trade associations and local trade centers. You should research general quota information and quota requirements for certain commodities prior to importing into the United States. Import quotas control the amount or volume of various commodities that can be imported into the United States during a specified period of time. United States import quotas may be divided into two main types: absolute and tariff-rate. Absolute quotas usually apply to textiles and strictly limit the quantity of goods that may enter the commerce of the United States during a specific period. Currently there are no commodities subject to absolute quota restrictions. Tariff-rate quotas permit a specified quantity of imported merchandise to be entered at a reduced rate of duty during the quota period. Once a quota has been reached, goods may still be entered, but at a higher rate of duty. Quota information is available on the Quota page. This section contains links to information on subjects such as determining whether imported goods are subject to quota restraints. A Guide to Import Quotas provides additional quota information. Fill levels for agricultural quotas and textiles eligible for trade preference programs are tracked on the Commodity Status Report for Tariff Rate Quotas. General quota information and instructions for specific quotas are available to CBP field offices and the trade as Quota Book Transmittals . You may receive a bill if your shipment is examined by CBP. Under Title 19, section 1467, of the United States Code (19 U.S.C. 1467), CBP has a right to examine any shipment imported into the United States and it is important to know that you, the importer, must bear the cost of such cargo exams. Per the CBP regulations, it is the responsibility of the importer to make the goods available for examination-- \"The importer shall bear any expense involved in preparing the merchandise for CBP examination and in the closing of packages\" (19 C.F.R. 151.6). Household effects are not exempt. No distinction is made between commercial and personal shipments. In the course of normal operations, CBP does not charge for cargo examinations. However, there may still be costs involved for the importer. For example, if your shipment is selected for examination, it will generally be moved to a Centralized Examination Station (CES) for the CBP exam to take place. A CES is a privately operated facility where merchandise is made available to CBP officers for physical examination. The CES facility will unload (devan) your shipment from its shipping container and will reload it after the exam. The CES will bill you for their services. There are also costs associated with moving the cargo to and from the exam site and with storage. Rates will vary across the country and a complete devanning may cost several hundred dollars. The CES facility fulfills the needs of both CBP and the importer by providing an efficient means to conduct exams in a timely manner. CES facilities are discussed in part 118 of the Customs Regulations. Some information requested from CBP can only be provided through Freedom of Information Act (FOIA) procedures. When members of the trade community or individuals from the public request information from CBP, there are circumstances when the information being sought can be provided only if the request is pursuant to the provisions of the Freedom of Information Act (FOIA). The CBP Web site has a comprehensive explanation of the agency FOIA program , including background and general information about FOIA law, FOIA regulations, and specific instructions making a FOIA request. For general CBP inquiries, please call the CBP INFO Center Monday-Friday, between 8:30 a.m. and 5 p.m. Eastern Time. General Inquiries: (1-877) CBP-5511 International Callers: (202) 325-8000 TDD: (1-866) 880-6582 We recommend you first try to find the information you want by using the CBP INFO Center's FAQ tool. It has more than 500 answers about CBP policies and procedures. Last Modified: Aug 27, 2024 Questions? Find answers at the CBP Info Center. Top Travel Topics Top Import/Export Topics Top Import/Export Topics Search Customs Rulings (CROSS) Customs Trade Partnership Against Terrorism (CTPAT) Customs Broker Information Trade Remedies (Section 201, 232, 301) Customs Bonded Facilities (FIRMS Code) Automated Commercial Environment (ACE) Importer Security Filing (ISF) Cargo Systems Messaging Service (CSMS) Informed Compliance Publications Locate a Port of Entry View More Trade Topics Locate Port Information CBP provides security and facilitation operations at 328 main ports of entry throughout the U.S. Locate a Port of Entry Related Resources Centers of Excellence and Expertise Centers Information Contact Your Center Contact Information", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
 
1
+
2
  {"id": "trade", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Trade", "url": "https://www.cbp.gov/trade", "retrieved_at": "2026-05-15T16:20:45.969356Z", "published_date": "Last Modified: May 11, 2026", "topics": [], "text": "Home Trade Trade New IEEPA Duty Refunds Webpage Understand how IEEPA refunds work and what steps to take. Review the latest information Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Vehicles CBP Trade facilitates legitimate trade, enforces law, and protects the American economy to ensure consumer safety and to create a level playing field for American businesses. U.S. Customs and Border Protection (CBP) is developing the Consolidated Administration and Processing of Entries (CAPE) functionality within the Automated Commercial Environment (ACE) to streamline the submission and processing of valid refund requests for duties imposed under the International Emergency Economic Powers Act (IEEPA), as authorized by court order or applicable law. For the latest guidance on eligibility, how to file through the CAPE system, and ACH enrollment requirements, visit our IEEPA Duty Refunds page. IEEPA Duty Refunds The rise of e-commerce and the de minimis exemption have fundamentally changed global supply chains. Learn how CBP is addressing the challenges associated with the high volume of small packages entering the U.S. E-Commerce Homepage E-Commerce FAQs CBP is responsible for preventing the entry of products made with forced labor into the U.S. market by investigating and acting upon allegations of forced labor in supply chains. Forced Labor Enforcement Congress passed the Enforce and Protect Act, or EAPA, in February 2016, as a part of the Trade Facilitation and Trade Enforcement Act (TFTEA) of 2015. While the overall objective of TFTEA was to ensure a fair and competitive trade environment, the EAPA legislation specifically was intended to improve trade law enforcement and duty collection for antidumping and countervailing duty orders. EAPA Homepage Data summarizing CBP's revenue collection efforts, implementation of the recent trade remedies taken pursuant to Section 232 of the Trade Expansion Act of 1962 and Sections 201 and 301 of the Trade Act of 1974, and trade enforcement actions. Trade Statistics For the Trade Community AD/CVD Scam Alert Did You Receive an Email Offering a \"Solution\" to Avoid Antidumping Duties? This is a violation of U.S. Law. CBP Trade Enforcement - Operational Approach U.S. Customs and Border Protection (CBP) is committed to protecting national economic security by enforcing U.S. trade laws through its Trade Enforcement efforts. The CBP Trade Enforcement Operational Approach demonstrates how CBP is using all of its authorities to combat trade fraud by DETECTING high-risk activity, DETERRING non-compliance, and DISRUPTING fraudulent behavior. CBP will use all methods at its disposal—including increased bonding, enhanced targeting and inspection of high-risk imports, and swift and thorough review of allegations to ensure a fair and competitive trade environment. Top Import/Export Topics Search Customs Rulings (CROSS) Customs Trade Partnership Against Terrorism (CTPAT) Customs Broker Information Trade Remedies (Section 201, 232, 301) Customs Bonded Facilities (FIRMS Code) Automated Commercial Environment (ACE) Importer Security Filing (ISF) Cargo Systems Messaging Service (CSMS) Informed Compliance Publications Locate a Port of Entry View More Trade Topics Locate Port Information CBP provides security and facilitation operations at 328 ports of entry throughout the country. Use this interactive map to find information specific to air, sea and land entries. Locate a Port of Entry Last Modified: May 11, 2026 Related Resources Centers of Excellence and Expertise Centers Information Contact Your Center Contact Information Trade Violation Reporting Report suspected criminal or illegal activity, trade violations and evasion violations (via the Enforce and Protect Act). Visit the Site Latest CBP Trade News May 11, 2026 | Local Media Release Louisville CBP intercepts over $14 million in counterfeit jewelry April 9, 2026 | Local Media Release Over $9 million in counterfeit jewelry stopped by Louisville CBP April 9, 2026 | National Media Release Trump administration delivers 11 straight months of zero releases at the border Show Me More News Questions? Find answers at the CBP Info Center. Top Travel Topics Top Import/Export Topics", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
3
  {"id": "trade_basic_import_export", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Basic Importing and Exporting", "url": "https://www.cbp.gov/trade/basic-import-export", "retrieved_at": "2026-05-15T16:20:49.829255Z", "published_date": "Last Modified: Feb 10, 2026", "topics": [], "text": "Home Trade Basic Importing and Exporting Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Basic Importing and Exporting Both CBP and the importing/exporting community have a shared responsibility to maximize compliance with laws and regulations. In carrying out this task, CBP encourages importers/exporters to become familiar with applicable laws and regulations and work together with the CBP Office of Trade to protect American consumers from harmful and counterfeit imports by ensuring the goods that enter the U.S. marketplace are genuine, safe, and lawfully sourced.​​​​​​ The information on this page promotes the understanding of this responsibility, as there may be specific requirements related to a particular commodity, such as those set by Partner Government Agencies (PGA). Tips for New Importers and Exporters Close all Open all Importing Video: Introduction to the CBP Import Process Importing Into the United States Centers of Excellence and Expertise E-commerce E-Commerce and Section 321 Shipments - Section 321(a)(2)(C) of the Tariff Act of 1930, as amended, authorizes CBP to provide an administrative from duty and tax shipments of qualified imports of not more than $800 fair retail value. This exemption is known as a de minimis entry. CBP has implemented two new test programs to monitor Section 321 shipments in the e-commerce environment to protect against illegitimate trade while providing the public the benefits of duty free shipments for qualified imports. To learn more about these programs, select program overview. Non-Resident, Returning Military and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Importing a Motor Vehicle Foreign Trade Zones In-Bond Regulatory Changes Frequently Asked Questions Importing Biological Materials Exporting Export Licenses Exporting a Motor Vehicle Changes to the Foreign Trade Regulations Export Requirements Department of State Import and Export Filings for Licenses and License Exemptions Introduction To U.S. Export Controls for the Commercial Space Industry Processing User Fee, Transponder, and Decal Information *NOTICE* The optional shipping methods for Canada and Mexico have changed CBP Procedures to Investigate Trade Related Allegations Enforce and Protect Act information Federal Register Notice Interim Final Rule (IFR) providing procedures for filing allegations Duties, Taxes, and Fees This webpage provides useful information about how to pay CBP duties, taxes, and fees. This page will be updated periodically to reflect changes in policy. Fees Information Air/Sea Passenger User Fees and Railroad Car Fee Customs Broker Fees Decal and Transponder Online Procurement System (DTOPS) User Fee, Transponder, and Decal Information User Fee Table Payment Guidance Acceptable Electronic Payment Methods ACE Periodic Monthly Statements Fact Sheet Automated Clearinghouse (ACH) Payment Mailing Addresses Periodic Monthly Statement and Bill Payments Failure to make a payment or provide legal justification of non-payment may result in suspension of immediate release privileges in accordance with 19 CFR 142.26 . If payment is not received by CBP on or before the late payment date appearing on the bill, interest charges will be assessed upon the delinquent principal amount of the bill in accordance with 19 CFR 24.3a . Last Modified: Feb 10, 2026 Related Resources Cargo Security and Examinations Kimberley Process Certification Scheme AES Quick Reference Guide Locate Port Information CBP provides security and facilitation operations at 328 main ports of entry throughout the U.S. Locate a Port of Entry", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
4
  {"id": "trade_basic_import_export_importer_exporter_tips", "source": "CBP", "section": "trade", "page_type": "guidance", "title": "Tips for New Importers and Exporters", "url": "https://www.cbp.gov/trade/basic-import-export/importer-exporter-tips", "retrieved_at": "2026-05-15T16:20:53.729807Z", "published_date": "Last Modified: Aug 27, 2024", "topics": [], "text": "Home Trade Basic Importing and Exporting Tips For New Importers and Exporters Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Trade Enforce and Protect Act (EAPA) Forced Labor Basic Importing and Exporting E-Commerce User Fee Table Exporting a Motor Vehicle Importing a Motor Vehicle Internet Purchases Acceptable Electronic Payment Methods User Fee, Transponder, and Decal Information Tips for New Importers and Exporters Careers in Laboratories and Scientific Services Non-Resident, Returning Military, and Returning Official Government Employee Importations of Personal Vehicle for Personal Use Export Licenses ACE: The Import and Export Processing System eCBP Broker Instruction and Training Resources Priority Trade Issues Programs and Administration Rulings and Legal Decisions Stakeholder Engagement Trade Facilitation and Trade Enforcement Act Centers of Excellence and Expertise AMS Air Features CBP Facilitates Broker Licensing Though the Global Enrollment System Cybersecurity Resiliency Frontline Articles The Truth Behind Counterfeits Automated Clearinghouse ACE Secure Data Portal In-Bond Arrival and Export Enhancement Decertification: CAFTA-DR, Colombia TPA, Korea FTA, Panama TPA and Peru TPA Tips for New Importers and Exporters In order to avoid potential problems in the clearance of your merchandise, U.S. Customs and Border Protection (CBP) strongly recommends that you familiarize yourself with CBP policies and procedures prior to actually importing/exporting your goods. You should also be aware of any entry requirements specific to the particular commodity you are importing/exporting, including those of other federal agencies. To assist you, we offer the following tips for new importers and exporters. What kind of license is required to import merchandise into the United States? CBP does not require an importer to have a license or permit, but other agencies may require a permit, license, or other certification, depending on the commodity that is being imported. CBP acts in an administrative capacity for these other agencies, and you may wish to contact them directly for more information. You can find links to other government agencies and departments at USA.gov. There is a listing of other government agencies in the appendix section of the publication Importing Into the United States . You may also need a license from local or state authorities to do business. CBP entry forms do ask for your importer number: this is either your IRS business registration number, or if your business is not registered with the IRS or you do not have a business, your social security number will be sufficient. As an alternative, you may request a CBP assigned number by completing a CBP Form 5106 and presenting it to the Entry Branch at a CBP port of entry. The CBP website contains valuable information for the new or experienced importer. We recommend that importers review the topics on the CBP Trade page. In particular, we suggest viewing the information contained in the section titled Basic Importing and Exporting . There are many topic-specific links to explore. This will lead you to information on CBP import requirements, arrival of goods, formal entry vs. informal entry, classification, protest, mail shipments, restricted merchandise and more. For other agency requirements you may need to meet, and if you become a frequent importer with higher valued shipments, we recommend you read Importing into the United States . This publication contains more in-depth information and is valuable reading for anyone seriously venturing into the importing business. We also urge you to read the Informed Compliance Publications . CBP has prepared a number of Informed Compliance Publications (ICPs) in the \"What Every Member of the Trade Community Should Know About...\" series on a variety issues. If your business will cause you to travel in and out of the country, we recommend that you review the traveler information in the Know Before You Go . Prior to importing, you may contact the CBP office at the port of entry where your merchandise will enter the United States A complete directory of the various ports of entry can be found on this website. If you are unsure of or haven't decided the port where your shipment will arrive, or you are looking at importing through multiple ports, you may contact a service port of entry near you. Ask to speak with a CBP import specialist assigned to the commodity you are importing. Import specialists are a valuable resource for commodity specific knowledge and can provide classification advice, commodity specific requirements, advisory duty rates, and respond to questions you may have about filing an entry. At many ports, entry specialists handle questions regarding entry filing. Entry specialists work closely with import specialists and provide the technical processing expertise required to file the necessary paperwork. When calling the port, the importer should be able to provide as much detail regarding the transaction as possible. In order for the import specialist to best assist you, it is important you be able to exactly describe the merchandise you are planning to import. In order for the import specialist to best assist you, you should provide a full and complete description of the article and answer specific questions such as: 1) the country of origin of the merchandise and manufacturer; 2) the composition of the merchandise; 3) the intended use of the item; and 4) pricing/payment information (in order to properly determine the value of the shipment). For more information on the classification of merchandise, consult the Harmonized Tariff Schedule (HTS) which contains the actual HTS number and tariff classification guidelines that explain how to properly classify merchandise. Importers can request a written ruling from CBP for the proper HTSUS classification and rate of duty for their merchandise. For information on CBP ruling letters, review What are Ruling Letters . When requesting a binding ruling, importers should follow the procedures outlined in Part 177 of the Customs Regulations (19 C.F.R. 177). Research the results of previous ruling requests by using the Customs Rulings Online Search System (CROSS). CBP may have already issued rulings on products similar to yours that you can use for guidance. CROSS also addresses other issues such as value, country of origin marking, and applicability of trade preference programs. The CROSS database is searchable by key word. The CBP Website also contains valuable information regarding exporting. If your future plans call for exporting merchandise from the U.S., you should review the information found in the Export section of this website . Although CBP enforces many export regulations for various other government agencies, specific questions pertaining to licensing requirements for a particular commodity should be directed to that lead agency. Other agency contact information as well as commodities that may require export licenses, can be obtained by visiting the U.S. Department of Commerce, Bureau of Industry and Security Web sites. Questions regarding export licenses may also be directed to CBP officers at the port where the merchandise will exit the country. Another resource is the Department of Commerce's Trade Information Center which you can call 1-800-USA Trade or visit their website Export.gov . Although certain resident importers and exporters may file entries on their own behalf, many first time importers and exporters consult a licensed customs broker. Those importing merchandise for their own use often hire a customs broker, particularly if they find the importing procedures complicated; however, they may make entry on their own. Importers wishing to consult the professional services of a Customs broker may do so. Customs brokers are licensed by CBP, but are not CBP employees. To view a list of customs brokers licensed to conduct CBP business in a specific port, select the Port you expect to use. Many service port pages have a list of customs brokers. Please note these lists may not be all inclusive and those brokers appearing on the list are not endorsed by CBP. There is also an Informed Compliance Publication about customs brokers . Remember, even when using a broker, you, the importer of record, are ultimately responsible for the correctness of the entry documentation presented to CBP and all applicable duties, taxes and fees. Importer Security Filing (ISF/\"10+2\") mandatory for ocean vessel shipments. On January 26, 2009, the new rule titled Importer Security Filing and Additional Carrier Requirements (commonly known as \"10+2\") went into effect. This new rule applies to import cargo arriving to the United States by vessel. Failure to comply with the new rule could ultimately result in monetary penalties, increased inspections and delay of cargo. What is an Importer Security Filing? Under the new rule, before merchandise arriving by vessel can be imported into the United States, the \"Importer Security Filing (ISF) Importer,\" or their agent (e.g., licensed customs broker), must electronically submit certain advance cargo information to CBP in the form of an Importer Security Filing. This requirement only applies to cargo arriving in the United States by ocean vessel: it does not apply to cargo arriving by other modes of transportation. Remember, even when using a broker, , the importer of record, is ultimately responsible for the correctness of the entry documentation presented to CBP and all applicable duties, taxes and fees. Where can I Find More Information? For more detailed information about the Importer Security Filing requirements, please see CBP's webpage on Importer Security Filing . You will find a link to Frequently Asked Questions and recordings of recently conducted ISF webinars for small to mediums entities. Additional assistance may be available from your licensed customs broker, freight forwarders, trade associations and local trade centers. You should research general quota information and quota requirements for certain commodities prior to importing into the United States. Import quotas control the amount or volume of various commodities that can be imported into the United States during a specified period of time. United States import quotas may be divided into two main types: absolute and tariff-rate. Absolute quotas usually apply to textiles and strictly limit the quantity of goods that may enter the commerce of the United States during a specific period. Currently there are no commodities subject to absolute quota restrictions. Tariff-rate quotas permit a specified quantity of imported merchandise to be entered at a reduced rate of duty during the quota period. Once a quota has been reached, goods may still be entered, but at a higher rate of duty. Quota information is available on the Quota page. This section contains links to information on subjects such as determining whether imported goods are subject to quota restraints. A Guide to Import Quotas provides additional quota information. Fill levels for agricultural quotas and textiles eligible for trade preference programs are tracked on the Commodity Status Report for Tariff Rate Quotas. General quota information and instructions for specific quotas are available to CBP field offices and the trade as Quota Book Transmittals . You may receive a bill if your shipment is examined by CBP. Under Title 19, section 1467, of the United States Code (19 U.S.C. 1467), CBP has a right to examine any shipment imported into the United States and it is important to know that you, the importer, must bear the cost of such cargo exams. Per the CBP regulations, it is the responsibility of the importer to make the goods available for examination-- \"The importer shall bear any expense involved in preparing the merchandise for CBP examination and in the closing of packages\" (19 C.F.R. 151.6). Household effects are not exempt. No distinction is made between commercial and personal shipments. In the course of normal operations, CBP does not charge for cargo examinations. However, there may still be costs involved for the importer. For example, if your shipment is selected for examination, it will generally be moved to a Centralized Examination Station (CES) for the CBP exam to take place. A CES is a privately operated facility where merchandise is made available to CBP officers for physical examination. The CES facility will unload (devan) your shipment from its shipping container and will reload it after the exam. The CES will bill you for their services. There are also costs associated with moving the cargo to and from the exam site and with storage. Rates will vary across the country and a complete devanning may cost several hundred dollars. The CES facility fulfills the needs of both CBP and the importer by providing an efficient means to conduct exams in a timely manner. CES facilities are discussed in part 118 of the Customs Regulations. Some information requested from CBP can only be provided through Freedom of Information Act (FOIA) procedures. When members of the trade community or individuals from the public request information from CBP, there are circumstances when the information being sought can be provided only if the request is pursuant to the provisions of the Freedom of Information Act (FOIA). The CBP Web site has a comprehensive explanation of the agency FOIA program , including background and general information about FOIA law, FOIA regulations, and specific instructions making a FOIA request. For general CBP inquiries, please call the CBP INFO Center Monday-Friday, between 8:30 a.m. and 5 p.m. Eastern Time. General Inquiries: (1-877) CBP-5511 International Callers: (202) 325-8000 TDD: (1-866) 880-6582 We recommend you first try to find the information you want by using the CBP INFO Center's FAQ tool. It has more than 500 answers about CBP policies and procedures. Last Modified: Aug 27, 2024 Questions? Find answers at the CBP Info Center. Top Travel Topics Top Import/Export Topics Top Import/Export Topics Search Customs Rulings (CROSS) Customs Trade Partnership Against Terrorism (CTPAT) Customs Broker Information Trade Remedies (Section 201, 232, 301) Customs Bonded Facilities (FIRMS Code) Automated Commercial Environment (ACE) Importer Security Filing (ISF) Cargo Systems Messaging Service (CSMS) Informed Compliance Publications Locate a Port of Entry View More Trade Topics Locate Port Information CBP provides security and facilitation operations at 328 main ports of entry throughout the U.S. Locate a Port of Entry Related Resources Centers of Excellence and Expertise Centers Information Contact Your Center Contact Information", "summary": "", "hackathon_use": "", "staleness_risk": "medium"}
requirements.txt CHANGED
@@ -1,8 +1,4 @@
1
- <<<<<<< HEAD
2
- requests
3
- beautifulsoup4
4
- =======
5
  streamlit>=1.30
6
  pandas>=2.0
7
  requests>=2.31
8
- >>>>>>> 6fea62a24ce13f7408eb91fe56f32a4e7b95c3f1
 
 
 
 
 
1
  streamlit>=1.30
2
  pandas>=2.0
3
  requests>=2.31
4
+ beautifulsoup4