packages
search
Pass pagination information using the following headers listed here:
Example request:
curl "https://packagecloud.io/api/v1/repos/test_user/test_repo/search?q="
get/api/v1/repos/{user_id}/{repo}/search.json
Path parameters
user_idstring required
repostring required
Query parameters
archstring
The architecture of the packages. (i.e. x86_64, arm64, amd64) - Alpine/RPM/Debian only.
diststring
The name of the distribution the package is in. (i.e. ubuntu, el/6) - Overrides [:filter]
filterstring
Search by package type (RPMs, Debs, DSCs, Gem, Python, Node) - Ignored when [:dist] is present.
pageinteger
One-based page index.
per_pagestring
The number of packages to return from the results set. If nothing passed, default is 30
qstring
The query string to search for package filename. If empty string is passed, all packages are returned
Response
PackageFragment A JSON array of PackageFragment objects hat match the query parameters.
Example response
[
{
"name": "jake",
"distro_version": "fedora/22",
"created_at": "2017-03-13T02:49:29.000Z",
"version": "1.0",
"release": "1.el6",
"epoch": 0,
"scope": null,
"private": false,
"type": "rpm",
"filename": "jake-1.0-1.el6.x86_64.rpm",
"uploader_name": "test_user",
"indexed": false,
"repository_html_url": "/test_user/test_repo",
"package_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6.json",
"downloads_detail_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/detail.json",
"downloads_series_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/series/daily.json",
"downloads_count_url": "/api/v1/repos/test_user/test_repo/package/rpm/fedora/22/jake/x86_64/1.0/1.el6/stats/downloads/count.json",
"package_html_url": "/test_user/test_repo/packages/fedora/22/jake-1.0-1.el6.x86_64.rpm",
"promote_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm/promote.json",
"delete_url": "/api/v1/repos/test_user/test_repo/fedora/22/jake-1.0-1.el6.x86_64.rpm"
}
]