{"name":"Packagist PHP Package Search API","description":"PHP Composer packages from a Packagist search, with package name, description and package link.","api_id":"generated_f85e54f9e882678465d75f31","slug":"packagist-php-package-search-api","source":{"name":"Packagist","domain":"packagist.org","url":"https://packagist.org/"},"category":"public_data","countries":[],"languages":["en"],"record_types":[],"tags":[],"limitations":[],"updated":"2026-11-11","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.2","versions":[{"major":1,"latest_minor":"1.2","status":"current","sunset_at":null}],"changelog":[{"version":"1.2","date":"2026-11-11T10:19:59.000Z","kind":"minor","changes":[]},{"version":"1.1","date":"2026-11-06T16:01:05.000Z","kind":"minor","changes":[]},{"version":"1.0","date":"2026-11-03T17:58:40.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_f85e54f9e882678465d75f31_search","name":"Extract records","description":"Return records within the accepted scope.","definition_version":"e52fe69f9cec8ad0934bde005d27abefb2cb8c0fcf3599112eac20c6be8d6391","method":"POST","path":"/v1/catalog/public/apis/generated_f85e54f9e882678465d75f31/endpoints/generated_f85e54f9e882678465d75f31_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_f85e54f9e882678465d75f31/endpoints/generated_f85e54f9e882678465d75f31_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":200,"examples":["console","provides"],"default":"symfony","description":"Optional. Free text for the page's own \"q\" box, sent as its query key exactly as typed. Omit it for the page's own records."}},"required":["q"],"additionalProperties":false},"output_schema":{"additionalProperties":false,"properties":{"description":{"type":["string"]},"downloads":{"type":["number"]},"favers":{"type":["number"]},"name":{"type":["string"]},"repository":{"type":["string"]},"url":{"type":["string"]}},"required":["url"],"type":"object"},"examples":[{"kind":"saved_validation_records","saved_at":"2026-11-11T10:19:59.359Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"name":"symfony/console","description":"Eases the creation of beautiful and testable command line interfaces","url":"https://packagist.org/packages/symfony/console"},{"name":"symfony/polyfill-php80","description":"Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions","url":"https://packagist.org/packages/symfony/polyfill-php80"}]}],"request_example":{"body":{"input":{"q":"symfony"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_f85e54f9e882678465d75f31/endpoints/generated_f85e54f9e882678465d75f31_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"q\": \"symfony\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_f85e54f9e882678465d75f31/endpoints/generated_f85e54f9e882678465d75f31_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/packagist-php-package-search-api/","markdown":"https://cleanedweb.com/catalog/packagist-php-package-search-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_f85e54f9e882678465d75f31/endpoints/generated_f85e54f9e882678465d75f31_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/packagist-php-package-search-api/","markdown":"https://cleanedweb.com/catalog/packagist-php-package-search-api/index.md","contract":"https://cleanedweb.com/catalog/packagist-php-package-search-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
