{"id":20109500,"url":"https://github.com/agentcooper/node-livejournal","last_synced_at":"2025-05-06T10:31:22.168Z","repository":{"id":141124658,"uuid":"10580774","full_name":"agentcooper/node-livejournal","owner":"agentcooper","description":"LiveJournal API","archived":false,"fork":false,"pushed_at":"2015-09-18T12:46:27.000Z","size":256,"stargazers_count":15,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T05:20:38.942Z","etag":null,"topics":["livejournal"],"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/agentcooper.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":"2013-06-09T08:54:19.000Z","updated_at":"2020-08-14T12:52:25.000Z","dependencies_parsed_at":"2023-03-13T10:35:55.415Z","dependency_job_id":null,"html_url":"https://github.com/agentcooper/node-livejournal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fnode-livejournal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fnode-livejournal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fnode-livejournal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Fnode-livejournal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentcooper","download_url":"https://codeload.github.com/agentcooper/node-livejournal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252665956,"owners_count":21785176,"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":["livejournal"],"created_at":"2024-11-13T18:08:38.458Z","updated_at":"2025-05-06T10:31:21.799Z","avatar_url":"https://github.com/agentcooper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LiveJournal API\n\n[![Build Status](https://travis-ci.org/agentcooper/node-livejournal.svg?branch=master)](https://travis-ci.org/agentcooper/node-livejournal)\n\n`npm install livejournal`\n\nThis package provides access to both XMLRPC and JSONRPC APIs for LiveJournal.\n\n## XMLRPC\n\n* http://wh.lj.ru/s2/developers/f/LiveJournal_XML-RPC_Specification_(EN).pdf\n* http://www.livejournal.com/doc/server/ljp.csp.xml-rpc.protocol.html\n\nExamples\n\n```javascript\n// get posts inside the journal using XMLRPC\nLiveJournal.xmlrpc.getevents({\n  journal: 'brad',\n  auth_method: 'noauth',\n  selecttype: 'lastn',\n  howmany: 20\n}, function(err, value) {\n  console.log(value.events);\n});\n```\n\n```javascript\n// get post content using XMLRPC\nLiveJournal.xmlrpc.getevents({\n  journal: 'brad',\n  auth_method: 'noauth',\n  selecttype: 'one',\n  ditemid: '29215'\n}, function(err, post) {\n  console.log(post.events[0]);\n});\n```\n\n## JSONRPC\n\nThere is no official public description of LiveJournal JSON RPC methods, but you can check `Site.rpc.public` on `http://livejournal.com`. Because the data is stored on CDN, you can access the data from anywhere.\n\nThose are current ones (badly documented, contributions are welcome):\n\n##### `discovery.author_posts`\n##### `comment.get_thread`\nGet comments thread\n```\nParams:\njournal -- Journal username\nitemid -- Post id\n```\n##### `latest.get_entries`\nGet latest posts\n```\nParams:\nfirst_timepost\n```\n##### `browse.get_posts`\n##### `gifts.get_gifts_categories`\n##### `gifts.get_all_gifts`\n##### `homepage.get_categories`\n##### `discovery.suggest`\n##### `sitemessage.get_message`\n##### `discovery.get_categories`\n##### `browse.get_categories`\n##### `writers_block.get_list`\n##### `discovery.today`\n##### `discovery.get_feed`\n##### `discovery.get_item`\n##### `homepage.get_rating`\n##### `browse.get_communities`\n\n\nExamples\n\n```js\n// get latest posts using JSONRPC\nLiveJournal.jsonrpc.request('latest.get_entries', {\n  first_timepost: 1435262400\n}, function(err, res) {\n  console.log(res.body.result.params.recent);\n});\n```\n\n```js\n// get comments using JSONRPC\nLiveJournal.jsonrpc.request('comment.get_thread', {\n  journal: 'tema',\n  itemid: '1987717'\n}, function(err, res) {\n  console.log(res.body.result.comments)\n});\n```\n\nYou can access method list using `LiveJournal.jsonrpc.methods`.\n\n## API\n\nLiveJournal.API is wrapper around some resources provided at http://www.livejournal.com/bots/\n\n## Other docs and resources\n\n* http://www.livejournal.com/developer/\n* http://lj-dev.livejournal.com/\n* http://www.livejournal.com/bots/\n\n## Tests\n\n```\nnpm install jasmine -g\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Fnode-livejournal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentcooper%2Fnode-livejournal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Fnode-livejournal/lists"}