Search free stock photos and videos
Searches Pixabay (free photos and videos). Nothing is stored: import the one you choose. preview_url is for looking at a result only.
GET/v1/sites/{site_id}/media/stock
Requires sites:read. Costs no credits and stores nothing.
Each result has its provider, its id, its size, a description, its author and a preview_url. The preview is for looking at the result only: a site never links to it. Import the one you choose, and it is copied into the site’s media.
providers says which libraries can be searched now, for example { "pixabay": "available" }. List the models gives the same before any search. Naming a library that is unavailable is refused with service_unavailable, its name in details.provider and the available ones in details.providers.
English queries return the most results. Results come from Pixabay, the only library for now; provider is always pixabay. Answers are cached for a day.
At most 30 searches and imports a minute per workspace. Above that, and when the library itself is busy (one quota for all of Atelier201), the answer is 429 rate_limited with how long to wait in Retry-After and in details.retry_after_seconds: wait that long, then try again.
Authorizations
Authorizationbearerin headerrequiredPath parameters
site_idstringrequiredThe site's id, or its slug (the address before .atelier201.page).
Query parameters
querystringrequiredlength: 1–100 charsWhat to look for. English gives the most results.
kindenum<string>one of: image, videoimage (default) or video.
orientationenum<string>one of: landscape, portrait, squareproviderenum<string>one of: pixabayThe library. Pixabay is the only one for now, and the default.
per_pageintegerrange: 1–30pageintegerrange: 1–50localestringlength: ≤ 10 charsThe query's language, e.g. fr-FR.
Response
Search free stock photos and videos
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_credits
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, result_not_ready, idempotency_key_reused
errorobjectrequiredrequest_idstringrequiredPossible codes: result_expired
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large_for_plan
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired