Skip to main content
The official geekflare-api SDK provides a Pythonic interface that handles auth and serialization. Raw requests examples are included for those who prefer no extra dependencies.

Prerequisites

  • Python 3.8+
  • pip or uv
  • A Geekflare API key — get one free

Installation

Set your API key

Create a .env file:
.env
Load it in your script:
Never hardcode your API key. Add .env to .gitignore.

Initialize the client

The client is a context manager — use with to ensure the underlying HTTP session is closed:

Web Scraping

Key parameters: Example response:
The data field is a URL to the scraped output file. See the Web Scraping endpoint reference.
Key parameters:

Screenshot


Error handling

Common error codes

See Rate Limit Exceeded and Credit Exhausted for strategies to handle these gracefully.

Next steps