Know a great AI tool or AI news source? Submit it to AiByts

How I turned a Spanish public-tenders scraper into a tool my AI agent can call

How a developer who bids on Spanish public contracts filtered the PLACSP tender feed into something an AI agent can query, then connected his Actor to Claude Desktop through the Apify MCP server.

By Juan Alberto AsuaApify Blog
How I turned a Spanish public-tenders scraper into a tool my AI agent can call

This article describes how a developer created an AI-compatible tool to filter and query Spanish public tenders from the PLACSP platform, enabling an AI agent to efficiently find relevant contracts.

What happened

A developer created an Apify Actor to process and filter Spanish public tenders from the PLACSP platform, making it accessible to AI agents through the Apify MCP server. The tool includes filtering logic, a sector dictionary, and a pay-per-event model to ensure efficient and accurate query handling.

Why it matters

This tool demonstrates how AI agents can be integrated with public data sources to automate complex tasks like procurement research. It highlights the importance of structured data filtering and the role of AI in improving access to public information.

  • Effective data filtering is crucial for making public data usable for AI agents.
  • Sector-specific dictionaries enhance search accuracy by translating user queries into procurement terminology.
  • Pay-per-event models optimize costs for AI-driven data processing.
  • Input validation and error handling are essential for reliable AI tool integration.
  • Integrating public data sources with AI agents can significantly improve business efficiency.

The bigger picture

The tool enables more efficient and accurate access to Spanish public tenders, reducing manual effort for businesses and improving the capabilities of AI agents in procurement research. It also sets a precedent for integrating public data sources with AI systems.

The article presents a practical example of how AI agents can be empowered to access and process public data, demonstrating the value of structured filtering and integration techniques in improving procurement research efficiency.

Technical details

  • Apify Actor for data scraping and filtering
  • CODICE XML schema with multiple namespaces
  • Priority-based filtering with keyword, contract type, and CPV code
  • Sector dictionary for expanding search terms into procurement language
  • Pay-per-event pricing model with event name validation
  • Apify MCP server integration for AI agent access

FAQ

What is the PLACSP platform?

PLACSP is the official platform in Spain for public tenders, hosting over 15,000 contracting authorities and publishing all tenders through an Atom XML feed.

How does the tool improve search accuracy for public tenders?

The tool uses a priority-based filter and a sector dictionary to translate user queries into procurement-specific language, ensuring more relevant results.

What is the Apify MCP server?

The Apify MCP server allows AI agents to access and call Apify Actors as tools, enabling automated data processing and query handling.

What is the pay-per-event pricing model?

This model charges for each event triggered by the Actor, such as starting the process or returning a result, ensuring cost efficiency for users.

How does the tool handle XML data from PLACSP?

The tool uses a specific namespace map to parse the CODICE XML schema, overcoming challenges with multiple XML namespaces and ensuring accurate data extraction.

This summary and analysis were generated with AI from the original article and may contain errors. Read the original for the full story.

Read the full story

Originally published by Apify Blog on Oct 13, 2026.

Read on Apify Blog(opens in a new tab)

Comments

Sign in to join the discussion.

No comments yet — be the first to share your thoughts.