Syntec
Pricing
from $10.00 / 1,000 results
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer

Ahmed
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 months ago
Last modified
Categories
Share
Syntec Index Actor
A minimal Apify Python Actor that fetches the current Syntec Index value from the official Syntec website and returns it as structured output.
This Actor is intentionally simple and dependency-free, designed as a test / demo Actor.
Overview
This Actor retrieves the latest published Syntec Index directly from the official Syntec website. It extracts the value from a stable HTML widget and outputs a clean numeric result that can be reused in automations, APIs, or scheduled jobs.
What this Actor does
- Fetches the official Syntec index web page
- Extracts the index value from a specific HTML block
- Returns only the numeric value
Output
The Actor outputs a single JSON object to the default Apify dataset.
{"syntec_index": 323.1}
Data extraction logic
The value is extracted from the following HTML structure on the Syntec website:
<div class="indice-widget">Indice syntec<span>323,1</span></div>
This structure was selected to ensure reliable extraction based on page layout rather than text wording.
Technical choices
- Language: Python
- Dependencies: None (Python standard library only)
- HTTP requests:
urllib.request - Async compatibility:
asyncio.to_thread - Parsing method: Regular expression targeting the
indice-widgetblock
This design ensures compatibility with Apify’s LIMITED_PERMISSIONS runtime.
How it works
- The Actor downloads the Syntec index page
- The HTML content is scanned for the
indice-widgetcontainer - The numeric value inside the
<span>tag is extracted - French decimal formatting (
323,1) is converted to a float (323.1) - The result is pushed to the Apify dataset
Running the Actor
No input is required.
You can run the Actor in multiple ways:
- Manually from the Apify Console
- On a scheduled basis (e.g. monthly execution)
- As an API endpoint using the Apify Runs API
Example API usage
After a successful run, retrieve the latest dataset item:
Example response:
[{"syntec_index": 323.1}]
Typical use cases
- Payroll indexation automation
- Economic indicator monitoring
- Internal dashboards
- Financial or HR data pipelines
- API-based consumption of the Syntec Index