{"id":19492423,"url":"https://github.com/cosmitar/imvdb-client","last_synced_at":"2025-04-25T19:32:28.311Z","repository":{"id":84689691,"uuid":"46321601","full_name":"Cosmitar/imvdb-client","owner":"Cosmitar","description":"IMVDb API client written in ES6. An easy to use SDK for IMVDb Web API endpoints. https://imvdb.com/developers/api/","archived":false,"fork":false,"pushed_at":"2015-11-18T15:38:47.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T02:51:06.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cosmitar.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-17T03:46:12.000Z","updated_at":"2022-07-27T06:35:51.000Z","dependencies_parsed_at":"2023-03-13T01:21:01.294Z","dependency_job_id":null,"html_url":"https://github.com/Cosmitar/imvdb-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmitar%2Fimvdb-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmitar%2Fimvdb-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmitar%2Fimvdb-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmitar%2Fimvdb-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cosmitar","download_url":"https://codeload.github.com/Cosmitar/imvdb-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250882637,"owners_count":21502341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T21:21:05.374Z","updated_at":"2025-04-25T19:32:27.994Z","avatar_url":"https://github.com/Cosmitar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMVDb Web API Client | ES6\nClient written in ECMAScript 6. An easy to use SDK for [IMVDb Web API](https://imvdb.com/developers/api/) endpoints.\n\n## Simple usage\nFind (by id)\n```javascript\nVideo.find( '121779770452' )\n    .then( ... );\n```\n\nSearch videos by keyword\n```javascript\nVideo.where( 'aerosmith' )\n    .then( ... );\n```\n\nGet Entity item by id\n```javascript\nEntity.find( 634 )\n    .then( ... );\n```\n\nFind a video with includes\n```javascript\nVideo.find( '121779770452', ['credits','sources','featured','popularity'] )\n    .then( ... );\n```\n\n## Examples\n*Search videos with pagination options*\n```javascript\nlet config = {\n    per_page: 10,\n    page: 2\n};\n//keep this var on a scope reachable from UI\nlet currentPage;\n\nVideo.where( 'Abba Mamma Mia', config )\n    .then( page =\u003e {\n        //first time that I've got a page.\n        //store the page into a scope to access it from next-click-handler event\n        currentPage = page;\n        drawVideosList( page.elements );//draw your list here\n    });\n\nlet onClickNextHandler = () =\u003e {\n    currentPage.next()\n        .then( page =\u003e {\n            //currentPage automatically updates with the last page recovered.\n            drawVideosList( page.elements );//draw your list here\n        })\n}\n```\n\n*Get first video from a search and draw its artists*\n```javascript\nVideo.where( 'uptown funk' )\n    .then( page =\u003e {\n        let video = page.firstElement();\n        drawArtistList( video.artists );\n    });\n```\n\n*Find and Entity by id*\n```javascript\nEntity.find( 634 )\n    .then( entity =\u003e {\n        drawEntity( entity );\n    });\n\n```\n\n*Search a Video and get its featured artists*\n```javascript\nVideo.where( 'Lady Marmalade', ['featured'] )\n    .then( page =\u003e {\n        let video = page.firstElement();\n        drawArtistList( video.featured_artists );\n    });\n````\n\nNo more features by now until IMVDb support replies about the API development continuity. Some server-side issues arose in this development process.\n\n## Development\n```git clone git@github.com:Cosmitar/imvdb-client.git```\n\n```npm install```\n\n```gulp watch```\n\nOpen the localhost:3000/demo/index.html and look for console logs\n\n##Installation\nIMVDb discourages production use because API is still in beta.\n\n##License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmitar%2Fimvdb-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmitar%2Fimvdb-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmitar%2Fimvdb-client/lists"}