cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/images/search' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"query": "Atlas Pro product packaging on a white background"
}'{
"data": {
"query": "Atlas Pro product packaging on a white background",
"candidates": [
{
"id": "a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"url": "https://www.rainbrand.com/img/a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"description": "Atlas Pro packaging on white.",
"width": 1536,
"height": 1024,
"aspectRatio": "3:2",
"distance": 0.24
}
],
"nextCursor": null,
"hasMore": false
}
}{
"error": {
"code": "INVALID_CURSOR",
"status": 400,
"message": "Invalid pagination cursor",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 422,
"message": "Brand session not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}Brand Library
Search Library images
Find Brand Library images by what they depict, such as product photos or packaging. Generated images are excluded.
POST
/
images
/
search
cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/images/search' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"query": "Atlas Pro product packaging on a white background"
}'{
"data": {
"query": "Atlas Pro product packaging on a white background",
"candidates": [
{
"id": "a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"url": "https://www.rainbrand.com/img/a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"description": "Atlas Pro packaging on white.",
"width": 1536,
"height": 1024,
"aspectRatio": "3:2",
"distance": 0.24
}
],
"nextCursor": null,
"hasMore": false
}
}{
"error": {
"code": "INVALID_CURSOR",
"status": 400,
"message": "Invalid pagination cursor",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 422,
"message": "Brand session not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}Authorizations
apiKeybeareroauth
Body
application/json
Was this page helpful?