[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E014W7KDFD3514NVKPMF7W":3,"skill-same:01M6E014W7KDFD3514NVKPMF7W":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":14,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6E014W7KDFD3514NVKPMF7W","ia",null,"Interact with Internet Archive (archive.org) - upload files, download items, and search the archive using the ia CLI tool. Use when working with archive.org, archiving content, or retrieving historical data.","TudorAndrei\u002Fskills","TudorAndrei","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25133006?v=4","01M6DZYY5ZCEFE439AK88HME62","Tudor Andrei Dumitrascu","01M6DZYYAMG00E2P4F59KN8A52",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Finternetarchive\u002Fia\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Finternetarchive\u002Fia\u002FSKILL.md",[],[5,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"cli","search","content","data","Bash","tool","archive","download","command","use","files","query","upload","cli tool","2026-11-11 15:11:14",false,"---\nname: ia\ndescription: Interact with Internet Archive (archive.org) - upload files, download items, and search the archive using the ia CLI tool. Use when working with archive.org, archiving content, or retrieving historical data.\nallowed-tools: Bash\nargument-hint: [search query | identifier | command]\n---\n\n# Internet Archive CLI Skill\n\nThis skill enables interaction with the Internet Archive (archive.org) using the `ia` command-line tool from the `internetarchive` Python package.\n\n## Items\n\nAn item is the fundamental unit on archive.org - a logical grouping of related files sharing common metadata. An item can be a book, a song, an album, a dataset, a movie, an image or set of images, etc. Each item has a unique identifier across the entire archive.\n\nEvery item contains:\n- Original uploaded files\n- Derivative files (automatically generated by archive.org)\n- `\u003Cidentifier>_meta.xml` - item-level metadata\n- `\u003Cidentifier>_files.xml` - file-level metadata\n\nItems must belong to a collection.\n\n### Item Limits\n\n| Constraint | Recommended | Hard Limit |\n|------------|-------------|------------|\n| Item total size | Under 100GB | ~1TB |\n| Files per item | Under 10,000 | 250,000 (performance degrades >10,000) |\n| Single file size | Under 50GB | 500-700GB |\n| Daily upload | Under 1,000 files | 5,000 files (zips count as 1) |\n\n**Permanent URL patterns:**\n- Details page: `https:\u002F\u002Farchive.org\u002Fdetails\u002F\u003Cidentifier>`\n- Download directory: `https:\u002F\u002Farchive.org\u002Fdownload\u002F\u003Cidentifier>`\n- Specific file: `https:\u002F\u002Farchive.org\u002Fdownload\u002F\u003Cidentifier>\u002F\u003Cfilename>`\n- Item history: `https:\u002F\u002Farchive.org\u002Fhistory\u002F\u003Cidentifier>`\n\n**Warning:** Never link to server-specific URLs like `ia802304.us.archive.org` - these break when items migrate between servers. Always use the canonical `archive.org` URLs above.\n\nFor more details, see: https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fitems.html\n\n## Derivatives\n\nWhen you upload files to the Internet Archive, the system automatically generates derivative files - converted versions in different formats and resolutions. For example:\n\n- **Video**: Transcoded to h.264, Ogg, and various bitrates\n- **Audio**: Converted to MP3 (multiple bitrates), Ogg Vorbis, FLAC\n- **Text\u002FBooks**: OCR processing, searchable PDFs, EPUB, DjVu\n- **Images**: Thumbnails, JPEG 2000, different resolutions\n\nDerivatives make content accessible across different devices and bandwidths. You can identify derivatives in `ia list` output - they have an `original` field pointing to their source file.\n\nTo skip derivative generation during upload, use `--no-derive`:\n```bash\nia upload my-item file.mp4 --metadata=\"mediatype:movies\" --no-derive\n```\n\nFor the complete list of source formats and their generated derivatives, see: **https:\u002F\u002Farchive.org\u002Fhelp\u002Fderivatives.php**\n\n## Metadata Schema\n\nInternet Archive items use XML-based metadata. Key points:\n\n- **Required fields:** `identifier`, `mediatype`\n- **Recommended fields:** `title`, `description`, `creator`, `date`, `subject`, `collection`, `language`\n- **Repeatable fields:** collections, creators, subjects, languages support multiple values\n- **Custom fields:** You can define unlimited custom metadata fields (must follow XML naming rules)\n\n**Identifier requirements:**\n- ASCII alphanumeric, underscores, dashes, or periods only\n- Must begin with alphanumeric character\n- 5-100 characters (5-80 recommended)\n- Unique and unchangeable once set\n\nFor the complete metadata schema reference, see: **https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmetadata-schema**\n\n## Collections\n\nCollections group related items together. Key points:\n\n- **Only IA staff can create collections** - users must request creation\n- **Minimum 50 items** required for a new collection\n- Items must be related and typically same media type\n- Collection creation takes up to two weeks after request\n\nTo request a collection, contact Internet Archive with:\n- List of item identifiers or search query identifying items\n- Desired collection identifier (5-80 chars, alphanumeric only)\n- Collection title and description\n- At least one subject tag\n\n**Public upload collections** (anyone can upload to):\n- `opensource_movies`, `opensource_audio`, `opensource_media` - general media\n- `community_texts`, `community_video`, `community_audio` - community contributions\n\nOther collections restrict uploads to designated uploaders only.\n\n## Tool Detection and Installation\n\nBefore using any `ia` commands, check if the tool is installed:\n\n```bash\nia --version\n```\n\nIf the `ia` command is not found, install it using `uv`:\n\n```bash\nuv tool install internetarchive\n```\n\nAlternative installation methods:\n- `pipx install internetarchive`\n- `pip install internetarchive`\n\nAfter installation, verify it works with `ia --version`.\n\n## Global Options\n\nThese options work with all `ia` commands:\n\n| Option | Description |\n|--------|-------------|\n| `-h, --help` | Show help message |\n| `-v, --version` | Display version |\n| `-c FILE, --config-file` | Path to config file |\n| `-l, --log` | Enable logging |\n| `-d, --debug` | Enable debug output |\n\n## Configuration and Authentication\n\nCheck if `ia` is configured:\n\n```bash\nia configure --whoami\n```\n\nIf not configured (shows error or empty), the user needs to set up credentials:\n\n1. **Interactive setup**: Run `ia configure` and follow prompts\n2. **Get credentials**: IA-S3 keys from https:\u002F\u002Farchive.org\u002Faccount\u002Fs3.php\n3. **Config location**: Saves to `~\u002F.config\u002Fia.ini`\n\n### Configure Options\n\n| Option | Description |\n|--------|-------------|\n| `--whoami` | Print current authenticated user |\n| `--show` | Print current config as JSON |\n| `--check` | Validate IA-S3 keys (exit 0 if valid, 1 otherwise) |\n\n```bash\n# Show current config\nia configure --show\n\n# Validate keys (useful in scripts)\nia configure --check && echo \"Keys valid\"\n```\n\n### Environment Variables\n\nAlternative to config file:\n```bash\nexport IA_ACCESS_KEY_ID=\"your-access-key\"\nexport IA_SECRET_ACCESS_KEY=\"your-secret-key\"\n```\n\nNote: Configuration is required for uploads and metadata modifications. Searching and downloading public items works without authentication.\n\n## User-Agent Identification (Required)\n\n**All requests to the Internet Archive must include a proper User-Agent string** that clearly identifies the source of the request. This applies to every request made via any tool - the `ia` CLI, Python library, direct API calls, curl, or any other HTTP client. This is critical for AI agents, bots, and automated tools.\n\nThe `ia` CLI automatically includes a default User-Agent with your access key:\n```\ninternetarchive\u002F5.7.2 (Linux x86_64; N; en; ACCESS_KEY) Python\u002F3.11.0\n```\n\nWhen using Claude Code or other AI\u002FLLM agents, **you must append a custom suffix** that includes:\n- The tool\u002Fagent name and version (e.g., \"Claude Code\u002F1.0.0\")\n- The model being used if applicable (e.g., \"claude-sonnet-4-20250514\")\n- Any relevant context about the automation\n\nThe `--user-agent-suffix` CLI option and `user_agent_suffix` config setting require `internetarchive` version 5.7.2 or newer. The default User-Agent (including access key) is always sent - your suffix is appended to it.\n\n**CLI:**\n```bash\nia --user-agent-suffix \"Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\" download my-item\n```\n\n**INI file (`~\u002F.config\u002Finternetarchive\u002Fia.ini`):**\n```ini\n[general]\nuser_agent_suffix = Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\n```\n\n**Python API:**\n```python\nfrom internetarchive import get_session\n\nsession = get_session(config={\n    'general': {'user_agent_suffix': 'Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)'}\n})\n```\n\nThe resulting User-Agent will look like:\n```\ninternetarchive\u002F5.7.2 (Linux x86_64; N; en; ACCESS_KEY) Python\u002F3.11.0 Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\n```\n\nThis helps the Internet Archive track usage patterns, troubleshoot issues, and maintain service quality. Always be specific - include version numbers, model identifiers, and enough detail to distinguish your tool from others.\n\n## Search Operations\n\nSearch the Internet Archive catalog:\n\n```bash\nia search '\u003Cquery>'\n```\n\n### Search Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--itemlist` | Output identifiers only, one per line |\n| `-n, --num-found` | Print only the count of results |\n| `-s, --sort` | Sort results: `--sort='field desc'` or `--sort='field asc'` |\n| `-f, --field` | Return specific metadata fields (repeatable) |\n| `-F, --fts` | Full-text search (search within text content, not just metadata) |\n| `--parameters` | Raw query parameters: `--parameters=\"page=N&rows=N\"` |\n\n```bash\n# Get result count only\nia search 'collection:nasa' -n\n\n# Sort by date descending\nia search 'mediatype:texts' --sort='date desc'\n\n# Return specific fields\nia search 'collection:nasa' --field=identifier --field=title\n```\n\n### Sort Fields\n\nCommon sort fields for use with `--sort`:\n\n| Field | Description |\n|-------|-------------|\n| `date` | Content date |\n| `publicdate` | When item was published to archive.org |\n| `addeddate` | When added to archive |\n| `updatedate` | Last updated |\n| `title` \u002F `titleSorter` | Alphabetical by title |\n| `creator` \u002F `creatorSorter` | Alphabetical by creator |\n| `downloads` | Total downloads |\n| `week` | Downloads this week |\n| `month` | Downloads this month |\n| `num_reviews` | Number of reviews |\n| `num_favorites` | Number of favorites |\n| `item_size` | Total item size |\n| `files_count` | Number of files |\n\nUse `asc` or `desc` suffix:\n```bash\nia search 'mediatype:audio' --sort='downloads desc'\nia search 'collection:books' --sort='publicdate asc'\nia search 'creator:NASA' --sort='title asc'\n```\n\n### Search Query Syntax\n\nThe Internet Archive uses **Apache Lucene query syntax**. By default, the operator is AND (all terms must be present).\n\n#### Query Operators\n\n| Operator | Description |\n|----------|-------------|\n| `AND` | All terms must be present (default) |\n| `OR` | Any of the terms can be present |\n| `NOT` | Exclude documents with term (requires at least one positive term) |\n| `( )` | Group clauses to form subqueries |\n\n#### Field-Specific Searches\n\nUse `field:value` syntax to search specific metadata fields:\n\n| Query | Description |\n|-------|-------------|\n| `'title:\"search text\"'` | By title |\n| `'creator:\"Author Name\"'` | By creator\u002Fauthor |\n| `'subject:\"topic\"'` | Search by subject |\n| `'description:\"text\"'` | By description |\n| `'collection:name'` | Items in a collection |\n| `'mediatype:texts'` | By media type (texts, movies, audio, software, image, data) |\n| `'contributor:smithsonian'` | By contributor |\n| `'language:eng'` | By language code |\n| `'format:pdf'` | Items containing specific file format |\n| `'isbn:9780123456789'` | By ISBN |\n| `'licenseurl:http*by-nc*'` | By Creative Commons license |\n\n#### Range Queries\n\nSearch values between bounds using brackets or parentheses:\n\n| Syntax | Description |\n|--------|-------------|\n| `[1000 TO 2000]` | Inclusive range (includes bounds) |\n| `{1000 TO 2000}` | Exclusive range (excludes bounds) |\n| `[1000 TO null]` | Open-ended range (1000 or greater) |\n| `[null TO 2000]` | Open-ended range (2000 or less) |\n\n#### Date Fields\n\nSearchable date fields: `addeddate`, `createdate`, `date`, `indexdate`, `publicdate`, `reviewdate`, `updatedate`, `oai_updatedate`\n\n| Query | Description |\n|-------|-------------|\n| `'date:[2020-01-01 TO 2024-12-31]'` | Date range |\n| `'publicdate:[2024-01-01 TO 2024-06-30]'` | By publication date |\n| `'indexdate:[2024-01-01T00:00:00Z TO 2024-12-31T23:59:59Z]'` | With timestamp |\n| `'date:2024*'` | Wildcard for year (non-range) |\n\n#### Fuzzy Queries\n\nAppend `~` for approximate spelling matches:\n```bash\nia search 'title:buttonwood~'\n\n# Boost fuzzy matches with weights\nia search '(title:buttonwood~)^150 OR (subject:buttonwood~)^100'\n```\n\n#### Searching for Missing Fields\n\nFind items where a field doesn't exist:\n```bash\nia search 'collection:microfiche AND NOT _exists_:creator'\n```\n\n#### Searching by Uploader\n\nSearch by uploader's user item, screen name, or email:\n```bash\nia search '_uploader_useritem:@username'\nia search '_uploader_screenname:\"Display Name\"'\nia search 'uploader:your@email.com'\n```\n\n#### Additional Searchable Fields\n\nBeyond standard metadata, you can search by:\n- `downloads` - download count\n- `item_size` - total item size in bytes\n- `files_count` - number of files\n- `collection_size` - size of collection\n- `item_count` - items in collection\n\n```bash\nia search 'collection:opensource AND downloads:[1000 TO null]'\nia search 'mediatype:movies AND item_size:[1000000000 TO null]'\n```\n\n#### Combined Queries\n\n```bash\n# AND is implicit between terms\nia search 'collection:nasa mediatype:image'\n\n# Explicit operators\nia search 'collection:nasa AND mediatype:image'\nia search 'mediatype:texts OR mediatype:audio'\nia search 'collection:opensource NOT mediatype:software'\n\n# Grouped subqueries\nia search '(mediatype:texts OR mediatype:audio) AND creator:\"Mark Twain\"'\n```\n\n### Full-Text Search\n\nUse the `-F` (or `--fts`) flag to search within the actual text content of items rather than just metadata. This is particularly powerful for searching text collections like books, documents, and OCR'd materials.\n\n**Basic full-text search:**\n```bash\nia search -F 'collection:collection_name \"search phrase\"'\n```\n\n**How it works:**\n- Searches inside the full text of documents (OCR'd PDFs, text files, etc.)\n- More powerful than metadata-only search for finding specific quotes or passages\n- Requires items to have searchable text (OCR or text files)\n- Can be combined with collection and metadata filters\n\n**Full-text search syntax:**\n- Use quotes for exact phrases: `\"complete phrase\"`\n- Combine with metadata filters: `collection:name AND \"text to find\"`\n- Works best with text collections that have been OCR'd\n\n### Examples\n\n```bash\n# Search NASA images\nia search 'collection:nasa mediatype:image' --parameters=\"rows=10\"\n\n# Search public domain books\nia search 'subject:\"public domain\" mediatype:texts'\n\n# Get just identifiers\nia search 'creator:\"Mark Twain\"' --itemlist\n\n# Full-text search within a text collection\nia search -F 'collection:books \"climate change\"'\n\n# Full-text search for a specific quote in public domain texts\nia search -F '\"to be or not to be\" mediatype:texts'\n\n# Full-text search with collection filter and pagination\nia search -F 'collection:usgovernmentdocuments \"artificial intelligence\"' --parameters=\"rows=20\"\n```\n\n## Download Operations\n\nDownload files from an Internet Archive item:\n\n```bash\nia download \u003Cidentifier>\n```\n\n### Download Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--glob=\"*.ext\"` | Download only matching files (use `\\|` for multiple: `'*.mp4\\|*.webm'`) |\n| `--exclude=\"*pattern*\"` | Exclude files matching pattern |\n| `--format=\"FORMAT\"` | Download specific derivative format |\n| `--source=SOURCE` | Filter by source: `original`, `derivative`, `metadata` |\n| `--exclude-source=SOURCE` | Exclude by source type |\n| `--destdir=path` | Download to specific directory |\n| `--no-directories` | Flatten directory structure |\n| `-s, --stdout` | Write file to stdout (for piping) |\n| `--dry-run` | Show what would be downloaded |\n| `--checksum` | Skip files that already exist with correct checksum |\n| `--on-the-fly` | Download on-the-fly files (generated derivatives) |\n| `--search=\"QUERY\"` | Download from search results |\n| `--itemlist=FILE` | Download items listed in file |\n\n#### Filtering by Source Type\n\nUse `--source` and `--exclude-source` to filter by file origin:\n\n```bash\n# Download only original files (skip all derivatives)\nia download my-item --source=original\n\n# Download originals and metadata, skip derivatives\nia download my-item --exclude-source=derivative\n\n# Download only metadata files\nia download my-item --source=metadata\n```\n\n### Examples\n\n```bash\n# Download all files from an item\nia download TripDown1905\n\n# Download specific files by name\nia download TripDown1905 file1.mp4 file2.ogv\n\n# Download only MP4 files\nia download TripDown1905 --glob=\"*.mp4\"\n\n# Download MP4s but exclude low-quality versions\nia download TripDown1905 --glob=\"*.mp4\" --exclude=\"*512kb*\"\n\n# Download specific format\nia download TripDown1905 --format='512Kb MPEG4'\n\n# Download to specific directory\nia download TripDown1905 --destdir=.\u002Fdownloads\n\n# Download from search results\nia download --search 'collection:opensource_movies' --glob=\"*.mp4\"\n\n# Download items from a list file\nia search 'collection:glasgowschoolofart' --itemlist > itemlist.txt\nia download --itemlist itemlist.txt\n\n# Preview what will be downloaded\nia download my_item --dry-run\n```\n\n## Upload Operations\n\nUpload files to the Internet Archive (requires authentication):\n\n```bash\nia upload \u003Cidentifier> file1 file2 --metadata=\"mediatype:value\"\n```\n\n### Required Metadata\n\nThe `mediatype` field is required. Common values:\n- `texts` - Books, documents, PDFs\n- `movies` - Video files\n- `audio` - Music, podcasts, sound\n- `software` - Programs, games\n- `image` - Photos, graphics\n- `data` - Datasets, archives\n\n### Upload Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--metadata=\"key:value\"` | Set metadata (repeatable) |\n| `--header=\"key:value\"` | Set HTTP header |\n| `--checksum` | Skip files already uploaded |\n| `-v, --verify` | Verify data wasn't corrupted after upload |\n| `--no-derive` | Skip derivative processing |\n| `--retries=N` | Number of retry attempts |\n| `--remote-name=NAME` | Set remote filename (for stdin uploads) |\n| `--keep-directories` | Preserve directory structure in remote filename |\n| `-o, --open-after-upload` | Open item in browser after upload |\n| `--file-metadata=FILE` | File-level metadata from JSONL file |\n| `--spreadsheet=FILE` | Bulk upload from CSV spreadsheet |\n\n### Common Metadata Fields\n\n```bash\n--metadata=\"title:My Document Title\"\n--metadata=\"creator:Author Name\"\n--metadata=\"description:A description of the content\"\n--metadata=\"subject:topic1;topic2\"\n--metadata=\"collection:community_texts\"\n--metadata=\"date:2024-01-15\"\n--metadata=\"language:eng\"\n```\n\n### Examples\n\n```bash\n# Upload a PDF document\nia upload my-document-2024 document.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"title:My Document\" \\\n  --metadata=\"creator:John Doe\"\n\n# Upload multiple files\nia upload my-archive file1.pdf file2.pdf file3.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"title:Document Collection\"\n\n# Upload with checksum verification and retries\nia upload my-item large-file.zip \\\n  --metadata=\"mediatype:data\" \\\n  --checksum \\\n  --retries=10\n\n# Upload from stdin\ncat data.gz | ia upload my-item - \\\n  --remote-name=data.gz \\\n  --metadata=\"mediatype:data\"\n\n# Bulk upload using spreadsheet\nia upload --spreadsheet=metadata.csv\n```\n\n**Notes:**\n- Items receive `data` mediatype by default if not specified\n- Mediatype can only be changed after upload with admin support\n- Derivative generation takes seconds to days depending on file type and system load\n- Items typically appear in search within minutes, but can take up to 24 hours\n\n### Test Collection\n\nUpload to `test_collection` for validation - items are automatically removed after ~30 days:\n\n```bash\nia upload my-test-item file.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"collection:test_collection\"\n```\n\n### Identifier Guidelines\n\n- Use lowercase letters, numbers, and hyphens\n- No spaces or special characters\n- Keep it descriptive but concise\n- Check if identifier exists: `ia metadata \u003Cidentifier> --exists`\n\n### Item Thumbnail Image\n\nTo set a custom thumbnail for an item, upload an image named `\u003Cidentifier>_itemimage.jpg`:\n\n```bash\nia upload my-item my-item_itemimage.jpg\n```\n\n### Restricting Downloads\n\nTo make files streamable but not downloadable, add the item to the `stream_only` collection:\n\n```bash\nia metadata \u003Cidentifier> --append-list=\"collection:stream_only\"\n```\n\n## Metadata Operations\n\nView and modify item metadata:\n\n```bash\n# View metadata (JSON output)\nia metadata \u003Cidentifier>\n\n# Extract specific field with jq\nia metadata \u003Cidentifier> | jq '.metadata.date'\n\n# List file formats contained in an item\nia metadata \u003Cidentifier> --formats\n\n# Modify metadata (set or replace)\nia metadata \u003Cidentifier> --modify=\"title:New Title\"\nia metadata \u003Cidentifier> --modify=\"foo:bar\" --modify=\"baz:value\"\n\n# Remove a metadata field\nia metadata \u003Cidentifier> --modify=\"fieldname:REMOVE_TAG\"\n\n# Append value to existing field\nia metadata \u003Cidentifier> --append=\"title:Subtitle Here\"\n\n# Append to list field (e.g., subjects)\nia metadata \u003Cidentifier> --append-list=\"subject:new topic\"\n\n# Remove specific value from list field\nia metadata \u003Cidentifier> --remove=\"subject:old topic\"\n\n# Modify file-level metadata\nia metadata \u003Cidentifier> --target=\"files\u002Ffoo.txt\" --modify=\"title:My File\"\n\n# Bulk updates from spreadsheet\nia metadata --spreadsheet=metadata.csv\n```\n\n## List Operations\n\nList files in an Internet Archive item:\n\n```bash\nia list \u003Cidentifier>\n```\n\nShows all files with details (name, size, format).\n\n### List Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--columns=name,size` | Specify columns to show |\n| `--glob=\"*.pdf\"` | Filter by pattern |\n| `-l, --location` | Print full URLs for each file |\n| `-a, --all` | List all available file information |\n| `-v, --verbose` | Print column headers |\n\n```bash\n# List with full URLs\nia list my-item --location\n\n# List all file info with headers\nia list my-item --all --verbose\n\n# List specific columns\nia list my-item --columns=name,size,format\n```\n\n## Tasks and Jobs\n\nCheck status of catalog tasks (uploads, derives, etc.):\n\n```bash\n# Check tasks for a specific item\nia tasks \u003Cidentifier>\n\n# Check all your tasks\nia tasks\n```\n\n### Darking and Undarking Items\n\nTo make an item dark (hidden from public access) or undark it:\n\n```bash\n# Dark an item (requires comment)\nia tasks \u003Cidentifier> --cmd=make_dark.php --comment=\"Reason for darking\"\n\n# Undark an item\nia tasks \u003Cidentifier> --cmd=make_undark.php --comment=\"Reason for undarking\"\n```\n\n## Bulk Operations with GNU Parallel\n\nFor batch processing many items, use [GNU Parallel](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Fparallel\u002F) to run `ia` commands concurrently.\n\n### Installation\n\n```bash\n# macOS\nbrew install parallel\n\n# Debian\u002FUbuntu\napt install parallel\n```\n\n### Basic Usage\n\nPipe item identifiers to parallel, using `{}` as placeholder:\n\n```bash\n# Fetch metadata for many items\ncat itemlist.txt | parallel 'ia metadata {}'\n\n# Download multiple items\ncat itemlist.txt | parallel 'ia download {}'\n```\n\n### Careful Batch Processing\n\nFor reliable bulk operations, use job logging to track progress and handle failures:\n\n```bash\n# Step 1: Create item list\nia search 'collection:myproject' --itemlist > itemlist.txt\n\n# Step 2: Run with job logging\ncat itemlist.txt | parallel --joblog job.log 'ia download {}'\n\n# Step 3: Check for failures\necho $?  # 0 = all succeeded\n\n# Step 4: Retry only failed jobs\nparallel --retry-failed --joblog job.log\n```\n\n### Job Log Benefits\n\nThe `--joblog` file tracks each command's exit status, allowing you to:\n- Resume interrupted batch jobs\n- Retry only failed items without re-processing successes\n- Audit what succeeded and failed\n\n### Dry Run First\n\nAlways preview before bulk execution:\n\n```bash\ncat itemlist.txt | parallel --dry-run 'ia download {}'\n```\n\n### Rate Limiting\n\nControl concurrency to avoid overwhelming the server:\n\n```bash\n# Limit to 4 concurrent jobs\ncat itemlist.txt | parallel -j4 'ia download {}'\n\n# Add delay between jobs\ncat itemlist.txt | parallel --delay 1 'ia download {}'\n```\n\nSee: https:\u002F\u002Farchive.org\u002Fdevelopers\u002Finternetarchive\u002Fparallel.html\n\n## Best Practices\n\n1. **Always configure before uploading** - Run `ia configure` first\n2. **Use meaningful identifiers** - Descriptive, lowercase, hyphenated\n3. **Include proper metadata** - At minimum: mediatype, title, creator\n4. **Check before uploading** - Verify identifier doesn't exist: `ia metadata \u003Cid>`\n5. **Use checksums** - Add `--checksum` for large uploads to enable resume\n6. **Respect rate limits** - Don't spam requests; add delays for bulk operations\n7. **Test with dry-run** - Use `--dry-run` to preview operations\n8. **Use test_collection first** - Validate uploads before committing to permanent collections\n9. **Zip large file sets** - Bundle many small files into archives before uploading\n10. **Specify language** - Set `language` metadata for proper OCR processing on texts\n\n## Error Handling\n\n| Error | Solution |\n|-------|----------|\n| \"not configured\" | Run `ia configure` or set environment variables |\n| \"identifier exists\" | Choose a different identifier |\n| \"permission denied\" | Check credentials at https:\u002F\u002Farchive.org\u002Faccount\u002Fs3.php |\n| \"network error\" | Retry the operation; check internet connection |\n| \"item not found\" | Verify the identifier spelling |\n| \"429 Too Many Requests\" | Rate limited; wait and retry with `Retry-After` header value |\n| Item not appearing in search | Usually appears within minutes; check `ia tasks \u003Cidentifier>` for pending jobs |\n| Derive task failed | Check filename characters, file format, language metadata |\n\n## Quick Reference\n\n```bash\n# Search\nia search 'query'\nia search 'query' --itemlist\n\n# Download\nia download \u003Cidentifier>\nia download \u003Cidentifier> --glob=\"*.pdf\"\n\n# Upload (requires auth)\nia upload \u003Cidentifier> files --metadata=\"mediatype:texts\"\n\n# Metadata\nia metadata \u003Cidentifier>\nia metadata \u003Cidentifier> --modify=\"title:New Title\"\n\n# List files\nia list \u003Cidentifier>\n\n# Tasks\nia tasks \u003Cidentifier>\n\n# Config\nia configure\nia configure --whoami\n\n# Install\nuv tool install internetarchive\n```\n\n## API Reference\n\nFor programmatic access beyond the CLI, see the full developer documentation: **https:\u002F\u002Farchive.org\u002Fdevelopers**\n\n### Core APIs\n\n| API | Description |\n|-----|-------------|\n| [Items](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fitems.html) | Understanding item structure and access |\n| [Metadata Schema](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmetadata-schema\u002F) | Complete metadata field reference |\n| [Metadata Read](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmd-read.html) | Retrieve item metadata via API |\n| [Metadata Write](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmd-write.html) | Modify item metadata via API |\n| [IAS3](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fias3.html) | S3-compatible API for uploads |\n| [Tasks](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Ftasks.html) | Task queue management |\n\n### Additional APIs\n\n| API | Description |\n|-----|-------------|\n| [Changes](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fchanges.html) | Track item modifications across the archive |\n| [Views](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fviews_api.html) | Access viewing and download statistics |\n| [Reviews](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Freviews.html) | Manage item reviews |\n| [Simple Lists](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fsimplelists.html) | Create item relationships and lists |\n| [OCR Service](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Focr.html) | Text recognition service |\n| [PDF Service](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fpdf.html) | PDF generation and processing |\n\n### Python Library\n\nFor Python integration: [internetarchive library](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Finternetarchive\u002F)\n\n### TypeScript Library (Third-Party)\n\nA community-maintained TypeScript port is available: [internetarchive-ts](https:\u002F\u002Fgithub.com\u002Fkarpour\u002Finternetarchive-ts) ([docs](https:\u002F\u002Fkarpour.github.io\u002Finternetarchive-ts\u002F))\n\nNote: This is a work in progress and not officially maintained by the Internet Archive.\n","# Internet Archive CLI Skill\n\nThis skill enables interaction with the Internet Archive (archive.org) using the `ia` command-line tool from the `internetarchive` Python package.\n\n## Items\n\nAn item is the fundamental unit on archive.org - a logical grouping of related files sharing common metadata. An item can be a book, a song, an album, a dataset, a movie, an image or set of images, etc. Each item has a unique identifier across the entire archive.\n\nEvery item contains:\n- Original uploaded files\n- Derivative files (automatically generated by archive.org)\n- `\u003Cidentifier>_meta.xml` - item-level metadata\n- `\u003Cidentifier>_files.xml` - file-level metadata\n\nItems must belong to a collection.\n\n### Item Limits\n\n| Constraint | Recommended | Hard Limit |\n|------------|-------------|------------|\n| Item total size | Under 100GB | ~1TB |\n| Files per item | Under 10,000 | 250,000 (performance degrades >10,000) |\n| Single file size | Under 50GB | 500-700GB |\n| Daily upload | Under 1,000 files | 5,000 files (zips count as 1) |\n\n**Permanent URL patterns:**\n- Details page: `https:\u002F\u002Farchive.org\u002Fdetails\u002F\u003Cidentifier>`\n- Download directory: `https:\u002F\u002Farchive.org\u002Fdownload\u002F\u003Cidentifier>`\n- Specific file: `https:\u002F\u002Farchive.org\u002Fdownload\u002F\u003Cidentifier>\u002F\u003Cfilename>`\n- Item history: `https:\u002F\u002Farchive.org\u002Fhistory\u002F\u003Cidentifier>`\n\n**Warning:** Never link to server-specific URLs like `ia802304.us.archive.org` - these break when items migrate between servers. Always use the canonical `archive.org` URLs above.\n\nFor more details, see: https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fitems.html\n\n## Derivatives\n\nWhen you upload files to the Internet Archive, the system automatically generates derivative files - converted versions in different formats and resolutions. For example:\n\n- **Video**: Transcoded to h.264, Ogg, and various bitrates\n- **Audio**: Converted to MP3 (multiple bitrates), Ogg Vorbis, FLAC\n- **Text\u002FBooks**: OCR processing, searchable PDFs, EPUB, DjVu\n- **Images**: Thumbnails, JPEG 2000, different resolutions\n\nDerivatives make content accessible across different devices and bandwidths. You can identify derivatives in `ia list` output - they have an `original` field pointing to their source file.\n\nTo skip derivative generation during upload, use `--no-derive`:\n```bash\nia upload my-item file.mp4 --metadata=\"mediatype:movies\" --no-derive\n```\n\nFor the complete list of source formats and their generated derivatives, see: **https:\u002F\u002Farchive.org\u002Fhelp\u002Fderivatives.php**\n\n## Metadata Schema\n\nInternet Archive items use XML-based metadata. Key points:\n\n- **Required fields:** `identifier`, `mediatype`\n- **Recommended fields:** `title`, `description`, `creator`, `date`, `subject`, `collection`, `language`\n- **Repeatable fields:** collections, creators, subjects, languages support multiple values\n- **Custom fields:** You can define unlimited custom metadata fields (must follow XML naming rules)\n\n**Identifier requirements:**\n- ASCII alphanumeric, underscores, dashes, or periods only\n- Must begin with alphanumeric character\n- 5-100 characters (5-80 recommended)\n- Unique and unchangeable once set\n\nFor the complete metadata schema reference, see: **https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmetadata-schema**\n\n## Collections\n\nCollections group related items together. Key points:\n\n- **Only IA staff can create collections** - users must request creation\n- **Minimum 50 items** required for a new collection\n- Items must be related and typically same media type\n- Collection creation takes up to two weeks after request\n\nTo request a collection, contact Internet Archive with:\n- List of item identifiers or search query identifying items\n- Desired collection identifier (5-80 chars, alphanumeric only)\n- Collection title and description\n- At least one subject tag\n\n**Public upload collections** (anyone can upload to):\n- `opensource_movies`, `opensource_audio`, `opensource_media` - general media\n- `community_texts`, `community_video`, `community_audio` - community contributions\n\nOther collections restrict uploads to designated uploaders only.\n\n## Tool Detection and Installation\n\nBefore using any `ia` commands, check if the tool is installed:\n\n```bash\nia --version\n```\n\nIf the `ia` command is not found, install it using `uv`:\n\n```bash\nuv tool install internetarchive\n```\n\nAlternative installation methods:\n- `pipx install internetarchive`\n- `pip install internetarchive`\n\nAfter installation, verify it works with `ia --version`.\n\n## Global Options\n\nThese options work with all `ia` commands:\n\n| Option | Description |\n|--------|-------------|\n| `-h, --help` | Show help message |\n| `-v, --version` | Display version |\n| `-c FILE, --config-file` | Path to config file |\n| `-l, --log` | Enable logging |\n| `-d, --debug` | Enable debug output |\n\n## Configuration and Authentication\n\nCheck if `ia` is configured:\n\n```bash\nia configure --whoami\n```\n\nIf not configured (shows error or empty), the user needs to set up credentials:\n\n1. **Interactive setup**: Run `ia configure` and follow prompts\n2. **Get credentials**: IA-S3 keys from https:\u002F\u002Farchive.org\u002Faccount\u002Fs3.php\n3. **Config location**: Saves to `~\u002F.config\u002Fia.ini`\n\n### Configure Options\n\n| Option | Description |\n|--------|-------------|\n| `--whoami` | Print current authenticated user |\n| `--show` | Print current config as JSON |\n| `--check` | Validate IA-S3 keys (exit 0 if valid, 1 otherwise) |\n\n```bash\n# Show current config\nia configure --show\n\n# Validate keys (useful in scripts)\nia configure --check && echo \"Keys valid\"\n```\n\n### Environment Variables\n\nAlternative to config file:\n```bash\nexport IA_ACCESS_KEY_ID=\"your-access-key\"\nexport IA_SECRET_ACCESS_KEY=\"your-secret-key\"\n```\n\nNote: Configuration is required for uploads and metadata modifications. Searching and downloading public items works without authentication.\n\n## User-Agent Identification (Required)\n\n**All requests to the Internet Archive must include a proper User-Agent string** that clearly identifies the source of the request. This applies to every request made via any tool - the `ia` CLI, Python library, direct API calls, curl, or any other HTTP client. This is critical for AI agents, bots, and automated tools.\n\nThe `ia` CLI automatically includes a default User-Agent with your access key:\n```\ninternetarchive\u002F5.7.2 (Linux x86_64; N; en; ACCESS_KEY) Python\u002F3.11.0\n```\n\nWhen using Claude Code or other AI\u002FLLM agents, **you must append a custom suffix** that includes:\n- The tool\u002Fagent name and version (e.g., \"Claude Code\u002F1.0.0\")\n- The model being used if applicable (e.g., \"claude-sonnet-4-20250514\")\n- Any relevant context about the automation\n\nThe `--user-agent-suffix` CLI option and `user_agent_suffix` config setting require `internetarchive` version 5.7.2 or newer. The default User-Agent (including access key) is always sent - your suffix is appended to it.\n\n**CLI:**\n```bash\nia --user-agent-suffix \"Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\" download my-item\n```\n\n**INI file (`~\u002F.config\u002Finternetarchive\u002Fia.ini`):**\n```ini\n[general]\nuser_agent_suffix = Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\n```\n\n**Python API:**\n```python\nfrom internetarchive import get_session\n\nsession = get_session(config={\n    'general': {'user_agent_suffix': 'Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)'}\n})\n```\n\nThe resulting User-Agent will look like:\n```\ninternetarchive\u002F5.7.2 (Linux x86_64; N; en; ACCESS_KEY) Python\u002F3.11.0 Claude Code\u002F1.0.0 (claude-sonnet-4-20250514)\n```\n\nThis helps the Internet Archive track usage patterns, troubleshoot issues, and maintain service quality. Always be specific - include version numbers, model identifiers, and enough detail to distinguish your tool from others.\n\n## Search Operations\n\nSearch the Internet Archive catalog:\n\n```bash\nia search '\u003Cquery>'\n```\n\n### Search Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--itemlist` | Output identifiers only, one per line |\n| `-n, --num-found` | Print only the count of results |\n| `-s, --sort` | Sort results: `--sort='field desc'` or `--sort='field asc'` |\n| `-f, --field` | Return specific metadata fields (repeatable) |\n| `-F, --fts` | Full-text search (search within text content, not just metadata) |\n| `--parameters` | Raw query parameters: `--parameters=\"page=N&rows=N\"` |\n\n```bash\n# Get result count only\nia search 'collection:nasa' -n\n\n# Sort by date descending\nia search 'mediatype:texts' --sort='date desc'\n\n# Return specific fields\nia search 'collection:nasa' --field=identifier --field=title\n```\n\n### Sort Fields\n\nCommon sort fields for use with `--sort`:\n\n| Field | Description |\n|-------|-------------|\n| `date` | Content date |\n| `publicdate` | When item was published to archive.org |\n| `addeddate` | When added to archive |\n| `updatedate` | Last updated |\n| `title` \u002F `titleSorter` | Alphabetical by title |\n| `creator` \u002F `creatorSorter` | Alphabetical by creator |\n| `downloads` | Total downloads |\n| `week` | Downloads this week |\n| `month` | Downloads this month |\n| `num_reviews` | Number of reviews |\n| `num_favorites` | Number of favorites |\n| `item_size` | Total item size |\n| `files_count` | Number of files |\n\nUse `asc` or `desc` suffix:\n```bash\nia search 'mediatype:audio' --sort='downloads desc'\nia search 'collection:books' --sort='publicdate asc'\nia search 'creator:NASA' --sort='title asc'\n```\n\n### Search Query Syntax\n\nThe Internet Archive uses **Apache Lucene query syntax**. By default, the operator is AND (all terms must be present).\n\n#### Query Operators\n\n| Operator | Description |\n|----------|-------------|\n| `AND` | All terms must be present (default) |\n| `OR` | Any of the terms can be present |\n| `NOT` | Exclude documents with term (requires at least one positive term) |\n| `( )` | Group clauses to form subqueries |\n\n#### Field-Specific Searches\n\nUse `field:value` syntax to search specific metadata fields:\n\n| Query | Description |\n|-------|-------------|\n| `'title:\"search text\"'` | By title |\n| `'creator:\"Author Name\"'` | By creator\u002Fauthor |\n| `'subject:\"topic\"'` | Search by subject |\n| `'description:\"text\"'` | By description |\n| `'collection:name'` | Items in a collection |\n| `'mediatype:texts'` | By media type (texts, movies, audio, software, image, data) |\n| `'contributor:smithsonian'` | By contributor |\n| `'language:eng'` | By language code |\n| `'format:pdf'` | Items containing specific file format |\n| `'isbn:9780123456789'` | By ISBN |\n| `'licenseurl:http*by-nc*'` | By Creative Commons license |\n\n#### Range Queries\n\nSearch values between bounds using brackets or parentheses:\n\n| Syntax | Description |\n|--------|-------------|\n| `[1000 TO 2000]` | Inclusive range (includes bounds) |\n| `{1000 TO 2000}` | Exclusive range (excludes bounds) |\n| `[1000 TO null]` | Open-ended range (1000 or greater) |\n| `[null TO 2000]` | Open-ended range (2000 or less) |\n\n#### Date Fields\n\nSearchable date fields: `addeddate`, `createdate`, `date`, `indexdate`, `publicdate`, `reviewdate`, `updatedate`, `oai_updatedate`\n\n| Query | Description |\n|-------|-------------|\n| `'date:[2020-01-01 TO 2024-12-31]'` | Date range |\n| `'publicdate:[2024-01-01 TO 2024-06-30]'` | By publication date |\n| `'indexdate:[2024-01-01T00:00:00Z TO 2024-12-31T23:59:59Z]'` | With timestamp |\n| `'date:2024*'` | Wildcard for year (non-range) |\n\n#### Fuzzy Queries\n\nAppend `~` for approximate spelling matches:\n```bash\nia search 'title:buttonwood~'\n\n# Boost fuzzy matches with weights\nia search '(title:buttonwood~)^150 OR (subject:buttonwood~)^100'\n```\n\n#### Searching for Missing Fields\n\nFind items where a field doesn't exist:\n```bash\nia search 'collection:microfiche AND NOT _exists_:creator'\n```\n\n#### Searching by Uploader\n\nSearch by uploader's user item, screen name, or email:\n```bash\nia search '_uploader_useritem:@username'\nia search '_uploader_screenname:\"Display Name\"'\nia search 'uploader:your@email.com'\n```\n\n#### Additional Searchable Fields\n\nBeyond standard metadata, you can search by:\n- `downloads` - download count\n- `item_size` - total item size in bytes\n- `files_count` - number of files\n- `collection_size` - size of collection\n- `item_count` - items in collection\n\n```bash\nia search 'collection:opensource AND downloads:[1000 TO null]'\nia search 'mediatype:movies AND item_size:[1000000000 TO null]'\n```\n\n#### Combined Queries\n\n```bash\n# AND is implicit between terms\nia search 'collection:nasa mediatype:image'\n\n# Explicit operators\nia search 'collection:nasa AND mediatype:image'\nia search 'mediatype:texts OR mediatype:audio'\nia search 'collection:opensource NOT mediatype:software'\n\n# Grouped subqueries\nia search '(mediatype:texts OR mediatype:audio) AND creator:\"Mark Twain\"'\n```\n\n### Full-Text Search\n\nUse the `-F` (or `--fts`) flag to search within the actual text content of items rather than just metadata. This is particularly powerful for searching text collections like books, documents, and OCR'd materials.\n\n**Basic full-text search:**\n```bash\nia search -F 'collection:collection_name \"search phrase\"'\n```\n\n**How it works:**\n- Searches inside the full text of documents (OCR'd PDFs, text files, etc.)\n- More powerful than metadata-only search for finding specific quotes or passages\n- Requires items to have searchable text (OCR or text files)\n- Can be combined with collection and metadata filters\n\n**Full-text search syntax:**\n- Use quotes for exact phrases: `\"complete phrase\"`\n- Combine with metadata filters: `collection:name AND \"text to find\"`\n- Works best with text collections that have been OCR'd\n\n### Examples\n\n```bash\n# Search NASA images\nia search 'collection:nasa mediatype:image' --parameters=\"rows=10\"\n\n# Search public domain books\nia search 'subject:\"public domain\" mediatype:texts'\n\n# Get just identifiers\nia search 'creator:\"Mark Twain\"' --itemlist\n\n# Full-text search within a text collection\nia search -F 'collection:books \"climate change\"'\n\n# Full-text search for a specific quote in public domain texts\nia search -F '\"to be or not to be\" mediatype:texts'\n\n# Full-text search with collection filter and pagination\nia search -F 'collection:usgovernmentdocuments \"artificial intelligence\"' --parameters=\"rows=20\"\n```\n\n## Download Operations\n\nDownload files from an Internet Archive item:\n\n```bash\nia download \u003Cidentifier>\n```\n\n### Download Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--glob=\"*.ext\"` | Download only matching files (use `\\|` for multiple: `'*.mp4\\|*.webm'`) |\n| `--exclude=\"*pattern*\"` | Exclude files matching pattern |\n| `--format=\"FORMAT\"` | Download specific derivative format |\n| `--source=SOURCE` | Filter by source: `original`, `derivative`, `metadata` |\n| `--exclude-source=SOURCE` | Exclude by source type |\n| `--destdir=path` | Download to specific directory |\n| `--no-directories` | Flatten directory structure |\n| `-s, --stdout` | Write file to stdout (for piping) |\n| `--dry-run` | Show what would be downloaded |\n| `--checksum` | Skip files that already exist with correct checksum |\n| `--on-the-fly` | Download on-the-fly files (generated derivatives) |\n| `--search=\"QUERY\"` | Download from search results |\n| `--itemlist=FILE` | Download items listed in file |\n\n#### Filtering by Source Type\n\nUse `--source` and `--exclude-source` to filter by file origin:\n\n```bash\n# Download only original files (skip all derivatives)\nia download my-item --source=original\n\n# Download originals and metadata, skip derivatives\nia download my-item --exclude-source=derivative\n\n# Download only metadata files\nia download my-item --source=metadata\n```\n\n### Examples\n\n```bash\n# Download all files from an item\nia download TripDown1905\n\n# Download specific files by name\nia download TripDown1905 file1.mp4 file2.ogv\n\n# Download only MP4 files\nia download TripDown1905 --glob=\"*.mp4\"\n\n# Download MP4s but exclude low-quality versions\nia download TripDown1905 --glob=\"*.mp4\" --exclude=\"*512kb*\"\n\n# Download specific format\nia download TripDown1905 --format='512Kb MPEG4'\n\n# Download to specific directory\nia download TripDown1905 --destdir=.\u002Fdownloads\n\n# Download from search results\nia download --search 'collection:opensource_movies' --glob=\"*.mp4\"\n\n# Download items from a list file\nia search 'collection:glasgowschoolofart' --itemlist > itemlist.txt\nia download --itemlist itemlist.txt\n\n# Preview what will be downloaded\nia download my_item --dry-run\n```\n\n## Upload Operations\n\nUpload files to the Internet Archive (requires authentication):\n\n```bash\nia upload \u003Cidentifier> file1 file2 --metadata=\"mediatype:value\"\n```\n\n### Required Metadata\n\nThe `mediatype` field is required. Common values:\n- `texts` - Books, documents, PDFs\n- `movies` - Video files\n- `audio` - Music, podcasts, sound\n- `software` - Programs, games\n- `image` - Photos, graphics\n- `data` - Datasets, archives\n\n### Upload Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--metadata=\"key:value\"` | Set metadata (repeatable) |\n| `--header=\"key:value\"` | Set HTTP header |\n| `--checksum` | Skip files already uploaded |\n| `-v, --verify` | Verify data wasn't corrupted after upload |\n| `--no-derive` | Skip derivative processing |\n| `--retries=N` | Number of retry attempts |\n| `--remote-name=NAME` | Set remote filename (for stdin uploads) |\n| `--keep-directories` | Preserve directory structure in remote filename |\n| `-o, --open-after-upload` | Open item in browser after upload |\n| `--file-metadata=FILE` | File-level metadata from JSONL file |\n| `--spreadsheet=FILE` | Bulk upload from CSV spreadsheet |\n\n### Common Metadata Fields\n\n```bash\n--metadata=\"title:My Document Title\"\n--metadata=\"creator:Author Name\"\n--metadata=\"description:A description of the content\"\n--metadata=\"subject:topic1;topic2\"\n--metadata=\"collection:community_texts\"\n--metadata=\"date:2024-01-15\"\n--metadata=\"language:eng\"\n```\n\n### Examples\n\n```bash\n# Upload a PDF document\nia upload my-document-2024 document.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"title:My Document\" \\\n  --metadata=\"creator:John Doe\"\n\n# Upload multiple files\nia upload my-archive file1.pdf file2.pdf file3.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"title:Document Collection\"\n\n# Upload with checksum verification and retries\nia upload my-item large-file.zip \\\n  --metadata=\"mediatype:data\" \\\n  --checksum \\\n  --retries=10\n\n# Upload from stdin\ncat data.gz | ia upload my-item - \\\n  --remote-name=data.gz \\\n  --metadata=\"mediatype:data\"\n\n# Bulk upload using spreadsheet\nia upload --spreadsheet=metadata.csv\n```\n\n**Notes:**\n- Items receive `data` mediatype by default if not specified\n- Mediatype can only be changed after upload with admin support\n- Derivative generation takes seconds to days depending on file type and system load\n- Items typically appear in search within minutes, but can take up to 24 hours\n\n### Test Collection\n\nUpload to `test_collection` for validation - items are automatically removed after ~30 days:\n\n```bash\nia upload my-test-item file.pdf \\\n  --metadata=\"mediatype:texts\" \\\n  --metadata=\"collection:test_collection\"\n```\n\n### Identifier Guidelines\n\n- Use lowercase letters, numbers, and hyphens\n- No spaces or special characters\n- Keep it descriptive but concise\n- Check if identifier exists: `ia metadata \u003Cidentifier> --exists`\n\n### Item Thumbnail Image\n\nTo set a custom thumbnail for an item, upload an image named `\u003Cidentifier>_itemimage.jpg`:\n\n```bash\nia upload my-item my-item_itemimage.jpg\n```\n\n### Restricting Downloads\n\nTo make files streamable but not downloadable, add the item to the `stream_only` collection:\n\n```bash\nia metadata \u003Cidentifier> --append-list=\"collection:stream_only\"\n```\n\n## Metadata Operations\n\nView and modify item metadata:\n\n```bash\n# View metadata (JSON output)\nia metadata \u003Cidentifier>\n\n# Extract specific field with jq\nia metadata \u003Cidentifier> | jq '.metadata.date'\n\n# List file formats contained in an item\nia metadata \u003Cidentifier> --formats\n\n# Modify metadata (set or replace)\nia metadata \u003Cidentifier> --modify=\"title:New Title\"\nia metadata \u003Cidentifier> --modify=\"foo:bar\" --modify=\"baz:value\"\n\n# Remove a metadata field\nia metadata \u003Cidentifier> --modify=\"fieldname:REMOVE_TAG\"\n\n# Append value to existing field\nia metadata \u003Cidentifier> --append=\"title:Subtitle Here\"\n\n# Append to list field (e.g., subjects)\nia metadata \u003Cidentifier> --append-list=\"subject:new topic\"\n\n# Remove specific value from list field\nia metadata \u003Cidentifier> --remove=\"subject:old topic\"\n\n# Modify file-level metadata\nia metadata \u003Cidentifier> --target=\"files\u002Ffoo.txt\" --modify=\"title:My File\"\n\n# Bulk updates from spreadsheet\nia metadata --spreadsheet=metadata.csv\n```\n\n## List Operations\n\nList files in an Internet Archive item:\n\n```bash\nia list \u003Cidentifier>\n```\n\nShows all files with details (name, size, format).\n\n### List Parameters\n\n| Parameter | Description |\n|-----------|-------------|\n| `--columns=name,size` | Specify columns to show |\n| `--glob=\"*.pdf\"` | Filter by pattern |\n| `-l, --location` | Print full URLs for each file |\n| `-a, --all` | List all available file information |\n| `-v, --verbose` | Print column headers |\n\n```bash\n# List with full URLs\nia list my-item --location\n\n# List all file info with headers\nia list my-item --all --verbose\n\n# List specific columns\nia list my-item --columns=name,size,format\n```\n\n## Tasks and Jobs\n\nCheck status of catalog tasks (uploads, derives, etc.):\n\n```bash\n# Check tasks for a specific item\nia tasks \u003Cidentifier>\n\n# Check all your tasks\nia tasks\n```\n\n### Darking and Undarking Items\n\nTo make an item dark (hidden from public access) or undark it:\n\n```bash\n# Dark an item (requires comment)\nia tasks \u003Cidentifier> --cmd=make_dark.php --comment=\"Reason for darking\"\n\n# Undark an item\nia tasks \u003Cidentifier> --cmd=make_undark.php --comment=\"Reason for undarking\"\n```\n\n## Bulk Operations with GNU Parallel\n\nFor batch processing many items, use [GNU Parallel](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Fparallel\u002F) to run `ia` commands concurrently.\n\n### Installation\n\n```bash\n# macOS\nbrew install parallel\n\n# Debian\u002FUbuntu\napt install parallel\n```\n\n### Basic Usage\n\nPipe item identifiers to parallel, using `{}` as placeholder:\n\n```bash\n# Fetch metadata for many items\ncat itemlist.txt | parallel 'ia metadata {}'\n\n# Download multiple items\ncat itemlist.txt | parallel 'ia download {}'\n```\n\n### Careful Batch Processing\n\nFor reliable bulk operations, use job logging to track progress and handle failures:\n\n```bash\n# Step 1: Create item list\nia search 'collection:myproject' --itemlist > itemlist.txt\n\n# Step 2: Run with job logging\ncat itemlist.txt | parallel --joblog job.log 'ia download {}'\n\n# Step 3: Check for failures\necho $?  # 0 = all succeeded\n\n# Step 4: Retry only failed jobs\nparallel --retry-failed --joblog job.log\n```\n\n### Job Log Benefits\n\nThe `--joblog` file tracks each command's exit status, allowing you to:\n- Resume interrupted batch jobs\n- Retry only failed items without re-processing successes\n- Audit what succeeded and failed\n\n### Dry Run First\n\nAlways preview before bulk execution:\n\n```bash\ncat itemlist.txt | parallel --dry-run 'ia download {}'\n```\n\n### Rate Limiting\n\nControl concurrency to avoid overwhelming the server:\n\n```bash\n# Limit to 4 concurrent jobs\ncat itemlist.txt | parallel -j4 'ia download {}'\n\n# Add delay between jobs\ncat itemlist.txt | parallel --delay 1 'ia download {}'\n```\n\nSee: https:\u002F\u002Farchive.org\u002Fdevelopers\u002Finternetarchive\u002Fparallel.html\n\n## Best Practices\n\n1. **Always configure before uploading** - Run `ia configure` first\n2. **Use meaningful identifiers** - Descriptive, lowercase, hyphenated\n3. **Include proper metadata** - At minimum: mediatype, title, creator\n4. **Check before uploading** - Verify identifier doesn't exist: `ia metadata \u003Cid>`\n5. **Use checksums** - Add `--checksum` for large uploads to enable resume\n6. **Respect rate limits** - Don't spam requests; add delays for bulk operations\n7. **Test with dry-run** - Use `--dry-run` to preview operations\n8. **Use test_collection first** - Validate uploads before committing to permanent collections\n9. **Zip large file sets** - Bundle many small files into archives before uploading\n10. **Specify language** - Set `language` metadata for proper OCR processing on texts\n\n## Error Handling\n\n| Error | Solution |\n|-------|----------|\n| \"not configured\" | Run `ia configure` or set environment variables |\n| \"identifier exists\" | Choose a different identifier |\n| \"permission denied\" | Check credentials at https:\u002F\u002Farchive.org\u002Faccount\u002Fs3.php |\n| \"network error\" | Retry the operation; check internet connection |\n| \"item not found\" | Verify the identifier spelling |\n| \"429 Too Many Requests\" | Rate limited; wait and retry with `Retry-After` header value |\n| Item not appearing in search | Usually appears within minutes; check `ia tasks \u003Cidentifier>` for pending jobs |\n| Derive task failed | Check filename characters, file format, language metadata |\n\n## Quick Reference\n\n```bash\n# Search\nia search 'query'\nia search 'query' --itemlist\n\n# Download\nia download \u003Cidentifier>\nia download \u003Cidentifier> --glob=\"*.pdf\"\n\n# Upload (requires auth)\nia upload \u003Cidentifier> files --metadata=\"mediatype:texts\"\n\n# Metadata\nia metadata \u003Cidentifier>\nia metadata \u003Cidentifier> --modify=\"title:New Title\"\n\n# List files\nia list \u003Cidentifier>\n\n# Tasks\nia tasks \u003Cidentifier>\n\n# Config\nia configure\nia configure --whoami\n\n# Install\nuv tool install internetarchive\n```\n\n## API Reference\n\nFor programmatic access beyond the CLI, see the full developer documentation: **https:\u002F\u002Farchive.org\u002Fdevelopers**\n\n### Core APIs\n\n| API | Description |\n|-----|-------------|\n| [Items](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fitems.html) | Understanding item structure and access |\n| [Metadata Schema](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmetadata-schema\u002F) | Complete metadata field reference |\n| [Metadata Read](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmd-read.html) | Retrieve item metadata via API |\n| [Metadata Write](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fmd-write.html) | Modify item metadata via API |\n| [IAS3](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fias3.html) | S3-compatible API for uploads |\n| [Tasks](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Ftasks.html) | Task queue management |\n\n### Additional APIs\n\n| API | Description |\n|-----|-------------|\n| [Changes](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fchanges.html) | Track item modifications across the archive |\n| [Views](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fviews_api.html) | Access viewing and download statistics |\n| [Reviews](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Freviews.html) | Manage item reviews |\n| [Simple Lists](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fsimplelists.html) | Create item relationships and lists |\n| [OCR Service](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Focr.html) | Text recognition service |\n| [PDF Service](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Fpdf.html) | PDF generation and processing |\n\n### Python Library\n\nFor Python integration: [internetarchive library](https:\u002F\u002Farchive.org\u002Fdevelopers\u002Finternetarchive\u002F)\n\n### TypeScript Library (Third-Party)\n\nA community-maintained TypeScript port is available: [internetarchive-ts](https:\u002F\u002Fgithub.com\u002Fkarpour\u002Finternetarchive-ts) ([docs](https:\u002F\u002Fkarpour.github.io\u002Finternetarchive-ts\u002F))\n\nNote: This is a work in progress and not officially maintained by the Internet Archive.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":39},[40],"search query | identifier | command","main","861c87495f42509ea071cb5d63ea05ee270ff68e","skills\u002Finternetarchive\u002Fia","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills","https:\u002F\u002Fgithub.com\u002FTudorAndrei","blog.tudorandrei.xyz","A.I Engineer, Self-Host Addict, problem solver","2026-11-15 01:24:58",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add TudorAndrei\u002Fskills --skill ia",{"tool":55,"command":56},"bunx","bunx skills add TudorAndrei\u002Fskills --skill ia",{"tool":58,"command":59},"pnpm","pnpm dlx skills add TudorAndrei\u002Fskills --skill ia","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Finternetarchive\u002Fia\u002FSKILL.md",true,[63,69,74],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"agents\u002Fopenai.yaml","REFERENCE","参考文档",203,"https:\u002F\u002Fgithub.com\u002Ftkogut\u002Fagents-os-core\u002Fblob\u002Fmaster\u002Fvault\u002F.agents\u002Fskills\u002Fmigration\u002Fagents\u002Fopenai.yaml",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":16},"LICENSE.upstream","LICENSE","许可证",34523,{"path":75,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":76,"sourceHtmlUrl":77},"UPSTREAM.md",502,"https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Finternetarchive\u002Fia\u002FUPSTREAM.md",[79,88,106,133,159,178],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":34},"01M744PFYVPQ8649E3PFNFGR3Q","lintlang","Lint AI agent instruction files (SKILL.md, CLAUDE.md, AGENTS.md, GEMINI.md), tool definitions, system prompts, and agent configs with the deterministic LintLang CLI. Use when writing, editing, or reviewing agent instructions to catch ambiguous tool descriptions, missing stop conditions, schema\u002Fdescription mismatches, mixed output formats, or prompts embedded in Python before they reach runtime. Zero-LLM static analysis; no model calls and no network calls during a scan.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhermes-labs-ai\u002Flintlang\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhermes-labs-ai\u002Flintlang\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":34},"01M6WQZKB9FB911QQZER8JRHWV","untangle-codebase","Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.","MIT","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcaldoai\u002Funtangle-codebase\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcaldoai\u002Funtangle-codebase\u002FSKILL.md",[],[97,98,99,100,101,102,103,104,105],"codebase","untangle codebase","true","change","focus","debug","break","it","read",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":34},"01M6E06JZVA77Z20EGNF5XR1NF","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-labs\u002Fagent-browser\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-labs\u002Fagent-browser\u002FSKILL.md",[],[114,115,116,117,118,119,120,121,122,123,124,125,126,127,24,128,129,130,131,132],"agent browser","browser","open","testing","browser automation","messages","actions","notion","figma","click","web tools","app","qa","apps","discord","code","scrape","ai agents","interaction",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":34},"01M6E06F024S9M0534GR7WQR71","find-docs","Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates.\nAlways use for: API syntax questions, configuration options, version migration issues, \"how do I\" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage.\nUse even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fupstash\u002Ffind-docs\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fupstash\u002Ffind-docs\u002FSKILL.md",[],[141,142,143,144,145,146,147,148,21,149,150,151,152,153,154,129,155,156,157,158],"docs","find","find docs","references","prisma","reflect","Tailwind","web search","training","signatures","up","issues","spring boot","debugging","express","api","react","documentation",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":34},"01M6E053D3K23M7KH5MSMH00JV","test-audit","Writing\u002Fchanging\u002Freviewing\u002Fsweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw\u002Ftest-audit\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw\u002Ftest-audit\u002FSKILL.md",[],[167,168,169,170,171,172,173,174,175,176,177],"test","test audit","audit","writing","duplicate","remove","tests","only","implementation","Production","proof",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":182,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":34},"01M6E04RWKEV4YWEM2BACNSQS9","tmux","Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output. Use when a task needs an interactive terminal program, such as a REPL, debugger, or TUI, that a one-shot shell command cannot drive.","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmitsuhiko\u002Ftmux\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FTudorAndrei\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmitsuhiko\u002Ftmux\u002FSKILL.md",[],[180,186,187,188,189,190,191,192],"mise","scraping","gdb","control","python","sessions","interactive"]