{"files":{"SKILL.md":"---\nname: search-services\ndescription: \"Search Services API skill. Use when working with Search Services for search. Covers 3 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Search Services\nAPI version: 1.0.0\n\n## Auth\nNo authentication required.\n\n## Base URL\nhttps://api.archive.org/\n\n## Setup\n1. No auth setup needed\n2. GET /search/v1/scrape -- scrape search results from internet archive, allowing a scrolling cursor\n3. Explore available endpoints below\n\n## Endpoints\n3 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Search\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /search/v1/scrape | Scrape search results from Internet Archive, allowing a scrolling cursor |\n| GET | /search/v1/organic | Return relevance-based results from search queries |\n| GET | /search/v1/fields | Fields that can be requested |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Search scrape?\" -> GET /search/v1/scrape\n- \"Search organic?\" -> GET /search/v1/organic\n- \"List all fields?\" -> GET /search/v1/fields\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Paginated endpoints accept limit/offset or cursor parameters\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Search Services\n@base https://api.archive.org/\n@version 1.0.0\n@endpoints 3\n@toc search(3)\n\n@endpoint GET /search/v1/scrape\n@desc Scrape search results from Internet Archive, allowing a scrolling cursor\n@optional {q: any # Lucene-type search query, field: any # Metadata field, sort: any # sort collations, size: any # Number of query results to return, cursor: any # Cursor for scrolling (used for subsequent calls), total_only: any # Request total only; do not return hits, callback: any # Specifies a JavaScript function func, for a JSON-P response. When provided, results are wrapped as `callback(data)`, and the returned MIME type is application/javascript. This causes the caller to automatically run the func with the JSON results as its argument.}\n@returns(200) Scaping API\n\n@endpoint GET /search/v1/organic\n@desc Return relevance-based results from search queries\n@optional {q: any # Lucene-type search query, field: any # Metadata field, size: any # Number of query results to return, total_only: any # Request total only; do not return hits, callback: any # Specifies a JavaScript function func, for a JSON-P response. When provided, results are wrapped as `callback(data)`, and the returned MIME type is application/javascript. This causes the caller to automatically run the func with the JSON results as its argument.}\n@returns(200) Organic Search API. Returns results in descending relevance order\n\n@endpoint GET /search/v1/fields\n@desc Fields that can be requested\n@optional {callback: any # Specifies a JavaScript function func, for a JSON-P response. When provided, results are wrapped as `callback(data)`, and the returned MIME type is application/javascript. This causes the caller to automatically run the func with the JSON results as its argument.}\n@returns(200) Fields that can be requested\n\n@end\n"}}