unusualarchive/api
2023-05-19 15:31:05 +02:00
..
__init__.py ADD: Api endpoint for search suggestions 2023-05-18 22:42:07 +02:00
README.md Added limit parameter to VideoAPI search and improved documentation 2023-05-19 15:31:05 +02:00
urls.py Api endpoint for video search with querying implemented 2023-05-19 01:06:50 +02:00
views.py Added limit parameter to VideoAPI search and improved documentation 2023-05-19 15:31:05 +02:00

VideoAPI

GET \api?param=value

Parameters

Param Value
q The search query string.
limit A limit on the number of objects to be returned. Default is 6.

Response

[
    {
        "id": 1,
        "name": "Video 1"
    },
    {...}
]

Examples

GET /api?q=foo&limit=3 will return the first 3 videos with "foo" in their name.