Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,36 @@ Both `apifable.config.json` and `.apifable/auth.json` support `${ENV_VAR}` synta
}
```

#### Remote API Example: Xquik

Xquik publishes an OpenAPI 3.1 spec for X/Twitter automation at
`https://xquik.com/openapi.json`. Configure it as a remote spec and keep the API
key in `.apifable/auth.json`.

`apifable.config.json`:

```json
{
"spec": {
"path": "openapi/xquik.json",
"url": "https://xquik.com/openapi.json"
}
}
```

`.apifable/auth.json`:

```json
{
"headers": {
"x-api-key": "${XQUIK_API_KEY}"
}
}
```

Then refresh the local spec and ask apifable to inspect tags such as `Tweets`,
`Trends`, or `Users`.

#### Headers Priority (highest to lowest)

1. `.apifable/auth.json` headers (overrides same-named keys)
Expand Down