An open API service indexing awesome lists of open source software.

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

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.

\n

Getting Started

\n

First, run the development server:

\n
npm run dev\n# or\nyarn dev
\n

Open http://localhost:3000 with your browser to see the result.

\n

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

\n

Learn More

\n

To learn more about Next.js, take a look at the following resources:

\n\n

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

\n

Deploy on Vercel

\n

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

\n

Check 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.