- Previous: Media Endpoints
- Up: Viddy Documentation
- Next: Object References
Search Endpoints
/v1/users/search
/v1/media/tags/search
/v1/media/search
User Search - /v1/users/search
HTTP Verb (GET)
Returns all users associated with a search query. The third parameter of this endpoint determines in which field to search. You have the option of searching username, fill_name, email, Facebook username, and twitter usernames. If this parameter is omitted, the search will default to username.
Input Parameters
|
Input |
Optional |
Description |
|
access_token |
N |
A valid authority token |
|
q |
N |
Search Query |
|
search_type |
Y |
Describes which field to search in (username, fill_name, emaile, facebook, twitter). Default search is by username. |
|
count |
Y |
Number of entries to return |
Output Parameters
|
Output |
Optional |
Description |
|
result |
N |
result code |
|
desc |
Y |
error description if result != 0 |
|
medias[] |
N |
|
|
N |
Media id |
|
N |
Media type |
|
N |
Media title |
|
N |
A media thumbnail object |
|
N |
A url to the media file |
|
N |
A url to link to the web player for the video |
|
N |
Comment count |
|
N |
Likes count |
|
N |
Tags count |
|
N |
Flag count |
|
N |
|
|
N |
Location name |
|
N |
Latitude |
|
N |
Longitude |
|
N |
Altitude |
|
N |
City |
|
N |
State |
|
N |
Zip |
|
N |
Country |
|
N |
Status of the user: active or inactive |
|
N |
|
|
N |
user ID |
|
N |
username |
|
N |
First and last name |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
A url to the users Viddy profile |
|
N |
The users profile picture thumbnail object |
|
N |
The users profile picture object |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
Production pack used on that video |
|
N |
Shortened url to media |
|
N |
Description of the video submitted by creator |
|
N |
The visibility of the video: public, private, or trending. |
|
N |
The ID of the effect that has been applied to the video. |
|
N |
The FB location ID |
|
N |
The duration of the video |
Tag Search - /v1/media/tags/search
HTTP Verb (GET)
Searches the media database and returns all media with metadata (i.e. hashtags) that match the query keyword. If the search does not yield any results, the medias array will be empty.
If the count parameter (number of results) is not specified, the search defaults to 100.
Input Parameters
|
Input |
Optional |
Description |
|
q |
N |
Query string |
|
count |
Y |
Number of entries to return |
Output Parameters
|
Output |
Optional |
Description |
|
result |
N |
result code |
|
desc |
Y |
error description if result != 0 |
|
medias[] |
N |
|
|
N |
Media id |
|
N |
Media type |
|
N |
Media title |
|
N |
A media thumbnail object |
|
N |
A url to the media file |
|
N |
A url to link to the web player for the video |
|
N |
Comment count |
|
N |
Likes count |
|
N |
Tags count |
|
N |
Flag count |
|
N |
|
|
N |
Location name |
|
N |
Latitude |
|
N |
Longitude |
|
N |
Altitude |
|
N |
City |
|
N |
State |
|
N |
Zip |
|
N |
Country |
|
N |
Status of the user: active or inactive |
|
N |
|
|
N |
user ID |
|
N |
username |
|
N |
First and last name |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
A url to the users Viddy profile |
|
N |
The users profile picture thumbnail object |
|
N |
The users profile picture object |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
Production pack used on that video |
|
N |
Shortened url to media |
|
N |
Description of the video submitted by creator |
|
N |
The visibility of the video: public, private, or following |
|
N |
The ID of the effect that has been applied to the video. |
|
N |
The FB location ID |
|
N |
The duration of the video |
Media Text Search - /v1/media/search
HTTP Verb (GET)
Searches the media database and returns all media for a particular search string. The search includes all fields for media (e.g. title, user). This endpoint also allows for geolocation search by including a geocode parameter. The geocode information should be a lat/long pair. The default radius around the geocode location is set to 5 miles. The search will return no videos If there are no videos uploaded within the lat/long pair.
The page parameter determines which page of results to return. The number of results per page is determined by the count. A request for the the first 50 (i.e. 0-49) medias would have the page parameter as 1. For the next 50 (i.e. 50-100), the page parameter would be 2. The page parameter defaults to 1.
If the search does not yield any results, the medias array will be empty.
Input Parameters
|
Input |
Optional |
Description |
|
q |
N |
Search Query |
|
geocode |
Y |
String of lat/long pair |
|
page |
Y |
The page number of results to return. |
|
count |
Y |
Number of entries to return |
Output Parameters
|
Output |
Optional |
Description |
|
result |
N |
result code |
|
desc |
Y |
error description if result != 0 |
|
medias[] |
N |
|
|
N |
Media id |
|
N |
Media type |
|
N |
Media title |
|
N |
A media thumbnail object |
|
N |
A url to the media file |
|
N |
A url to link to the web player for the video |
|
N |
Comment count |
|
N |
Likes count |
|
N |
Tags count |
|
N |
Flag count |
|
N |
|
|
N |
Location name |
|
N |
Latitude |
|
N |
Longitude |
|
N |
Altitude |
|
N |
City |
|
N |
State |
|
N |
Zip |
|
N |
Country |
|
N |
Status of the user: active or inactive |
|
N |
|
|
N |
user ID |
|
N |
username |
|
N |
First and last name |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
A url to the users Viddy profile |
|
N |
The users profile picture thumbnail object |
|
N |
The users profile picture object |
|
N |
Activity timestamp (unix timestamp 64-bit int) |
|
N |
Activity timestamp (unix timestamp 32-bit int) |
|
N |
Production pack used on that video |
|
N |
Shortened url to media |
|
N |
Description of the video submitted by creator |
|
N |
The visibility of the video: public, private, or following. |
|
N |
The ID of the effect that has been applied to the video. |
|
N |
The FB location ID |
|
N |
The duration of the video |
- Previous: Media Endpoints
- Up: Viddy Documentation
- Next: Object References
0 Comments
Please sign in to post a comment.