Integrating the Moonshine API
Indexes
Creating and managing an index
Creating an Index
To create an index, run:
Uploading to an Index
To upload a file, specify both its source location and the destination index.
Moonshine will automatically assign unique file IDs in the index to prevent naming conflicts. We recommend saving the unique fileIDs as they are essential for making queries.
After uploading, videos can take several minutes to complete indexing and become searchable.
Remote Uploads
Files can also be uploaded from remote sources. To do this, insert the link to the remote file in place of the path:
Note that your files need to be publically accessible. If you need a secure cloud to cloud integration, reach out to us at team@usemoonshine.com.
Supported Filetypes
file type | type |
---|---|
.mp4 | video |
.mov | video |
.webm | video |
Need more file type support? Let us know at team@usemoonshine.com