# Internet Archive on Onekey > 5 endpoints for Internet Archive (5 stable, 0 beta), 1 to 5 credits each. Category: Knowledge & reference. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/archive Reference (Markdown): https://onekey.dev/docs/api/archive.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 5 mapped Internet Archive endpoints return each: - `entity.id` (string): 2 - `entity.name` (string): 2 - `entity.type` (string): 2 - `entity.description` (string): 1 - `entity.stats.downloads` (integer): 1 - `media.sizeBytes` (integer): 1 - plus 11 platform-specific fields under `ext.` ## Endpoints ### archive.cdx_latest Latest Wayback CDX capture of a URL (timestamp, status, mimetype). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/archive/cdx_latest?url=example.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): Domain or path to look up - Fields returned: `ext.snapshotTimestamp`, `ext.snapshotUrl`, `ext.snapshotStatus`, `ext.snapshotMimetype` - Reference: https://onekey.dev/docs/api/archive/cdx_latest.md ### archive.item Internet Archive item metadata. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/archive/item?id=nasa` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Archive item identifier, e.g. nasa - Fields returned: `entity.id`, `entity.name`, `entity.description`, `entity.type`, `ext.fileCount`, `ext.sizeBytes` - Reference: https://onekey.dev/docs/api/archive/item.md ### archive.item_files Files of an Internet Archive item. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/archive/item_files?id=nasa` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Archive item identifier - Fields returned: `media.sizeBytes`, `ext.name`, `ext.format`, `ext.md5` - Reference: https://onekey.dev/docs/api/archive/item_files.md ### archive.search Search Internet Archive items (advancedsearch). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/archive/search?q=title%3Anasa` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `entity.id`, `entity.name`, `entity.type`, `entity.stats.downloads`, `ext.author` - Reference: https://onekey.dev/docs/api/archive/search.md ### archive.wayback_available Closest Wayback Machine snapshot of a URL. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/archive/wayback_available?url=example.com` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): URL or domain to look up - Fields returned: `ext.snapshotUrl`, `ext.snapshotTimestamp`, `ext.snapshotStatus`, `ext.snapshotAvailable` - Reference: https://onekey.dev/docs/api/archive/wayback_available.md ## Sample request ```bash curl "https://api.onekey.dev/v1/archive/cdx_latest?url=example.com" \ -H "x-api-key: YOUR_API_KEY" ```