{"id":13773139,"url":"https://github.com/eazar001/pl_omdb","last_synced_at":"2026-01-16T14:56:29.417Z","repository":{"id":89575888,"uuid":"52314886","full_name":"eazar001/pl_omdb","owner":"eazar001","description":"OMDB API access for SWI Prolog","archived":false,"fork":false,"pushed_at":"2017-08-14T17:59:27.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-02-15T02:34:15.354Z","etag":null,"topics":["callback","omdb","omdb-api","pl-omdb","swi-prolog"],"latest_commit_sha":null,"homepage":null,"language":"Prolog","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eazar001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-22T23:46:50.000Z","updated_at":"2017-03-17T17:24:05.000Z","dependencies_parsed_at":"2024-01-13T11:12:42.173Z","dependency_job_id":"deb4654f-905a-49d8-9719-0c63233ef6b5","html_url":"https://github.com/eazar001/pl_omdb","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eazar001%2Fpl_omdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eazar001%2Fpl_omdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eazar001%2Fpl_omdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eazar001%2Fpl_omdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eazar001","download_url":"https://codeload.github.com/eazar001/pl_omdb/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523690,"owners_count":21921815,"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":["callback","omdb","omdb-api","pl-omdb","swi-prolog"],"created_at":"2024-08-03T17:01:11.899Z","updated_at":"2026-01-16T14:56:29.388Z","avatar_url":"https://github.com/eazar001.png","language":"Prolog","funding_links":[],"categories":["API interfaces"],"sub_categories":[],"readme":"pl-omdb\n=======\nThis is A SWI-Prolog interface to the OMDB (Open Movie Database) API http://www.omdbapi.com\n\nExamples of Usage\n=================\n```prolog\n\n% Loading pl_omdb will create a special API key flag to store the API key to be referenced later\n?- use_module(library(pl_omdb)).\n\n% The user can store the API key in the special flag for access at runtime now\n?- set_prolog_flag(omdb_api_key, 'my_unique_key')\n\n% This will fetch the release date for Casino Royale, year 2006.\n?- omdb_fetch('Released'=Value, [title='Casino Royale',year='2006']).\n\n% This will fetch the object that corresponds to Casino Royale, 2006, with all the keys\n%  and respective values ... including results specific to Rotten Tomatoes.\n?- omdb_fetch(Key=Value, [title='Casino Royale',year='2006',tomatoes='true']).\n\n% Return list of search results along with number of results.\n?- omdb_search(Key=Value, [title='The Matrix']).\n\n% Iterate through all the search results while also unifying with the number of results found.\n?- omdb_search_results(Key=Value, [title='The Matrix'], NumResults).\n\n% Fetch the dictionary object for all titles matching \"The Matrix\".\n?- omdb_fetch_dict(Dict, [title='The Matrix']).\n\n% Fetch the dictionary object for search results pertaining to the title \"The Matrix\".\n?- omdb_search_dict(Dict, [title='The Matrix']).\n```\n\nAlternatively, one may specify the API key in the above examples as a first argument, if they\nwish to bypass the flag mechanism and/or use multiple keys in one application.\n\nThe `Options` list is a list of valid parameters to pass to the OMDB API. All parameters are\nessentially key values that are of the type atom (described below). All of these keys correspond\nto a value (all represented as string types).\n\nHere are some valid options for fetches/retrievals:\n* id\n* title\n* media_type (this is the OMDB 'type' parameter)\n* year\n* plot\n* tomatoes\n* callback\n* version\n\n... And for searches:\n* title\n* media_type (this is the OMDB 'type' parameter)\n* year\n* page\n* callback\n* version\n\nFor more information regarding the parameters visit the official website link posted at the top of\nthis page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feazar001%2Fpl_omdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feazar001%2Fpl_omdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feazar001%2Fpl_omdb/lists"}