create server firecrawl_server
foreign data wrapper firecrawl_fdw
options (
base_url 'https://api.firecrawl.dev'
);
create user mapping for current_user
server firecrawl_server
options (
api_key 'YOUR_API_KEY'
);
create foreign table firecrawl_activity_logs (
job_id uuid,
mode text,
created_at timestamptz,
origin text,
url_or_query text,
success boolean,
credits_billed double precision,
num_docs bigint,
time_taken double precision,
message text,
error_count bigint,
agent_model text,
scrape_options jsonb,
scrape_pdf_num_pages bigint,
api_key_id bigint
)
server firecrawl_server
options (table 'activity_logs');
create foreign table firecrawl_job_results (
job_id uuid,
mode text,
result_json jsonb,
found boolean,
error text
)
server firecrawl_server
options (table 'job_results');