Replies: 1 comment
-
curl --location 'https://apis.indeed.com/graphql' \
--header 'Host: apis.indeed.com' \
--header 'content-type: application/json' \
--header 'indeed-api-key: 161092c2017b5bbab13edb12461a62d5a833871e7cad6d9d475304573de67ac8' \
--header 'indeed-ctk: 1gmnbg2jkkcl1800' \
--header 'accept: application/json' \
--header 'indeed-locale: en-US' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Indeed App 193.1' \
--header 'indeed-app-info: appv=193.1; appid=com.indeed.jobsearch; osv=16.6.1; os=ios; dtype=phone' \
--header 'indeed-co: US' \
--data '{"query":"\nquery GetJobData {\n jobSearch(location: {where: \"dallas\", radius: 10, radiusUnit: MILES}, limit: 100) {\n results {\n trackingKey\n job {\n key\n title\n description {\n html\n }\n location {\n countryName\n countryCode\n city\n postalCode\n streetAddress\n formatted {\n short\n long\n }\n\n }\n compensation {\n baseSalary {\n unitOfWork\n range {\n ... on Range {\n min\n max\n }\n }\n }\n currencyCode\n }\n attributes {\n label\n key\n }\n employer {\n relativeCompanyPageUrl\n }\n recruit {\n viewJobUrl\n detailedSalary\n workSchedule\n }\n hiringDemand {\n isUrgentHire\n isHighVolumeHiring\n positionCount {\n ... on PositionsRange {\n minInclusive\n maxInclusive\n }\n ... on ExactlyPositions {\n value\n }\n ... on AtLeastPositions {\n minInclusive\n }\n ... on AtMostPositions {\n maxInclusive\n }\n ... on RecurringHire {\n recurring: _\n }\n }\n }\n }\n }\n }\n}\n","variables":{}}' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there - I'm trying to learn how to inspect the request from the Indeed API.
So far I've been configuring Postman with the following cURL:
curl --location 'https://apis.indeed.com/graphql' \ --header 'Host: apis.indeed.com' \ --header 'content-type: application/json' \ --header 'indeed-api-key: 161092c2017b5bbab13edb12461a62d5a833871e7cad6d9d475304573de67ac8' \ --header 'accept: application/json' \ --header 'indeed-locale: en-US' \ --header 'accept-language: en-US,en;q=0.9' \ --header 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Indeed App 193.1' \ --header 'indeed-app-info: appv=193.1; appid=com.indeed.jobsearch; osv=16.6.1; os=ios; dtype=phone' \ --data '{ "query": "query GetJobData { jobSearch( what: \"software engineer\" location: {where: \"San Francisco, CA\", radius: 50, radiusUnit: MILES} limit: 100 sort: RELEVANCE ) { pageInfo { nextCursor } results { trackingKey job { source { name } key title datePublished dateOnIndeed description { html } location { countryName countryCode admin1Code city postalCode streetAddress formatted { short long } } compensation { estimated { currencyCode baseSalary { unitOfWork range { ... on Range { min max } } } } baseSalary { unitOfWork range { ... on Range { min max } } } currencyCode } attributes { key label } employer { relativeCompanyPageUrl name dossier { employerDetails { addresses industry employeesLocalizedLabel revenueLocalizedLabel briefDescription } images { headerImageUrl squareLogoUrl } links { corporateWebsite } } } recruit { viewJobUrl detailedSalary workSchedule } } } } }" }'
Which gives the following error:
POST https://apis.indeed.com/graphql: { "Error": "write EPROTO 1305675172704:error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE:../../../../src/third_party/boringssl/src/ssl/tls_record.cc:592:SSL alert number 40\n", "Request Headers": { "host": " apis.indeed.com", "content-type": " application/json", "indeed-api-key": " 161092c2017b5bbab13edb12461a62d5a833871e7cad6d9d475304573de67ac8", "accept": " application/json", "indeed-locale": " en-US", "accept-language": " en-US,en;q=0.9", "user-agent": " Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Indeed App 193.1", "indeed-app-info": " appv=193.1; appid=com.indeed.jobsearch; osv=16.6.1; os=ios; dtype=phone", "postman-token": "1db8bbe3-2d22-4a1b-a89d-7a5e39bcd5ab", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive" }, "Request Body": "{\n \"query\": \"query GetJobData { jobSearch( what: \\\"software engineer\\\" location: {where: \\\"San Francisco, CA\\\", radius: 50, radiusUnit: MILES} limit: 100 sort: RELEVANCE ) { pageInfo { nextCursor } results { trackingKey job { source { name } key title datePublished dateOnIndeed description { html } location { countryName countryCode admin1Code city postalCode streetAddress formatted { short long } } compensation { estimated { currencyCode baseSalary { unitOfWork range { ... on Range { min max } } } } baseSalary { unitOfWork range { ... on Range { min max } } } currencyCode } attributes { key label } employer { relativeCompanyPageUrl name dossier { employerDetails { addresses industry employeesLocalizedLabel revenueLocalizedLabel briefDescription } images { headerImageUrl squareLogoUrl } links { corporateWebsite } } } recruit { viewJobUrl detailedSalary workSchedule } } } } }\"\n}" }
Any idea what could be wrong? Or is there an easier way to inspect the API from Indeed?
Beta Was this translation helpful? Give feedback.
All reactions