Hi guys, I hope you are well, I cant find anything...
# help
p
Hi guys, I hope you are well, I cant find anything in the documentation, but does the api perhaps have a way to exclude certain job ids from a request?
x
Yes! job_id_not
p
Legend thank you!, does that accept an array of id's?
x
Exactly :)
p
Really appreciate the feedback! thanks so much
x
No prob! Happy to help
p
Hi @Xoel sorry to bother again, with the filters I setup, the api is taking around +-80 seconds to fetch about 160 results, is this normal?
x
Cantou share your payload?
p
Sure
Copy code
curl --request POST \
--url "<https://api.theirstack.com/v1/jobs/search>" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer " \
-d '{
  "order_by": [
    {
      "desc": true,
      "field": "num_jobs"
    }
  ],
  "include_total_results": false,
  "industry_id_or": [
    27
  ],
  "job_country_code_or": [
    "GB"
  ],
  "posted_at_max_age_days": 15,
  "min_salary_usd": 5,
  "job_location_pattern_or": [
    "Aberdeen",
    "Bath",
    "Birmingham",
    "Bradford",
    "Brighton & Hove",
    "Bristol",
    "Cambridge",
    "Canterbury",
    "Carlisle",
    "Chester",
    "Chichester",
    "Coventry",
    "Derby",
    "Durham",
    "Ely",
    "Exeter",
    "Gloucester",
    "Hereford",
    "Kingston upon Hull",
    "Lancaster",
    "Leeds",
    "Leicester",
    "Lichfield",
    "Lincoln",
    "Liverpool",
    "London",
    "Manchester",
    "Newcastle upon Tyne",
    "Norwich",
    "Nottingham",
    "Oxford",
    "Peterborough",
    "Plymouth",
    "Portsmouth",
    "Preston",
    "Ripon",
    "Salford",
    "Salisbury",
    "Sheffield",
    "Southampton",
    "St Albans",
    "Stoke-on-Trent",
    "Sunderland",
    "Truro",
    "Wakefield",
    "Wells",
    "Westminster",
    "Winchester",
    "Wolverhampton",
    "Worcester",
    "York"
  ],
  "page": 0,
  "limit": 10,
  "blur_company_data": false
}'
Also sorry, I tried scraping_source and scraper_name_pattern_or, and that seems to break the call, I only require jobs from Indeed
x
Why do you only need jobs from indeed? Please note that if a job is in indeed but we had found it earlier from another source, you won't get it
Also edit your message, you're exposing you api key
p
Ah thank you, I didn't even notice, I removed my api key. its a requirement from our client to only fetch Indeed jobs,
Sorry I am not sure what this means exactly "Please nite that if a job is in indeed but we had found it earlier from another source, you won't get it"
Is it to remove possible duplicate jobs that might exist from multiple sources?
x
Yes, we do exactly that, de duplicating jobs. So imagine we find job X from company Y. If we already have a job with that title and from that company found from another source different from indeed posted up to 30 days before, we will omit this new job because we consider it a duplicate. And therefore the scraping source, which we use when you filter by it, won't be indeed, and it'll be excluded from your results