VOOZH about

URL: https://apify.com/jupri/graphql-extractor

⇱ GraphQL Extractor Β· Apify


Pricing

Pay per usage

Go to Apify Store

πŸ’« Universal GraphQL Scraper

Pricing

Pay per usage

Rating

0.0

(0)

Developer

πŸ‘ cat

cat

Maintained by Community

Actor stats

2

Bookmarked

28

Total users

0

Monthly active users

2 years ago

Last modified

Categories

Share

Welcome to GraphQL Extractor

πŸ‘ dont be sad readme is here

πŸ•ΈοΈ About GRAPHQL

πŸ‘ enter image description here

GraphQL is a data query and manipulation language for APIs that allows a client to specify what data it needs ("declarative data fetching"). A GraphQL server can fetch data from separate sources for a single client query and present the results in a unified graph.[2] It is not tied to any specific database or storage engine.

πŸ•ΈοΈ About This Actor

Trying to be Universal GraphQL Scraper Actor

Web scraping is so much easier now, thanks to GraphQL. It’s like you ask websites for data, and they just serve it up on a silver platter, no fuss. Honestly, it's made scraping feel less like a chore and more like a friendly chat with the internet. Now, here's hoping Amazon.com jumps on the GraphQL bandwagon soonβ€”fingers crossed!

πŸ‘ enter image description here

πŸ•ΈοΈ Examples (Use Cases)

Example #1: https://apify.hashnode.dev

Scraping blogs from https://apify.hashnode.dev

URL :

https://apify.hashnode.dev/api/graphql

Command :

query($host:String!,$after:String,$first:Int!,$filter:PublicationPostConnectionFilter){
publication(host:$host){
id
posts(after:$after,first:$first,filter:$filter){
edges{
node{
__typenameidtitlesubtitleslugpublishedAturlbrief
}
__typename
}
pageInfo{hasNextPageendCursor__typename}
totalDocuments
__typename
}
__typename
}
}

Variables :

{
"host":"apify.hashnode.dev"
}

ACTOR INPUT :

{
"limit":200,
"url":"https://apify.hashnode.dev/api/graphql",
"variables":"{ \"host\": \"apify.hashnode.dev\", \"first\": 10 }",
"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}",
"cursor.step":25,
"cursor.next":"after",
"cursor.limit":"first",
"parse.root":"publication.posts",
"parse.list":"edges",
"parse.item":"node",
"parse.total":"totalDocuments",
"parse.next":"pageInfo.endCursor"
}

πŸ•ΈοΈ GraphQL Quick Guide

Lesson #1: BASIC

SYNTAX:
{ commandName(parameter: ARGUMENT) { FIELD_LIST } }

Example :

{
search(name:"pants" count:10) { id name __typename }
}

JSON Input :

{
"query":"{ search(name:\"pants\" count:10) { id name __typename } }"
}

Lesson #2: VARIABLES

SYNTAX:
query ($VARIABLE: TYPE) { commandName(parameter: $VARIABLE) { FIELD_LIST } }

Example :

query ($text:String $limit:Int) {
search(name:$text count:$limit) { id name __typename }
}

JSON Input :

{
"query":"query ($text:String $limit:Int){ search(name:$text count:$limit){id name __typename} }",
"variables":{"text":"pants","limit":10}
}

Lesson #3: FRAGMENT

SYNTAX:
query ($VARIABLE: TYPE) { commandName(parameter: $VARIABLE) { ... FRAGMENT_NAME } }
fragment FRAGMENT_NAME on TYPE { FIELD_LIST }

Example: Without Fragment

query ($text:String $limit:Int) {
search(name:$text count:$limit) {
id name sku description url specifications __typename
variations { id name sku description url __typename }
similarProducts { id name sku description url __typename }
}
}

Example: With Fragment

query ($text:String $limit:Int) {
search(name:$text count:$limit) {
... ProductInfo
specifications
variations { ... ProductInfo }
similarProducts { ... ProductInfo }
}
}
fragment ProductInfo on Product { id name sku description url __typename }

You might also like

Shopify Scraper (GraphQL)

runexes/actor-shopify-scraper

An Apify actor that crawls Shopify stores via `sitemap.xml` and fetches product data using the Storefront GraphQL API. Optimized for speed and cost with per-host batching, incremental processing, and buffered dataset writes.

Booking.com GraphQL Hotel Scraper

saadmohsin/booking-com-graphql

Use Booking.com’s private GraphQL FullSearch API to extract rich hotel data, prices, availability, images, facilities, geolocation, surroundings (POIs), review sub‑scores and moreβ€”in structured JSON or CSV.

29

5.0

Facebook Video Transcript Extractor

scrapepilotapi/facebook-video-transcript-extractor

Extract transcripts from Facebook videos by analyzing video pages and making GraphQL requests to Facebook's API.

Universal Contact Extractor

rl1987/universal-contact-extractor

Extract phone numbers, emails and social media URLs from web pages.

Schema Universal Converter

fiery_dream/schema-universal-converter

Convert between JSON Schema, TypeScript, Zod, OpenAPI, GraphQL, and more. Maintain schema consistency across your entire stack.

πŸ‘ User avatar

Cody Churchwell

2

Cars.com Scraper

rigelbytes/cars-scraper

Scrapes car listings from Cars.com using their GraphQL API. Extracts detailed vehicle data including price, specs, images, dealer info, and features.