{"version":"1.0","type":"rich","title":"Gist 5383571","description":"This example presents a web-based API for accessing Malaysian Member of Parliament profile data, exposing endpoints to list all MPs or retrieve a single MP by ID. Built with Bottle’s routing and SQLAlchemy’s ORM, it queries an SQLite database populated from ScraperWiki. The `/mp/api/list/` endpoint returns all records as JSON dictionaries, while `/mp/api/view/` filters by an `id` parameter using a SQLAlchemy select. Data originates from the scraperwiki source `malaysian_mp_profile`. The server runs locally via Bottle’s `run` function with debugging enabled.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5383571?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}