This folder contains the raw data files and documentation needed for the JuliusAI fruit import search functionality.
htsdata-fruit.json- Complete Harmonized Tariff Schedule fruit data in JSON formathtsdata-fruit.csv- Same data in CSV format for spreadsheet analysishtsdata-fruit.xlsx- Excel format for easy viewing and manipulation
hts_external_user_guide.pdf- Official USITC HTS API user guide and documentation
The fruit data contains the following key fields:
htsno- HTS (Harmonized Tariff Schedule) number/codeindent- Hierarchical level in the classification systemdescription- Product description (e.g., "Coconuts:", "Desiccated", "In shell")units- Unit of quantity (e.g., "kg" for kilograms)general- General rate of duty (e.g., "Free", "7.7¢/kg")special- Special rate of duty for specific countriesother- Additional duty rates (e.g., "7.7¢/kg")footnotes- Additional notes and referencesquotaQuantity- Quota restrictions if applicableadditionalDuties- Additional duty information
- Base URL:
https://hts.usitc.gov/reststop/search - Fruit Search Endpoint:
https://hts.usitc.gov/reststop/search?keyword=fruit - Export Endpoint:
https://hts.usitc.gov/export - Documentation: See
hts_external_user_guide.pdffor complete API reference
- Applicable Codes: 0801.00.0000 to 0814.99.9999
- Chapter 08: Edible fruit and nuts; peel of citrus fruit or melons
- Coverage: All fruit-related HTS classifications fall within this range
The USITC API provides real-time access to HTS data and can be used to:
- Search for specific fruit-related HTS codes
- Get updated tariff rates and descriptions
- Access additional product information
- Validate local data against official sources
- Structure: Array of objects with nested properties
- Use Case: Web applications, API responses, data processing
- Advantages: Hierarchical structure, supports complex data types
- Structure: Tabular data with comma-separated values
- Use Case: Spreadsheet analysis, data import/export
- Advantages: Human-readable, compatible with Excel and other tools
- Structure: Spreadsheet with multiple sheets and formatting
- Use Case: Data analysis, reporting, presentation
- Advantages: Rich formatting, multiple sheets, easy visualization
- Local Data Store: Use the JSON file for client-side applications
- API Integration: Combine local data with real-time API calls for updates
- Data Validation: Cross-reference local data with API responses
- Performance: Cache API responses to reduce server load
- Updates: Regularly sync with USITC API for latest tariff information
- All data is client-side accessible (no authentication required)
- JSON format is recommended for web applications
- CSV format is useful for data analysis and reporting
- API provides real-time updates and additional product details
- Data includes hierarchical structure for proper classification display
For technical questions about the data structure or API integration, refer to:
hts_external_user_guide.pdf- Official USITC documentation- USITC HTS Website - Official HTS information
- USITC Export Endpoint - Data export functionality
- Challenge requirements in
/CHALLENGE.md- Project specifications