# hyperlab-gatsby-source-instagram-all

> Gatsby source plugin for fetching all instagram posts

Latest version **2.0.6** (published 2020-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install hyperlab-gatsby-source-instagram-all
pnpm add hyperlab-gatsby-source-instagram-all
yarn add hyperlab-gatsby-source-instagram-all
bun add hyperlab-gatsby-source-instagram-all
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2020-07-06 |
| First published | 2020-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mantas Mikalauskas |
| Maintainers | oskarheden |
| Keywords | gatsby, gatsby-plugin, source, instagram, api, all, post, fetch |

## Links

- npm: https://www.npmjs.com/package/hyperlab-gatsby-source-instagram-all
- Homepage: https://github.com/MantasMikal/gatsby-source-instagram-all
- Issues: https://github.com/MantasMikal/gatsby-source-instagram-all
- npm.io page: https://npm.io/package/hyperlab-gatsby-source-instagram-all

## Dependencies (3)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.2.0
- [query-string](https://npm.io/package/query-string.md) ^6.1.0
- [gatsby-source-filesystem](https://npm.io/package/gatsby-source-filesystem.md) ^2.0.12

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 2.0.6 (latest) — 2020-07-06

## README

# PLUGIN WILL STOP WORKING ON March 31st, 2020
[Instagram deprecates its old API on March 31st, 2020](https://www.instagram.com/developer/)



⚛️📸 Gatsby source plugin to fetch ALL your instagram media from Instagram API + [Gatsby Image](https://www.gatsbyjs.org/packages/gatsby-image/) support.

[![Demo](https://i.imgur.com/xHgFi3A.png)](https://github.com/MantasMikal/gatsby-instagram)

# Install
 1. ```yarn add gatsby-source-instagram-all```
 2. Add this configuration to your gatsby-config.js:
 ```
 {
      resolve: `gatsby-source-instagram-all`,
      options: {
        access_token: "YOUR_ACCESS_TOKEN"
      }
 }
 ```
 👓 A quick way to get your [access token](http://instagram.pixelunion.net/)
# How to use
Query data like this:

 ```
 query myQuery {
       allInstagramContent {
         edges {
           node {
            localImage{ 
              childImageSharp {
                fluid(maxHeight: 500, maxWidth: 500 quality: 90) {
                  ...GatsbyImageSharpFluid_withWebp
                }
              }
            }
             images {
               standard_resolution {
                 url
               }
             }
           }
         }
       }
    }
 ```
 You can also get videos, comments, likes, tags etc. Read [Instagram API Docs](https://www.instagram.com/developer/endpoints/users/) for example response.

 ## Plugin Options

Option | Type | Description
-- | -- | --
access_token | string | Your access token
max_id | string (optional) | Option to return media earlier than, but not including, this max_id
min_id | string (optional) | Option to return media later than, and including, this min_id

---
_Source: https://npm.io/package/hyperlab-gatsby-source-instagram-all · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
