Skip to main content

geekflare-api

Official Python SDK for the Geekflare API.

Installation

pip install geekflare-api

Quick Start

from geekflare_api.client import GeekflareClient
from geekflare_api.models import WebScrapeDto

with GeekflareClient(api_key="your-api-key") as client:
    result = client.web_scrape(WebScrapeDto(url="https://toscrape.com/"))
    print(result)

Available Methods

Method Description
client.meta_scrape(body) Scrape meta tags from a URL
client.web_scrape(body) Scrape web page content
client.dns_record(body) Look up DNS records
client.screenshot(body) Take a screenshot of a URL
client.site_status(body) Check if a site is up or down
client.redirect_check(body) Check redirect chain of a URL
client.broken_link(body) Find broken links on a page
client.url2_pdf(body) Convert a URL to PDF
client.open_ports(body) Scan open ports on a host
client.tls_scan(body) Scan TLS/SSL configuration
client.load_time(body) Test page load time
client.mixed_content(body) Check for mixed content issues
client.dns_sec(body) Check DNSSEC configuration
client.mtr(body) Perform MTR network test
client.ping(body) Ping a host
client.lighthouse(body) Run Lighthouse audit
client.search(body) Perform a web search

Error Handling

from geekflare_api.exceptions import ApiException

try:
    result = client.web_scrape(WebScrapeDto(url="https://toscrape.com/"))
except ApiException as e:
    print(f"API error {e.status}: {e.reason}")

Links

License

MIT

mcp-name: com.geekflare/mcp

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geekflare_api-0.1.2.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geekflare_api-0.1.2-py3-none-any.whl (171.0 kB view details)

Uploaded Python 3

File details

Details for the file geekflare_api-0.1.2.tar.gz.

File metadata

  • Download URL: geekflare_api-0.1.2.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for geekflare_api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2d6131151e31ab781404023c212d0fe2bd9ba0da1e7de5e8e819e5a8d07e3e50
MD5 aa1429e4ef58790b756e973857f0c581
BLAKE2b-256 b714123f7be94be57fd975aeb705fd3f29290fc31693b915e59f5fed230c3d07

See more details on using hashes here.

File details

Details for the file geekflare_api-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: geekflare_api-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 171.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for geekflare_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65f4253fbfb8882c82b2caaca4afada33d7422001d92505118bf56ded18caffb
MD5 d4b95489032c8b49256654ddada597cf
BLAKE2b-256 84a5bb780830138b07eded9c41bc1e747b8d28ec8165eae3bf0cf574eed16382

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page