GraphQL Extractor avatar

GraphQL Extractor

Try for free

No credit card required

View all Actors
GraphQL Extractor

GraphQL Extractor

jupri/graphql-extractor
Try for free

No credit card required

💫 Universal GraphQL Scraper

You can access the GraphQL Extractor programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1echo '{
2  "limit": 100,
3  "url": "https://apify.hashnode.dev/api/graphql",
4  "query": "query ($host: String!, $after: String, $first: Int!, $filter: PublicationPostConnectionFilter) {\\r\\n    publication(host: $host) {\\r\\n        id\\r\\n        posts(after: $after, first: $first, filter: $filter) {\\r\\n            edges {\\r\\n                node {\\r\\n                    __typename id title subtitle slug publishedAt url brief\\r\\n                }\\r\\n                __typename\\r\\n            }\\r\\n            pageInfo { hasNextPage endCursor __typename }\\r\\n            totalDocuments\\r\\n            __typename\\r\\n        }\\r\\n        __typename\\r\\n    }\\r\\n}",
5  "variables": "{ \\"host\\": \\"apify.hashnode.dev\\", \\"first\\": 10 }",
6  "cursor.step": 25,
7  "cursor.index": "",
8  "cursor.next": "after",
9  "cursor.offset": "",
10  "cursor.limit": "first",
11  "parse.root": "publication.posts",
12  "parse.list": "edges",
13  "parse.item": "node",
14  "parse.total": "totalDocuments",
15  "parse.next": "pageInfo.endCursor"
16}' |
17apify call jupri/graphql-extractor --silent --output-dataset

GraphQL Extractor API through CLI

The Apify CLI is the official tool that allows you to use GraphQL Extractor locally, providing convenience functions and automatic retries on errors.

Install the Apify CLI

1npm i -g apify-cli
2apify login

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 1 star
  • 78.8% runs succeeded
  • Created in Oct 2024
  • Modified 11 days ago
Categories