Query

Method: POST
URL: https://www.wellcomemat.com/api/media/query.php

Notes:

  1. If no parameters are specified, query will return ALL medias for this account, including shared videos. This is inadvisable for users with large video libraries.

  2. If hash or customid are not provided and user_id OR unique_id ARE provided, query will return ALL medias for the user specified account. I.E. If you are the key and secret owner, if you specify your user_id you will only receive your videos. If you were to specify an account’s user_id that shares videos to your account, it will return only those user’s videos.

Parameters

KeyTypeDescription
keytext{{key}}
secrettext{{secret}}
hashtextMedia Hash. We highly recommended using the hash to avoid handling duplicates as this is a unique identifier for the video.
customidtextCustom/Listing ID. A Custom ID is a unique code you can use to more easily identify your video when connecting to WellcomeMat via our API.
user_idtextThis is WellcomeMat’s internal ID for users of our system.
unique_idtextThis is an ID assigned to users externally from WellcomeMat (Example: agent, member or associate IDs)
ortitlewordstextOR Title Words
  • Comma separated list of title words
  • Returned media will have at least one of the title words
andtitlewordstextAND Title Words
  • Comma separated list of title words
  • Returned media will have all of the title words
orkeywordstextOR Keywords
  • Comma separated list of keywords(“tags”)
  • Returned media will have at least one of the keywords(“tags”)
andkeywordstextAND Keywords
  • Comma separated list of keywords(“tags”)
  • Returned media will have all of the keywords(“tags”)
statustextMedia Status. Must be a valid status code [100-700]
playlisttextMust be a valid playlist id. To maintain the playlist’s video order, do not specify a sort
video_typetextMust be a valid type id [1-99]
start_datetextShow videos uploaded after start_date. Format: YYYY-MM-DD hh:mm:ss
end_datatextShow videos uploaded before end_date. Format: YYYY-MM-DD hh:mm:ss
metadata_updated_starttextShow videos with data modified after metadata_updated_start. Format: YYYY-MM-DD hh:mm:ss
metadata_updated_endtextShow videos with data modified before metadata_updated_end. Format: YYYY-MM-DD hh:mm:ss
limittextLimit results. [Integer]
sorttextMust be a valid sorting option, either “newest” or “oldest” first
include_playliststextInclude playlists in results.
  • Boolean: 1 or 0 (defaults to 0)
  • Whether to include the playlists that a video is in

Response

type MediaQueryResponse = {
    success: 0 | 1;
    error: string;
    warnings: string;
    medias: Media[];
};