> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Apify

> Apify platform provider.

Apify platform provider. Exposes GitHub repository scraping plus the shared async-run plumbing (run status and dataset retrieval) used by the brand-specific Apify scrapers such as Zillow, Amazon, and Booking. This is not a general scraper bucket; the social and company scrapers are their own brand providers (x, crunchbase, reddit, tiktok, instagram, linkedin, pitchbook).

3 endpoints available through Lava's AI Gateway. See the [Apify API docs](https://docs.apify.com/api/v2) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Search GitHub repositories by keyword, get all repos from a user/org, or discover trending repos. Supports full GitHub search syntax (stars:>1000, language:python, user:facebook). Returns stars, forks, watchers, topics, license, language, and optionally README content. \$0.01 per 1,000 results.

**POST** `https://api.apify.com/v2/acts/muscular_quadruplet~github-scraper/run-sync-get-dataset-items` — \$0.00025 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.apify.com/v2/acts/muscular_quadruplet~github-scraper/run-sync-get-dataset-items', {
      body: {
    "mode": "search",
    "searchQuery": "machine learning",
    "maxItems": 25
    },
    });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.apify.com%2Fv2%2Facts%2Fmuscular_quadruplet~github-scraper%2Frun-sync-get-dataset-items" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"mode":"search","searchQuery":"machine learning","maxItems":25}'
    ```
  </Tab>
</Tabs>

### Check the status of an async Apify actor run by run id (the `id` from the start response). Returns the run object, including `status` once it reaches SUCCEEDED. Free.

**GET** `https://api.apify.com/v2/actor-runs/RUN_ID` — Free / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.apify.com/v2/actor-runs/RUN_ID', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.apify.com%2Fv2%2Factor-runs%2FRUN_ID" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Fetch the scraped rows from a finished Apify run, by run id: GET /v2/actor-runs/\{runId}/dataset/items. Free, the scrape was billed once on the run completion.

**GET** `https://api.apify.com/v2/actor-runs/RUN_ID/dataset/items` — Free / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.apify.com/v2/actor-runs/RUN_ID/dataset/items', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.apify.com%2Fv2%2Factor-runs%2FRUN_ID%2Fdataset%2Fitems" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
