Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/digoarthur/mediumapi

Show your Medium articles and documents in your portfolio using the Medium API.
https://github.com/digoarthur/mediumapi

api medium porftolio request

Last synced: 13 days ago
JSON representation

Show your Medium articles and documents in your portfolio using the Medium API.

Awesome Lists containing this project

README

        


RFID-logo




Showcase your tech articles in your portfolio using the Medium API









![GitHub](https://img.shields.io/github/license/digoarthur/MediumAPI)




![image](https://github.com/DIGOARTHUR/MediumAPI/assets/59892368/e199319b-df96-4056-baff-39beb7a2f8c7)




## 1. API

```
https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/@Medium_Username
```

## 2.Request Example (REACT)

```jsx
useEffect(() => {
async function fetchData() {
try {
const res = await fetch('https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/@Medium_Username');
const data = await res.json();
const items = data.items;
setDataMedium(items);

} catch (error) {
console.log(error)
}
}

fetchData();

}, []);
```
## 3. DATA Props

```javascript
[
{

author: ,
categories: ,
content: ,
description: : ,
guid: ,
link: ,
pubDate: ,
thumbnail: ,
title:

}
]
```

## 3. DEMO application

1. Repository Clone:

```
git clone https://github.com/DIGOARTHUR/MediumAPI.git
```

2. Install Dependecies

```
yarn
or
npm
```

3. Testing MEDIUM API
> [!NOTE]
> Don't forget to change the API Username

---

**Love Medium API Repository? Give our repo a star ⭐ ⬆️.**

`by`: [@digoarthur](https://www.linkedin.com/in/digoarthur/)