https://github.com/fallaciousreasoning/mobilizer-api
An API for mobilizing articles powered by Mozilla Readability
https://github.com/fallaciousreasoning/mobilizer-api
api json json-api mobilizer nextjs react readability readable
Last synced: 6 months ago
JSON representation
An API for mobilizing articles powered by Mozilla Readability
- Host: GitHub
- URL: https://github.com/fallaciousreasoning/mobilizer-api
- Owner: fallaciousreasoning
- Created: 2020-09-14T06:56:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T23:08:36.000Z (over 5 years ago)
- Last Synced: 2025-03-26T08:29:43.309Z (9 months ago)
- Topics: api, json, json-api, mobilizer, nextjs, react, readability, readable
- Language: TypeScript
- Homepage: https://mobilize.now.sh/
- Size: 88.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mobilizer API
This is an API for getting a readable version of an article. It is powered by [Mozilla Readability](https://github.com/mozilla/readability), which does all the heavy lifting.
A live version is available at https://mobilize.now.sh/
## API Docs
Requests should be to `/api/mobilize/{url}`. The url should be url encoded.
For example, requesting [this article](https://www.theguardian.com/world/2020/sep/14/yoshihide-suga-to-be-japan-prime-minister-after-winning-party-vote) on The Guardian at this url [/api/mobilize/https%3A%2F%2Fwww.theguardian.com%2Fworld%2F2020%2Fsep%2F14%2Fyoshihide-suga-to-be-japan-prime-minister-after-winning-party-vote](https://mobilize.now.sh/api/mobilize/https%3A%2F%2Fwww.theguardian.com%2Fworld%2F2020%2Fsep%2F14%2Fyoshihide-suga-to-be-japan-prime-minister-after-winning-party-vote) should result in a response like this:
```json
{
"title": "fallaciousreasoning/mobilizer-api",
"byline": "fallaciousreasoning",
"dir": null,
"content": "
\n This is a Next.js project bootstrapped with create-next-app.
\nGetting Started
\nFirst, run the development server:
\nnpm run dev\n# or\nyarn dev\nOpen http://localhost:3000 with your browser to see the result.
\nYou can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.
\nLearn More
\nTo learn more about Next.js, take a look at the following resources:
\n\n-
Next.js Documentation - learn about Next.js features and API. \n-
Learn Next.js - an interactive Next.js tutorial. \n
\nYou can check out the Next.js GitHub repository - your feedback and contributions are welcome!
\nDeploy on Vercel
\nThe easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
\nCheck out our Next.js deployment documentation for more details.
\n\n ",
"textContent": "\n This is a Next.js project bootstrapped with create-next-app.\nGetting Started\nFirst, run the development server:\nnpm run dev\n# or\nyarn dev\nOpen http://localhost:3000 with your browser to see the result.\nYou can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.\nLearn More\nTo learn more about Next.js, take a look at the following resources:\n\nNext.js Documentation - learn about Next.js features and API.\nLearn Next.js - an interactive Next.js tutorial.\n\nYou can check out the Next.js GitHub repository - your feedback and contributions are welcome!\nDeploy on Vercel\nThe easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.\nCheck out our Next.js deployment documentation for more details.\n\n ",
"length": 787,
"excerpt": "An API for mobilizing articles. Contribute to fallaciousreasoning/mobilizer-api development by creating an account on GitHub.",
"siteName": "GitHub"
}
```
That's it!
## Development
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.