Skip to content

API returning HTML response even when mode=json is enabled #45

@pencerw

Description

@pencerw

Hey Lever-

About an hour ago, I tried the following command and received a JSON response:
curl https://api.lever.co/v0/postings/originio
The response is too long to post, but here's the beginning and end:
[{"additionalPlain":"Nice to have:\nAdditive manufacturing and/or 3D printing experience\n"..."applyUrl":"https://jobs.lever.co/originio/39446629-e634-42b4-af62-39332fec714e/apply"}]

But now, even if I use the following command I receive an HTML response:
curl https://api.lever.co/v0/postings/originio&mode=json
The response is even longer but it starts with:
<!DOCTYPE html><head prefix="og: http://ogp.me/ns#"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>Origin</title><meta name="twitter:card" value="summary"><meta name="twitter:title" content="Origin"><meta...

...Am I doing something wrong? I have the same results with Python Requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions