import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/search",
headers={"X-API-Key": "xinobi"},
json={
"query": "beach sunset",
"unique_id": "your-bucket-id"
}
)
{
"results": {
"media": [
{"videoNo": "VI123", "videoName": "beach", "score": 0.89}
],
"text": [
{"id": "456", "content": "Amazing sunset at the beach!"}
]
}
}
Search
Search Bucket
Search a bucket for videos, images, and text
POST
/
search
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/search",
headers={"X-API-Key": "xinobi"},
json={
"query": "beach sunset",
"unique_id": "your-bucket-id"
}
)
{
"results": {
"media": [
{"videoNo": "VI123", "videoName": "beach", "score": 0.89}
],
"text": [
{"id": "456", "content": "Amazing sunset at the beach!"}
]
}
}
Search all content in a bucket using natural language.
Parameters
string
required
What to search for
string
required
Bucket ID
integer
default:"10"
Max results
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/search",
headers={"X-API-Key": "xinobi"},
json={
"query": "beach sunset",
"unique_id": "your-bucket-id"
}
)
{
"results": {
"media": [
{"videoNo": "VI123", "videoName": "beach", "score": 0.89}
],
"text": [
{"id": "456", "content": "Amazing sunset at the beach!"}
]
}
}