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="
Path parameters
Query parameters
The architecture of the packages. (i.e. x86_64, arm64, amd64) - Alpine/RPM/Debian only.
The name of the distribution the package is in. (i.e. ubuntu, el/6) - Overrides [:filter]
Search by package type (RPMs, Debs, DSCs, Gem, Python, Node) - Ignored when [:dist] is present.
One-based page index.
The number of packages to return from the results set. If nothing passed, default is 30
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"
}
]Changes
Changed in 1 of the 5 revisions of this API.5
- ▲
the response property
items/architecturebecame optional for the status200response-property-became-optional
- ▲
the response property
items/epochbecame optional for the status200response-property-became-optional
- ▲
the response property
items/releasebecame optional for the status200response-property-became-optional
- ▲
the response property
items/scopebecame optional for the status200response-property-became-optional
- ▲
the response property
items/sha256sumbecame optional for the status200response-property-became-optional
- ▲