Skip to content

POST /v1/extract

Extract the full job description from a single job URL.

Body
{
"url": "https://rimtic.com/fr/offre-emploi/action-contre-la-faim-recrutement-dune-assistante-meal/4063",
"followExternal": true
}
Param Type Required Default Description
url string Yes Full job posting URL. Must be on techghil.mr, beta.mr, rimtic.com, recrutements.gov.mr or cnc.gov.mr.
followExternal boolean No true Whether to follow external links when the description is thin, for example Rimtic pointer posts
Request
curl -X POST https://taf.hululsoft.mr/v1/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: your-key-here" \
-d '{"url":"https://beta.mr/beta/offre/10869"}'
200 OK
{
"inputUrl": "https://rimtic.com/fr/offre-emploi/action-contre-la-faim-recrutement-dune-assistante-meal/4063",
"finalUrl": "https://employ.acf-e.org/index.php/positions/view/11852",
"source": "employ.acf-e.org",
"title": "Assistante MEAL",
"description": "Action Contre la Faim recrute une Assistante MEAL... (full text)",
"quality": "full",
"followedUrl": "https://employ.acf-e.org/index.php/positions/view/11852"
}
Field Type Description
inputUrl string The URL you sent
finalUrl string Where content was actually fetched from, after redirects and follows
source string Hostname of the content source
title string Extracted job title
description string Full job description as plain text
quality string "full" (over 120 characters), "partial" (40 to 120), "link-only" (only an attachment pointer)
attachmentUrl string PDF or DOCX attachment URL if found
attachments array Optional, beta.mr only. Up to five distinct PDF, DOCX, XLSX or ODS links in board order.
followedUrl string External URL that was followed (Rimtic pointer posts)

Some beta.mr postings keep the real text in an attached file. Each entry in attachments has:

Field Description
url Absolute HTTPS URL on beta.mr
name Board label or filename
mime File type
textExtracted true only for a file whose text appears in description
sizeBytes Optional. Downloaded file size.

When the HTML description has fewer than 300 characters, the extractor reads the attachments for you:

  • It tries PDFs first, then DOCX files, and appends up to 20,000 characters from the first file that yields text.
  • It makes at most two parse attempts. Files over 5 MB are skipped without using an attempt.
  • One request parses at a time, with a budget of up to nine seconds once its turn starts.
  • If two requests are already waiting, the extractor returns the full attachment list and skips parsing.
Code Body Cause
400 {"error":"Host not allowed: google.com"} URL not from an allowed source
400 {"error":"Invalid URL"} Malformed URL
401 {"error":"unauthorized"} Missing or wrong API key
404 {"error":"No content extracted"} Page missing or no usable content
429 {"error":"rate_limit_exceeded", ...} Rate limit reached
502 {"error":"upstream_unavailable"} Upstream request failed, timed out or returned 5xx